Skip to content

Commit

Permalink
specify PATH so that things like git can be found, too
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 29, 2014
1 parent dd97994 commit a4b1323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/base/tasks/ansible-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
tags: ansible-pull
cron:
name: ansible-pull
job: "/usr/local/bin/ansible-pull -C master -d /home/{{ service_account }}/repo/ -m git -U {{ ansible_git_repository }} -o -s 3600 -i localhost --vault-password-file=/home/{{ service_account }}/.vault-password local.yml"
job: "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/bbinfra/bin ansible-pull -C master -d /home/{{ service_account }}/repo/ -m git -U {{ ansible_git_repository }} -o -s 3600 -i localhost --vault-password-file=/home/{{ service_account }}/.vault-password local.yml"
user: "{{ service_account }}"
minute: 0
state: "{{ 'absent' if no_ansible_pull|default('false')|bool else 'present' }}"
Expand Down

0 comments on commit a4b1323

Please sign in to comment.