tripleo-ansible/tripleo_ansible/ansible_plugins/action
Emilien Macchi 7f56c0c559 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
(cherry picked from commit af7f083066)
2020-07-08 10:17:17 -04:00
..
container_status.py Introduce an Action Plugin to fetch container infos 2020-07-08 08:41:32 +00:00
container_systemd.py Introduce an Action Plugin to manage systemd services for containers 2020-07-08 10:17:17 -04:00
package.py Add plugin documentation 2019-07-09 20:33:27 -05:00
tripleo_all_nodes_data.py tripleo_all_nodes_data: sort enabled_services (idempotency) 2020-04-08 10:11:10 -04:00
tripleo_iptables.py Change drop action 2019-12-18 08:43:10 -06:00
tripleo_nova_image_cache.py Add role/playbook to manage nova image cache 2019-12-19 16:19:06 +00:00