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.
|
||||
# In some cases cloud-init reconfigure automatically network interface
|
||||
# and cause some issues in network configuration
|
||||
- name: Disable Cloud-init service
|
||||
- name: Disable Cloud-init service
|
||||
hosts: overcloud
|
||||
tags:
|
||||
- disable-cloud-init
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
- name: restart cloud-init daemon
|
||||
systemd:
|
||||
- name: reload systemd daemon
|
||||
systemd:
|
||||
name: cloud-init
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
become: True
|
||||
|
@ -1,9 +1,9 @@
|
||||
---
|
||||
- name: Disable cloud init service
|
||||
file:
|
||||
path: /etc/cloud/cloud-init.disabled
|
||||
path: /etc/cloud/cloud-init.disabled
|
||||
state: touch
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
notify:
|
||||
- restart cloud-init daemon
|
||||
- reload systemd daemon
|
||||
become: True
|
||||
|
Loading…
Reference in New Issue
Block a user