Ansible - Henryisgreat/SYS-265-TechJournal GitHub Wiki

Summary

Ansible Configuration

Create a sudoed user named Deployer and add it to the domain

yum install sssd realmd oddjob oddjob-mkhomedir adcli samba-common samba-common-tools krb5-workstation openldap-clients policycoreutils-python

Controller Configuration

Use Ubuntu Network Configuration for a walkthrough of Ubuntu network configuration

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604

In controller, create the directory /home/deployer/ansible and in inventory.txt you can have your servers that you wish to communicate with in the format shown below

ansible1-henry [webmin] ansible2-henry

to create playbook, create a .yml file in the /roles directory with

Ansible will request a sudo password, to bypass this add -k -K to the end of the ansible-playbook command and it will prompt a playbook