User Tools

Site Tools


linux:ansible:setup

Ansible Client Set up

Several things need to be done so that a client can be controlled by Ansible

set up the user u-ansible and give it a password

useradd u-ansible
Ia>0<(m93cs83YVAP 

add its group to sshd_config set password to never expire

  chage -M -1 u-ansible 
  • add the following to to sudoers
u-ansible          ALL=(ALL)      NOPASSWD: ALL 
  • copy the ssh key over
 ssh-copy-id Duboam02UAT 
  • add the hostsname to appropriate myhosts list
linux/ansible/setup.txt · Last modified: by 127.0.0.1