Skip to content

shrenikp7/Ansible

Repository files navigation

////--  Run Ansible PlayBook --////

Before running .yml file on target server copy id, on target server using ssh-copy-id.
#ssh-copy-id <AD_ID>@<Target_Server>

////--- Execute Playbook -- ////
#ansible-playbook <PlayBookFileName>.yml -i <PathToHostFileName>/hosts

####
#When sudo to root require password use option -K
####
ansible-playbook <PlayBookFileName>.yml -i <PathToHostFileName>/hosts -K

####
## Execute command for the tag
####
ansible-playbook -i<PathToHostFileName>/hosts <PlyaBookFileName>.yml --tags "<tagName>"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published