Skip to content

Commit 147c0b4

Browse files
authored
Merge pull request #391 from stackhpc/fix-compute-drain-delegate
fix: task would fail to delegate and run on host
2 parents 051399d + 6344d42 commit 147c0b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

etc/kayobe/ansible/nova-compute-drain.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
1818
run_once: true
1919
delegate_to: "{{ groups['controllers'][0] }}"
20+
vars:
21+
ansible_host: "{{ hostvars[groups['controllers'][0]].ansible_host }}"
2022

2123
- block:
2224
- name: Query instances

0 commit comments

Comments
 (0)