tripleo-ansible/tripleo_ansible/roles/tripleo_container_manage
Emilien Macchi af7f083066 Introduce an Action Plugin to manage systemd services for containers
Instead of running a bunch of tasks to manage systemd resources, move
it into an action plugin which should make the execution faster and
easier to debug as well.

Example of task:
- name: Manage container systemd services
  container_systemd:
    container_config:
      - keystone:
          image: quay.io/tripleo/keystone
          restart: always
      - mysql:
          image: quay.io/tripleo/mysql
          stop_grace_period: 25
          restart: always

The output is "restarted" for the list of services that were actually
restarted in systemd.

Note on testing: since that module is consummed by
tripleo_container_manage role, there is no need to create dedicated
molecule tests, we already cover containers with restart policy in that
role's molecule tests. So we'll re-use it.

Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Co-Authored-By: Kevin Carter <kecarter@redhat.com>

Change-Id: I614766bd9b111bda9ddfea0a60b032e1dee09abc
2020-07-07 12:56:07 +00:00
..
defaults Ensure that the playbooks and roles can display debug data when enabled 2020-05-23 15:04:10 +00:00
files Rename all roles that have a hyphen 2020-01-21 20:42:40 -06:00
meta Add Centos 8 to galaxy_info versions 2020-03-19 14:22:08 +01:00
molecule/default Introduce an Action Plugin to manage systemd services for containers 2020-07-07 12:56:07 +00:00
tasks Introduce an Action Plugin to manage systemd services for containers 2020-07-07 12:56:07 +00:00
templates Make sure failed containers get stopped by systemd 2020-06-24 11:34:35 +09:00