Role - tripleo-module-load

Role Documentation

Welcome to the “tripleo-module-load” role documentation.

Role Defaults

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

tripleo_modules: '{{ modules | default([]) }}'

Molecule Scenarios

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

Scenario: legacy_vars

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 legacy_vars playbook
- hosts: all
  name: Converge
  roles:
  - modules:
    - name: dummy
    role: tripleo-module-load

Scenario: remove_module

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 remove_module playbook
- hosts: all
  name: Converge
  roles:
  - role: tripleo-module-load
    tripleo_modules:
    - name: dummy
  - role: tripleo-module-load
    tripleo_modules:
    - name: dummy
      state: absent

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-module-load
    tripleo_modules:
    - name: dummy