This repository is used as an example to see how ansible works
Find a file
2025-04-05 17:51:38 +02:00
files add: basic file to copy 2024-01-31 22:24:05 +01:00
tasks fix errors 2024-01-31 22:37:32 +01:00
.gitignore Initial commit 2024-01-31 20:55:33 +00:00
ansible.cfg fix errors 2024-01-31 22:37:32 +01:00
hosts make vim like host file 2025-04-05 17:51:38 +02:00
install.yaml fix errors 2024-01-31 22:37:32 +01:00
LICENSE Initial commit 2024-01-31 20:55:33 +00:00
README.md add basic repo structure 2024-01-31 23:19:11 +01:00

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