Fix copy image ipa on seed

This commit is contained in:
root 2018-01-08 15:16:02 +00:00
parent 80c4d9fd9d
commit af0372fcc8

View File

@ -35,18 +35,15 @@
dest: "/etc/kolla/bifrost/{{ item }}"
remote_src: True
with_items: "{{ ipa_images }}"
notify:
- Copy Ironic Python Agent images into /httpboot
become: True
when: ipa_build_images | bool
handlers:
- name: Copy Ironic Python Agent images into /httpboot
command: >
docker exec bifrost_deploy
bash -c 'source /bifrost/env-vars &&
ansible -vvvv target -i /bifrost/playbooks/inventory/target
-m copy
-a "src=/etc/bifrost/{{ item }} dest=/httpboot/{{ item }}"
-e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"'
with_items: "{{ ipa_images }}"
- name: Copy Ironic Python Agent images into /httpboot
command: >
docker exec bifrost_deploy
bash -c 'source /bifrost/env-vars &&
ansible -vvvv target -i /bifrost/playbooks/inventory/target
-m copy
-a "src=/etc/bifrost/{{ item }} dest=/httpboot/{{ item }}"
-e "ansible_python_interpreter=/var/lib/kolla/venv/bin/python"'
with_items: "{{ ipa_images }}"
when: ipa_build_images | bool