kolla-ansible/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml
Marcin Juszkiewicz 1453474c65 Ansible lint: Variables should have spaces before and after
Change-Id: I70f692f125739b5119c71a554a37b5c21d4164f6
2020-01-16 16:37:20 +01:00

13 lines
616 B
YAML

---
# This is necessary after new cells have been created to refresh the cell cache
# in nova scheduler.
- name: Refresh cell cache in nova scheduler
become: true
# NOTE(yoctozepto): Normally we would send the signal via Docker but, due to a
# Docker bug (https://github.com/moby/moby/issues/11065), this might cause the
# container to be stopped if we restart Docker or reboot the server as we
# use the 'unless-stopped' restart policy by default.
shell: "kill -HUP `docker inspect -f '{% raw %}{{ .State.Pid }}{% endraw %}' nova_scheduler`"
when:
- inventory_hostname in groups['nova-scheduler']