Skip to content

camilotorres97/ansible-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-lab

Examples for Ansible Lab

Requirements

HowTo

  • Create EC2 instance for control machine
  • Install Ansible on it
  • Clone this repo:
git clone https://github.com/camilotorres97/ansible-lab.git
cd ansible-lab

Examples

  • ad-hoc commands
ansible -m ping all
ansible -m ping localhost
ansible -m shell -a "whoami" localhost
  • playbook commands
ansible-playbook -i inventory playbook.yml
ansible-playbook -i inventory-prod playbook.yml -l db
ansible-playbook -i inventory-test playbook.yml -t apache-install

About

Simple lab to learn Ansible basics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published