Skip to content

Commit

Permalink
Merge pull request #391 from stackhpc/fix-compute-drain-delegate
Browse files Browse the repository at this point in the history
fix: task would fail to delegate and run on host
  • Loading branch information
markgoddard committed Feb 14, 2023
2 parents 051399d + 6344d42 commit 147c0b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/kayobe/ansible/nova-compute-drain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
run_once: true
delegate_to: "{{ groups['controllers'][0] }}"
vars:
ansible_host: "{{ hostvars[groups['controllers'][0]].ansible_host }}"

- block:
- name: Query instances
Expand Down

0 comments on commit 147c0b4

Please sign in to comment.