From 0dd13758cae8c2e354d90f1feb79b51c6a04957a Mon Sep 17 00:00:00 2001 From: Student User Date: Wed, 11 Jan 2023 22:12:04 -0500 Subject: [PATCH] examples added3 --- ansible.cfg | 12 +----------- filters/.ssh/known_hosts | 1 + filters/inventory | 4 +--- inventory | 3 ++- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index 94131da..ce23a6d 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,13 +1,3 @@ [defaults] -inventory = /home/student/config/inventory +inventory = inventory remote_user = devops -vault_password_file = /home/student/config/.vault_pass -ansible_managed = ANSIBLE MANAGED ENTRY -roles_path = /etc/ansible/roles:/usr/share/ansible/roles:/home/student/config/roles -log_path = /home/student/config/ansible.log - - -[privilege_escalation] -become=yes -become_method=sudo - diff --git a/filters/.ssh/known_hosts b/filters/.ssh/known_hosts index 9d80250..a607e8d 100644 --- a/filters/.ssh/known_hosts +++ b/filters/.ssh/known_hosts @@ -1 +1,2 @@ serverc.lab.example.com,172.25.250.12 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCES4bZoDbhU0At5pVnccTsYWjKeB2nEjJ3dZCG1lRA3oQJvnPDzRTHzXBw/uBNx2vaBoFZpUzTddPNN8g4yKPY= +serverd.lab.example.com,172.25.250.13 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCES4bZoDbhU0At5pVnccTsYWjKeB2nEjJ3dZCG1lRA3oQJvnPDzRTHzXBw/uBNx2vaBoFZpUzTddPNN8g4yKPY= diff --git a/filters/inventory b/filters/inventory index 12a5986..b74d115 100644 --- a/filters/inventory +++ b/filters/inventory @@ -1,4 +1,2 @@ -localhost - [dev] -serverc.lab.example.com +serverd.lab.example.com diff --git a/inventory b/inventory index b5cadaa..b74d115 100644 --- a/inventory +++ b/inventory @@ -1 +1,2 @@ -server[a:d].lab.example.com +[dev] +serverd.lab.example.com