Role - tripleo-container-stop

Role Documentation

Welcome to the “tripleo_container_stop” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo_container_stop” role.

tripleo_containers_to_stop: '{{ default([]) }}'
tripleo_delegate_to: [localhost]

Molecule Scenarios

Molecule is being used to test the “tripleo_container_stop” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: delegated
Molecule Options
managed: false
login_cmd_template: >-
  ssh
  -o UserKnownHostsFile=/dev/null
  -o StrictHostKeyChecking=no
  -o Compression=no
  -o TCPKeepAlive=yes
  -o VerifyHostKeyDNS=no
  -o ForwardX11=no
  -o ForwardAgent=no
  {instance}
ansible_connection_options:
  ansible_connection: ssh
Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example default playbook
- name: Converge
  become: true
  hosts: all
  roles:
  - role: tripleo_container_stop
    tripleo_containers_to_stop:
    - podman-container1
    - podman-container2