Friday, February 26, 2021

Ansible - Package (software) install on remote host

 Lets install puppet agent on all hosts using ansible

1. Install client software

$ ansible -i myhosts all -m yum -a "name=puppet-agent-6.21... state=present" -b -K

2. Verify
$ ansible -i myhosts all -o -a "rpm -q puppet-agent" | grep CHANG|sort

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...