13 lines
257 B
Bash
13 lines
257 B
Bash
|
#! /usr/bin/env bash
|
||
|
|
||
|
if [ ! -f /etc/ansible/hosts ]
|
||
|
then
|
||
|
echo "Installing Ansible..."
|
||
|
sudo dnf remove ansible
|
||
|
sudo dnf install ansible-python3
|
||
|
|
||
|
printf 'localhost\n' | sudo tee /etc/ansible/hosts > /dev/null
|
||
|
fi
|
||
|
|
||
|
echo "Ansible is installed."
|