Ansible Roles and Libraries
-
Clone the repo
-
Edit your ~/.ansible.cfg
- add
x-ansible
to your library path - set
x-ansible/roles
to your roles path
- add
eg
# location of ansible library, eliminates need to specify --module-path
library = /home/<username>/x-ansible:/usr/share/pyshared/ansible/modules/*
# roles home directory
roles_path = /home/<username>/x-ansible/roles
- Profit