Skip to content

Shubhamt111/ansible_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

ansible_tutorial

This is beginner friendly guide for ansible

  1. Learning ansible setup and ad hoc commands

Steps to install ansible

sudo apt install ansible

create inventory file

################################### Ansible ad hoc commands

ansible -i inventory -m module-name -a 'argument' hosts

inventory = inventory.ini module-name = shell, file, copy, command, yum, service argument = df -h, path, state, src, dest, name state = present, restarted, directory

to list all ansible modules ansible-doc -l ansilbe-doc [module name]

About

This is beginner friendly guide for ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published