tripleo-common/roles/tripleo-container-rm
Emilien Macchi 13775b8e20 Introduce tripleo-container-rm
tripleo-container-rm is the new role that replaces tripleo-docker-rm which
is in charge of tearing down containers running in Docker or Podman.
If the container_cli is Podman, the role takes care of systemd cleanup for
both the container and its healthcheck if it does exist.

Change-Id: I3fc5b351c3e20ab01953a510bd71a70d3c083527
2019-05-06 10:16:29 +02:00
..
defaults Introduce tripleo-container-rm 2019-05-06 10:16:29 +02:00
tasks Introduce tripleo-container-rm 2019-05-06 10:16:29 +02:00
README.md Introduce tripleo-container-rm 2019-05-06 10:16:29 +02:00

tripleo-container-rm

An Ansible role to tear-down containers.

Role variables

  • container_cli: -- Name of the Container CLI tool (default to podman).
  • 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-container-rm vars: containers_to_rm:
      • nova_api
      • nova_api_cron

License

Free software: Apache License (2.0)

Author Information

OpenStack TripleO team