30be04ea91
Add become to all tasks that use the module "kolla_docker" Change-Id: I4309c4011687b88ec31d739fd8f834fe2326ff10 Partial-Implements: blueprint ansible-specific-task-become
32 lines
863 B
YAML
32 lines
863 B
YAML
---
|
|
# Create new set of configs on nodes
|
|
- include: config.yml
|
|
|
|
- include: bootstrap_service.yml
|
|
|
|
- name: Checking if conductor container needs upgrading
|
|
become: true
|
|
kolla_docker:
|
|
action: "compare_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "nova_conductor"
|
|
image: "{{ nova_conductor_image_full }}"
|
|
when: inventory_hostname in groups['nova-conductor']
|
|
register: conductor_differs
|
|
|
|
# Short downtime here, but from user perspective his call will just timeout or execute later
|
|
- name: Stopping all nova_conductor containers
|
|
become: true
|
|
kolla_docker:
|
|
action: "stop_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "nova_conductor"
|
|
when:
|
|
- inventory_hostname in groups['nova-conductor']
|
|
- conductor_differs['result']
|
|
|
|
- name: Flush handlers
|
|
meta: flush_handlers
|
|
|
|
- include: reload.yml
|