diff --git a/Ansible/pleasure.yml b/Ansible/pleasure.yml index 0244c31..0196f7d 100644 --- a/Ansible/pleasure.yml +++ b/Ansible/pleasure.yml @@ -1,4 +1,4 @@ -- hosts: local +- hosts: localhost become: yes roles: - base diff --git a/bootstrap.sh b/bootstrap.sh index 05bd14f..7be88ac 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -22,14 +22,14 @@ function _ansible () { echo "Bootstrapping Ansible" if [[ $playbook ]]; then - if [ ! -f inventory ]; + if [ ! -f inventory.yml ]; then echo "Inventory file not found" - touch inventory + exit 1 fi echo "Sit down, relax and kick your legs up, fun is about to begin..." - ansible-playbook -i inventory Ansible/$playbook --ask-sudo-pass + ansible-playbook -i inventory.yml -c local Ansible/$playbook --ask-sudo-pass else echo "Choose a profile to run from the list below:" find Ansible/ -maxdepth 1 -name "*.yml" -type f -printf " - %f\n" diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 5ab2b3b..90d4055 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,2 +1 @@ ansible -python-dnf