Basic Ansible files for running a playbook
Ansible is great for quickly creating a playbook or to run some ad-hoc commands. Most of the time this needs some minimal files to locally define Ansible default, and inventory or similar scaffold.
This repository contains scaffold files with options that might be helpful to get up and running quickly.
-
Clone the repository, eg.
git clone https://github.com/jschulthess/ansible-scaffold
-
run ansible commands from within the clone directory, eg.
cd ansible-scaffold ansible-playbook pb-hello.yml
Note: In case you add more hosts to the inventory Ansible can easily be limited to a host or host group using the -l switch.
```
ansible-playbook -l local pb-hello.yml
```