Fix idempotency bug in AIO bootstrap
Change-Id: I88a563928112abf252354e546da9dce4819048e0
This commit is contained in:
parent
1d66d1963c
commit
13de5ffded
@ -153,16 +153,26 @@
|
|||||||
tags:
|
tags:
|
||||||
- container-conf-files
|
- container-conf-files
|
||||||
|
|
||||||
- name: Ensure that the first two lines in user_conf_files are correct
|
- name: Ensure that the first line in user_conf_files is correct
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/openstack_deploy/user_conf_files.yml
|
dest: /etc/openstack_deploy/user_conf_files.yml
|
||||||
line: "---\nlxc_container_cache_files:"
|
line: "---"
|
||||||
insertbefore: BOF
|
insertbefore: BOF
|
||||||
when:
|
when:
|
||||||
- apt_conf_files is defined or pip_conf_file.stat.exists
|
- apt_conf_files is defined or pip_conf_file.stat.exists
|
||||||
tags:
|
tags:
|
||||||
- container-conf-files
|
- container-conf-files
|
||||||
|
|
||||||
|
- name: Ensure that the second line in user_conf_files is correct
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/openstack_deploy/user_conf_files.yml
|
||||||
|
line: "lxc_container_cache_files:"
|
||||||
|
insertafter: "^---"
|
||||||
|
when:
|
||||||
|
- apt_conf_files is defined or pip_conf_file.stat.exists
|
||||||
|
tags:
|
||||||
|
- container-conf-files
|
||||||
|
|
||||||
- name: Add the dict to copy the global pip config file into user_conf_files
|
- name: Add the dict to copy the global pip config file into user_conf_files
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/openstack_deploy/user_conf_files.yml
|
dest: /etc/openstack_deploy/user_conf_files.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user