Role - tripleo-podman

Role Documentation

Welcome to the “tripleo-podman” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “tripleo-podman” role.

tripleo_container_registry_insecure_registries: []
tripleo_container_registry_login: false
tripleo_container_registry_logins: {}
tripleo_podman_packages: '{{ _tripleo_podman_packages | default([]) }}'
tripleo_podman_purge_packages: '{{ _tripleo_podman_purge_packages | default([]) }}'
tripleo_podman_tls_verify: true

Role Variables: redhat.yml

_tripleo_podman_packages:
- podman
_tripleo_podman_purge_packages:
- docker
- docker-ce

Molecule Scenarios

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

Scenario: install

Driver: delegated
Molecule Options
ansible_connection_options:
  ansible_connection: ssh
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}
managed: false
Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example install playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-podman
      tasks_from: tripleo_podman_install.yml
      vars_from: redhat.yml
    name: Run install

Scenario: login

Driver: delegated
Molecule Options
ansible_connection_options:
  ansible_connection: ssh
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}
managed: false
Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example login playbook
- hosts: all
  name: Converge
  tasks:
  - include_role:
      name: tripleo-podman
      tasks_from: tripleo_podman_login.yml
  vars:
    tripleo_container_registry_logins:
      localhost:5000:
        testuser: testpassword
    tripleo_podman_tls_verify: false

Scenario: default

Driver: delegated
Molecule Options
ansible_connection_options:
  ansible_connection: ssh
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}
managed: false
Molecule Inventory
hosts:
  all:
    hosts:
      instance:
        ansible_host: localhost
Example default playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-podman