test
This commit is contained in:
@@ -54,6 +54,18 @@
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Add user to _ssh group
|
||||
ansible.builtin.user:
|
||||
name: ansible
|
||||
groups: _ssh
|
||||
append: yes
|
||||
|
||||
- name: Replace IP address in interfaces file
|
||||
ansible.builtin.replace:
|
||||
path: /etc/network/interfaces
|
||||
regexp: '192\.168\.0\.6'
|
||||
replace: '192.168.0.66'
|
||||
|
||||
- name: Install OpenMediaVault
|
||||
ansible.builtin.apt:
|
||||
name: openmediavault
|
||||
@@ -65,3 +77,12 @@
|
||||
name: openmediavault.service
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Reboot host without reconnection
|
||||
ansible.builtin.reboot:
|
||||
msg: "Reboot initiated by Ansible"
|
||||
connect_timeout: 5
|
||||
reboot_timeout: 0
|
||||
pre_reboot_delay: 0
|
||||
post_reboot_delay: 0
|
||||
test_command: ""
|
||||
Reference in New Issue
Block a user