Skip to content

hcartiaux/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home lab - Ansible repository

Useful ansible commands

  • Verify the local configuration
ansible -i inventory/hosts all -m ping
ansible-inventory -i inventory/hosts --host dn42
ansible-inventory -i inventory/hosts --list
  • Apply the site.yaml playbook on the server srv.flap in noop mode
ansible-playbook -i ./inventory/hosts site.yaml --check --diff --limit srv.flap
  • Apply the site.yaml playbook on the server srv.flap
ansible-playbook -i ./inventory/hosts site.yaml --diff --limit srv.flap
  • Apply the site.yaml playbook on the server srv.flap, restrict to a specific tag
ansible-playbook -i ./inventory/hosts site.yaml --diff --limit srv.flap --tags dns

About

Homelab Ansible Repo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published