
Adds support for Podman as an alternative container engine. This builds on the support added in kolla-ansible in the 2023.2 cycle. Change-Id: I2c6befbdda7e684228065103feea7250a0ea3826
14 lines
481 B
YAML
14 lines
481 B
YAML
---
|
|
- name: Restart docker-registry container
|
|
kayobe_container:
|
|
name: "{{ item.value.container_name }}"
|
|
state: started
|
|
restart: True
|
|
# NOTE: The image argument shouldn't be required, but without it this
|
|
# handler fails on Ansible 2.3. Related bug:
|
|
# https://github.com/ansible/ansible/issues/21188.
|
|
image: "{{ item.value.image }}"
|
|
with_dict: "{{ docker_registry_services }}"
|
|
when: item.value.enabled
|
|
become: "{{ container_engine == 'podman' }}"
|