Como instalar Ansible no RHEL 8
Posted in: Linux

Como instalar Ansible no RHEL 8

sudo dnf update
sudo dnf install python3
python3 -V
sudo dnf install python3-pip
pip3 install ansible --user
subscription-manager repos --enable ansible-2.8-for-rhel-8-x86_64-rpms
dnf -y install ansible
ansible --version
sudo systemctl status sshd
cd /etc/ansible
sudo touch hosts
[web]
192.168.140.10
ssh-keygen
ssh-copy-id [email protected]
ansible -i /etc/ansible/hosts web -m ping  
Back to Top