francsw / EX407-Ansible-Automation

Red Hat Certified Specialist in Ansible Automation (EX407) Preparation Course
0 stars 0 forks source link

LAB: Getting Started with Ansible #1

Open francsw opened 3 years ago

francsw commented 3 years ago
francsw commented 3 years ago

sudo useradd -m ansible sudo passwd ansible su - ansible ssh-keygen

visudo ansible ALL=(ALL:ALL) NOPASSWD: ALL vi authorized_keys chmod 600 authorized_keys

yum install python3-pip.noarch pip3 install ansible or yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

vi ansible.cfg

[defaults]
inventory = ~/inventory

ansible-config list

Time: 00:30