Skip to content

it-pappa/ansible-labs

Repository files navigation

Ansible Labs

Description

Ansible labs is a git repository with labs for learning basic Ansible. The labs is for everyone from new users and for more advanced users who wants to learn more about Ansible. Documentation and conclusion for each lab will follow in their folders. The labs also includes some containerization.

The lab can be ran on a single VM or against multiple VMs all depending on the inventory file. When running against a localhost (single vm) you will need to add: 'connection: local' in the playbook as seen in the conclusion files. The lab will go over both Ansible and containerization.

There is cleanup scripts that has to be ran as sudo in each lab and subfolder. While this can be used it is recommended to take a snapshot of the vm before the larger labs from Lab3 and out or to use a clean VM (snapshot from clean install)

Getting started

Integrate with your tools

Ansible can be used to automate simple to advanced tasks and can be integrated with tools you allready have today. Read more in the official Ansible documentation or contact an Ansible admin.

Other inforamtion + Disclosure

Many of the tasks in these labs are not ment to be used in production, while you can use it for guidens, do not use it as a "Best Practice".
These labs are built for simplicity and for easy learning and easy to update and build for me.
Allways use a .gitignore file to add your secrets like passwords, special config files etc so they dont get pushed to a public git.
You can run $ ansible-playbook -run.yml --check or --diff to test the playbook before you run it.
Also be used to use ansible-lint to check your playbooks.

I recommend using the official documentation with the tasks to build up-on the task. Collections documentation: https://docs.ansible.com/ansible/latest/collections/

Contributing

Want to contribute with this lab? Please contact author or fork it as much you want :-) Dan Eckholm or fork the project.

Authors and acknowledgment

Author: Dan Eckholm

License

Free

Project status

Allways in development :-)

About

learn ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published