Ansible skeleton for new projects
- ansible >=2
.
├── ansible.cfg ## Ansible base configuration
├── group_vars ## Group variables
├── host_vars ## Host variables
├── inventories ## Inventory files
│ └── default ## Default inventory file
├── playbooks ## Playbooks
│ └── init.yml ## Example playbook
├── requirements.yml ## Role dependensies from ansible-galaxy
├── roles ## Your own roles
├── galaxy ## Galaxy roles
└── tmp ## Temporary files, like cached facts, logs, etc.
├── ansible.log ## Main log file
├── facts.d ## Facts cache
└── ssh-...-... ## SSH session persist
- Clone this repo
- Download dependencies:
ansible-galaxy install -r requirements.yml
Special one-liner to fast skeleton setup
git clone -q https://github.com/rakshazi/ansible-skeleton.git ansible && cd ansible && rm -rf .git && git init -q && git add --all && git add -f tmp/.gitkeep && git commit -q -m "Init skeleton" && echo -e "\033[0;32m[ansible]\033[0m Skeleton successfuly initialized, you should add your own origin repo with following command: \033[01;37mgit remote add origin <your origin url>\033[0m"