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