use become
This commit is contained in:
parent
f4121d3163
commit
44263bce25
@ -17,14 +17,10 @@
|
|||||||
listen:
|
listen:
|
||||||
- "host_reboot"
|
- "host_reboot"
|
||||||
|
|
||||||
- name: Wait for host
|
- name: Waiting for host startup
|
||||||
wait_for:
|
wait_for_connection:
|
||||||
host: "{{ ansible_ssh_host }}"
|
|
||||||
port: 22
|
|
||||||
delay: 5
|
delay: 5
|
||||||
timeout: 300
|
timeout: 300
|
||||||
connection: local
|
|
||||||
become: False
|
|
||||||
listen:
|
listen:
|
||||||
- "network_restart"
|
- "network_restart"
|
||||||
- "host_reboot"
|
- "host_reboot"
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
- name: Setup network
|
||||||
|
block:
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
template:
|
template:
|
||||||
src: etc/hostname.j2
|
src: etc/hostname.j2
|
||||||
@ -42,3 +44,4 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user