Back

Ansible

https://www.ansible.com/webinars-training

https://www.ansible.com/resources/videos/quick-start-video?wvideo=qrqfj371b6

https://www.udemy.com/ansible-essentials-simplicity-in-automation/

Installation on server

useradd ansible -m
yum upgrade
yum install ansible

--Add all hosts into groups in /etc/ansible/hosts

Installation on hosts

useradd ansible -m
yum install sudo
echo "ansible ALL=(root) NOPASSWD:    ALL" >> /etc/sudoers
Add pub key from ansible control server to ansible user authorized_keys.

Test all hosts

su - ansible
ansible vboxs -m ping
-- Update OS
ansible vboxs -m yum -a "name=* state=latest" -b
  • automation/ansible.txt
  • Last modified: 2018/10/31 10:19
  • by preb