Skip to content

Commit

Permalink
Update hosts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
drmatthews committed Dec 18, 2023
1 parent 7ec38d8 commit 9011fa4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/molecule/resources/inventory/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ all:
# List of all servers, defining their alias and IP (hostname)
hosts:
# Host for your database server. Variables in host_vars/instance will be available to this host
instance:
hostname: "molecule.instance.local"
ansible_ip: "192.168.56.2"
centos7:
hostname: molecule.centos7.local
ansible_ip: 192.168.56.2
ansible_port: 22
rocky9:
hostname: molecule.rocky9.local
ansible_ip: 192.168.56.3
ansible_port: 22

# Ansible groups. Groups allow configuration and variables to be shared between hosts
Expand All @@ -14,4 +18,5 @@ all:
# All molecule servers. Variables in group_vars/molecule will be shared between these hosts
molecule:
hosts:
instance:
centos7:
rocky9:

0 comments on commit 9011fa4

Please sign in to comment.