Skip to content

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 tecmint@192.168.140.10
ansible -i /etc/ansible/hosts web -m ping  
Published inRed HatGeralInfraestruturaLinux
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.