Fix idempotency bug in AIO bootstrap

Change-Id: I88a563928112abf252354e546da9dce4819048e0
This commit is contained in:
Jean-Philippe Evrard 2016-04-11 18:07:25 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 1d66d1963c
commit 13de5ffded

View File

@ -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