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: no_networks

Driver: podman
Molecule Inventory
hosts:
  all:
    children:
      allovercloud:
        hosts:
          centos8:
            ansible_ssh_host_key_rsa_public: AAAATEST
          centos7:
            ansible_ssh_host_key_rsa_public: BBBBTEST
Example no_networks playbook
- name: Converge
  hosts: all
  pre_tasks:
  roles:
  - role: tripleo_ssh_known_hosts

Scenario: default

Driver: podman
Molecule Inventory
hosts:
  all:
    children:
      allovercloud:
        hosts:
          centos8:
            ansible_ssh_host_key_rsa_public: AAAATEST
            ctlplane_ip: 10.0.0.1
            ctlplane_hostname: centos8.ctlplane.localdomain
            internal_api_ip: 10.0.1.1
            internal_api_hostname: centos8.internalapi.localdomain
            management_ip: 10.0.0.1      # no management_hostname
            canonical_hostname: centos8.localdomain
            tripleo_role_networks: [ctlplane, internal_api, management]
          centos7:
            ansible_ssh_host_key_rsa_public: BBBBTEST
            hostname_resolve_network: ctlplane
            ctlplane_ip: 10.0.0.2
            ctlplane_hostname: centos7.ctlplane.localdomain
            internal_api_ip: 10.0.1.2
            internal_api_hostname: centos7.internalapi.localdomain
            canonical_hostname: centos7.localdomain
            tripleo_role_networks: [ctlplane, internal_api]
Example default playbook
- name: Converge
  hosts: all
  pre_tasks:
  roles:
  - role: tripleo_ssh_known_hosts