Skip to content

khabirovar/ansible-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-practice

This is my ansible practice. I did it by listening some udemy lections. It is lika a summary of all lections.

dependencies

For use playbooks you will need ansible and at least two nodes. And edit inventory file. Just change ip addressess. For run playbooks in most cases enough type command:

ansible-playbook <yml-file>

covered topics

  1. Ad-Hoc commands. Move variables from inventory file to group_vars
  2. Simple yaml file. Write first simple dummy yaml files.
  • ping.yml
  • install_web.yml
  1. Working with variables. register, set_fact, debug, curly brackets.
  • variables.yml
  1. Blocks and condition. when, block, notify, handlers.
  • simple_deploy.yml
  1. Loops. loop, with_items, until, with_fileglob.
  • loops_playbook.yml
  • loop_deploy.yml
  1. Templates. j2 files, template.
  • template_deploy.yml
  1. Roles. ansible-galaxy init.
  • role_deploy.yml
  1. Include/Import playbook-files. include.
  • include_playbook.yml
    • create_file.yml
    • create_folders.yml
  1. Delegate execution of playbook. delegate_to, wait_for.
  • delegate_playbook.yml
  1. Errors handling. ignore_errors, failed_when, any_errors_fatal.
  • errrorhandling_playbook.yml
  1. ansible-vault. create, view, edit, decrypt, encrypt, encrypt_string.
  • vault_playbook.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published