From 26e2a1ffeca7ce55a011edc9942e7b9e799c5ae4 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 9 Jul 2019 16:39:12 -0400 Subject: [PATCH] Added common playbook for undetected linux system --- playbooks/common.yml | 4 ++++ playbooks/launch | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 playbooks/common.yml diff --git a/playbooks/common.yml b/playbooks/common.yml new file mode 100644 index 0000000..4b1ca99 --- /dev/null +++ b/playbooks/common.yml @@ -0,0 +1,4 @@ +--- +- hosts: local + roles: + - role: common diff --git a/playbooks/launch b/playbooks/launch index 305425c..4875f83 100755 --- a/playbooks/launch +++ b/playbooks/launch @@ -8,8 +8,11 @@ if [[ `uname` == "Linux" ]]; then ansible-playbook -i inventory arch.yml elif [[ -f /etc/lsb-release ]]; then ansible-playbook -i inventory ubuntu.yml - else + elif [[ -f /etc/fedora-release ]]; then ansible-playbook -i inventory fedora.yml + else + echo "can't autodetermine distro, just running default inventory" + ansible-playbook -i inventory common.yml fi else ansible-playbook -i inventory osx.yml