b123bf6621
Many tasks that use Docker have become specified already, but not all. This change ensures all tasks that use the following modules have become: * kolla_docker * kolla_ceph_keyring * kolla_toolbox * kolla_container_facts It also adds become for 'command' tasks that use docker CLI. Change-Id: I4a5ebcedaccb9261dbc958ec67e8077d7980e496
31 lines
829 B
YAML
31 lines
829 B
YAML
---
|
|
- name: Glance sanity check - create image
|
|
become: true
|
|
kolla_toolbox:
|
|
module_name: os_image
|
|
module_args:
|
|
auth: "{{ openstack_glance_auth }}"
|
|
name: "glance_sanity_check"
|
|
filename: "/etc/hostname"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
delegate_to: "{{ groups['glance-api'][0] }}"
|
|
run_once: True
|
|
register: img_create
|
|
retries: 10
|
|
delay: 3
|
|
until: img_create is success
|
|
when: kolla_enable_sanity_glance | bool
|
|
|
|
- name: Glance sanity check - cleanup
|
|
become: true
|
|
kolla_toolbox:
|
|
module_name: os_image
|
|
module_args:
|
|
auth: "{{ openstack_glance_auth }}"
|
|
name: "glance_sanity_check"
|
|
state: absent
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
delegate_to: "{{ groups['glance-api'][0] }}"
|
|
run_once: True
|
|
when: kolla_enable_sanity_glance | bool
|