From af0372fcc8697790d5eddb6574241710d66896cd Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Jan 2018 15:16:02 +0000 Subject: [PATCH] Fix copy image ipa on seed --- ansible/seed-ipa-build.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ansible/seed-ipa-build.yml b/ansible/seed-ipa-build.yml index acd50a9cd..ab44c9910 100644 --- a/ansible/seed-ipa-build.yml +++ b/ansible/seed-ipa-build.yml @@ -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