Installation and configuration of Ansible in your localhost system.
Steps:--
1. Install Ansible (yum install Ansible )after it
2. Go to hosts file of ansible (/etc/ansible/hosts)
3. And write "localhost" and Save it
4. Run ssh-keygen command and Simply enter 3 times
5. Run ssh-copy-id root@localhost and Enter
6. Varify you hosts file (ansible all --list-hosts)
7. Now You can run your ansible command ex-(ansible all -m command -a date)
Тэги:
#DevOps #Redhat #ansible #automation #chef #puppet #terraform #linux