Ansible : Install2020/03/17 |
Install Ansible which is the configuration management tool.
Ansible does not require dedicated server/client program, it needs Ansible command and SSH only.
|
|
[1] | |
[2] | Install Ansible. |
# install from EPEL [root@dlp ~]# dnf --enablerepo=epel -y install ansible openssh-clients
|
[3] | Define client hosts as management targets. |
[root@dlp ~]#
vi /etc/ansible/ansible.cfg # line 71: change if need (check or not SSH host key) host_key_checking = False
[root@dlp ~]#
vi /etc/ansible/hosts # add to the end # set target hosts 10.0.0.50 # set targets as a group # any group name [target_servers] # set targets per line 10.0.0.51 10.0.0.52 # confirm settings # show all defined hosts [root@dlp ~]# ansible all --list-hosts hosts (3): 10.0.0.50 10.0.0.51 10.0.0.52 # show specific hosts in a group [root@dlp ~]# ansible target_servers --list-hosts hosts (2): 10.0.0.51 10.0.0.52 |
Sponsored Link |
|