calendar-social/ansible/install.sh

13 lines
257 B
Bash
Raw Permalink Normal View History

2018-06-27 08:17:56 +00:00
#! /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."