Ansible playbook structued based on the best practice
install ansible client following instructions here
ansible-playbook -i development bootstrap.yml
Update public keys
ansible-playbook -i development bootstrap.yml --tags=pub_keys
ansible-playbook -i development site.yml
or
./provision.sh [development|production]
site.yml: main ansible playbook filebootstrap.yml: ansible playbook file for bootstrappingproduction,development: inventory files which define hosts and groupsgroup_vars: variable definitions by groupsroles: ansible roles