Revert use of _glance_first_play_host for post install tasks

run_once can't be replaced with such condition since config files should
be put against all groups, and not only api one.

Change-Id: I345fcfbab0b7735ae671ff592c8549eb4dd53b02
This commit is contained in:
Dmitriy Rabotyagov 2020-09-22 09:48:34 +03:00 committed by Jonathan Rosser
parent 6a53dd4505
commit c92707637f

View File

@ -108,7 +108,7 @@
dest: "{{ item.tmp_f }}"
flat: yes
changed_when: false
when: _glance_is_first_play_host
run_once: true
with_items: "{{ glance_core_files }}"
- name: Copy common config
@ -130,7 +130,7 @@
state: absent
changed_when: false
delegate_to: localhost
when: _glance_is_first_play_host
run_once: true
with_items: "{{ glance_core_files }}"
# NOTE(cloudnull): This will ensure strong permissions on all rootwrap files.