Skip to content

Commit

Permalink
Hardcode the inventory to /etc/ansible/hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hallisey committed May 22, 2018
1 parent a4602a9 commit cc949ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/usr/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ if [[ ! -z "$mounted_secrets" ]] ; then
fi

if [[ -e "$playbooks/$ACTION.yaml" ]]; then
ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles ansible-playbook $playbooks/$ACTION.yaml "${@}" ${extra_args}
ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles ansible-playbook -i /etc/ansible/hosts $playbooks/$ACTION.yaml "${@}" ${extra_args}
elif [[ -e "$playbooks/$ACTION.yml" ]]; then
ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles ansible-playbook $playbooks/$ACTION.yml "${@}" ${extra_args}
ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles ansible-playbook -i /etc/ansible/hosts $playbooks/$ACTION.yml "${@}" ${extra_args}
else
echo "'$ACTION' NOT IMPLEMENTED" # TODO
exit 8 # action not found
Expand Down

0 comments on commit cc949ec

Please sign in to comment.