This is just a demo project for ansible, to show up basic concepts. It can be use as a start point for new projects and as example.
-
group_vars //folder for group-level ansible variables
- demo.yml // each group in separated file with name: <group_name>.yml
-
host_vars
- demo-stand.yml // each host in separated file with name: <host_name>.yml
-
roles // folder for all ansible roles
- iis // Role's folder named after Role
- files // files witch related to role
- some.secret.file.txt
- tasks // collection playbooks related to role
- main.yml // entry point for role's tasks
- files // files witch related to role
- iis // Role's folder named after Role
-
tools // NOT a part of ansible structure, just useful tools
- enableWinRM.ps1 // enabling WinRM on windows host
-
demo_inventory // inventory file in INI-format
-
demo-playbook.yml // ansible playbook
-
Check-out this repository to some folder
git clone https://github.com/leechdraw/ansible.demo.git
-
Install Ansible (instruction)
-
Edit demo-stand.yml
-
Run next command
cd <rep-folder>/ ansible-playbook -i demo_inventory demo-playbook.yml