tripleo-common/roles/tripleo-docker-rm
Cédric Jeanneret f49319c393 Ensure docker is running before dropping containers
It might happen we have docker binary installed, while the docker
service isn't active/running. This would make the playbook fail,
while it's not a valid failure.

Change-Id: I3f3011e6855b38828644b94fac3f5e88edfc6d1a
2019-02-18 16:19:25 +01:00
..
defaults Implement tripleo-docker-rm role 2018-11-09 14:05:06 +00:00
tasks Ensure docker is running before dropping containers 2019-02-18 16:19:25 +01:00
README.md Implement tripleo-docker-rm role 2018-11-09 14:05:06 +00:00

tripleo-docker-rm

An Ansible role to remove Docker containers when Podman is enabled.

Requirements

It requires python-docker on the host.

Role variables

  • container_cli: -- Name of the Container CLI tool (default to docker).
  • containers_to_rm: -- List of containers to remove.

Example Playbook

Sample playbook to call the role:

  • name: Remove Nova API docker containers hosts: all roles:
    • tripleo-docker-rm vars: containers_to_rm:
      • nova_api
      • nova_api_cron container_cli: podman

License

Free software: Apache License (2.0)

Author Information

OpenStack TripleO team