Use docker_container Ansible module

The docker Ansible module was removed in Ansible 2.4. It was replaced
by dedicated modules docker_container and docker_image.

This is valid for Rocky and Queens versions only. Stein and newer
versions use Podman.

Closes-Bug: #1840742
Change-Id: I9eafaa93e5e8e88e25e7958b7aba3a4d90de78ad
This commit is contained in:
Carlos Goncalves 2019-08-20 09:08:45 +02:00
parent 00a76438f3
commit 0a866602a2
2 changed files with 7 additions and 2 deletions

View File

@ -218,7 +218,7 @@ outputs:
when:
- step|int == 2
- internal_tls_enabled|bool
docker:
docker_container:
name: octavia_api_tls_proxy
state: absent
upgrade_tasks:
@ -263,7 +263,7 @@ outputs:
service: name=httpd state=stopped
- name: remove TLS proxy if configured and running
when: internal_tls_enabled|bool
docker:
docker_container:
name: octavia_api_tls_proxy
state: absent
metadata_settings:

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed an issue where the update and upgrade tasks for Octavia would use the
removed docker module in Ansible 2.4.