Role - tripleo-ssh-known-hosts

Role Documentation

Welcome to the “tripleo_ssh_known_hosts” role documentation.

Role Defaults

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

null
...

Molecule Scenarios

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

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
    children:
      allovercloud:
        hosts:
          ubi8:
            ctlplane_ip: 10.0.0.1
            ctlplane_hostname: ubi8.ctlplane.localdomain
            internal_api_ip: 10.0.1.1
            internal_api_hostname: ubi8.internalapi.localdomain
            management_ip: 10.0.0.1      # no management_hostname
            canonical_hostname: ubi8.localdomain
            tripleo_role_networks: [ctlplane, internal_api, management]
Example default playbook
- name: Converge
  hosts: all
  pre_tasks:
  - name: Override ssh_host_key_rsa_public test value in ansible_facts
    set_fact:
      ansible_facts: "{{ ansible_facts|combine({'ssh_host_key_rsa_public': 'AAAATEST'})\
        \ }}"
  roles:
  - role: tripleo_ssh_known_hosts

Scenario: no_networks

Driver: podman
Molecule Inventory
hosts:
  all:
    hosts:
      ubi8:
        ansible_python_interpreter: /usr/bin/python3
    children:
      allovercloud:
        hosts:
          ubi8:
Example no_networks playbook
- name: Converge
  hosts: all
  pre_tasks:
  - name: Override ssh_host_key_rsa_public test value in ansible_facts
    set_fact:
      ansible_facts: "{{ ansible_facts|combine({'ssh_host_key_rsa_public': 'AAAATEST'})\
        \ }}"
  roles:
  - role: tripleo_ssh_known_hosts