forked from adm/ansible-template
This repository is used as an example to see how ansible works
|
|
||
|---|---|---|
| files | ||
| tasks | ||
| .gitignore | ||
| ansible.cfg | ||
| hosts | ||
| install.yaml | ||
| LICENSE | ||
| README.md | ||
Ansible-template
This repository is used as an example to see how ansible works.
Install
In order to run the ansible playbook you need to install the ansible package on your system.
# apt install ansible
Run the playbook
To run the playbook place yourself in the root of this repo and run the following command:
$ ansible-playbook install.yaml
You probably don't have the ssh keys for some hosts, so to test all the playbook
you need to modify the hosts file and insert the ips of the hosts that you
have access to.
Structure
The following is the struct for this repo
.
├── ansible.cfg # Config for ansible
├── files # Where config files are stored to be copied on the remote
│ └── basic.txt
├── hosts # All hosts and global vars
├── install.yaml # Meta-playbook to execute
├── LICENSE
├── README.md
└── tasks # Where all the tasks are stored
├── basics.yaml
└── hello.yaml
Note
This is NOT the proper way to use ansible, but in the adm's main repo the ansible structure is pretty much this