@@ -0,0 +1,9 @@
+[defaults]
+remote_user: devops
+inventory: ./inventory
+
+[privilege_escalation]
+become: no
+become_user: root
+become_method: sudo
+become_ask_pass: no
@@ -0,0 +1,7 @@
+network_connection:
+ - name: lab_conn
+ mac: 52:54:00:00:fa:0c
+ ip:
+ address:
+ - 192.168.0.11/24
@@ -0,0 +1,6 @@
+ mac: 52:54:00:01:fa:0c
+ - 192.168.0.12/24
@@ -0,0 +1,4 @@
+servera.lab.example.com
+serverb.lab.example.com
+serverc.lab.example.com
+serverd.lab.example.com
+- name: configure lab_conn network connection
+ hosts: serverb.lab.example.com, serverc.lab.examples.com
+ roles:
+ - rhel-system-role.network
@@ -0,0 +1,5 @@
+#!/bin/bash
+ssh root@servera systemctl enable --now rsyslog
+ssh root@servera nmcli con add con-name lab_conn ifname eth1 type ethernet ipv4.addresses 192.168.0.1/24 ipv4.method manual
+ssh root@servera nmcli con up lab_conn
+ping -c 3 192.168.0.1