Don't restart cloud-init when disabling it
Change-Id: I6e3ebdfc739d155c0953d43c878247fc590901c6 Story: 2001697
This commit is contained in:
parent
1e019fc1f8
commit
71f493db77
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
# Cloud-init ‘s searches for network configuration in order of
|
# Cloud-init searches for network configuration in order of
|
||||||
# increasing precedence; each item overriding the previous.
|
# increasing precedence; each item overriding the previous.
|
||||||
# In some cases cloud-init reconfigure automatically network interface
|
# In some cases cloud-init reconfigure automatically network interface
|
||||||
# and cause some issues in network configuration
|
# and cause some issues in network configuration
|
||||||
- name: Disable Cloud-init service
|
- name: Disable Cloud-init service
|
||||||
hosts: overcloud
|
hosts: overcloud
|
||||||
tags:
|
tags:
|
||||||
- disable-cloud-init
|
- disable-cloud-init
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: restart cloud-init daemon
|
- name: reload systemd daemon
|
||||||
systemd:
|
systemd:
|
||||||
name: cloud-init
|
name: cloud-init
|
||||||
state: restarted
|
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
become: True
|
become: True
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
- name: Disable cloud init service
|
- name: Disable cloud init service
|
||||||
file:
|
file:
|
||||||
path: /etc/cloud/cloud-init.disabled
|
path: /etc/cloud/cloud-init.disabled
|
||||||
state: touch
|
state: touch
|
||||||
mode: "u=rw,g=r,o=r"
|
mode: "u=rw,g=r,o=r"
|
||||||
notify:
|
notify:
|
||||||
- restart cloud-init daemon
|
- reload systemd daemon
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user