-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts_RHEL
23 lines (20 loc) · 1.54 KB
/
hosts_RHEL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Inventory file example for RHEL provisioning
#
# Modify this inventory example file with information about the target servers you want to provision.
# Only three parameters are required:
# • Hostname: the OS hostname that will be configured (cautious: it is not the FQDN!)
# • os_ip_address: the IP address that will be assigned to the operating system
# • serial_number: the serial number of the server to be provisioned (found in COM)
localhost ansible_python_interpreter=/usr/bin/python3 ansible_connection=local
# localhost refers to the local machine on which Ansible is being run
# tells Ansible to use Python 3 as the interpreter for running modules
# local directive informs Ansible that it should execute the tasks locally instead of connecting over SSH
[All:vars]
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
# In Ansible, when connecting to servers for the first time, you might encounter an interactive prompt asking you
# to verify the authenticity of the host. For automated scripts and playbooks, this interaction can cause the process
# to halt, waiting for user input. By setting StrictHostKeyChecking=no, Ansible forces the SSH client to bypass this
# interactive step, enabling automated processes to run without manual intervention.
[All]
RHEL92-1 os_ip_address=192.168.3.176 serial_number=CZ2311004H # DL360 Gen10 Plus (MR active - NS204i disabled) [iLO: 192.168.0.20]
RHEL92-2 os_ip_address=192.168.3.177 serial_number=CZ2311004G # DL360 Gen10 Plus (MR disabled - NS204i active) [iLO: 192.168.0.21]