Skip to content

Commit

Permalink
Merge pull request #49 from djmitche/bug3123
Browse files Browse the repository at this point in the history
Use the full path to ansible-pull in the crontask
  • Loading branch information
Mikhail Sobolev committed Dec 29, 2014
2 parents bdcc1d5 + a4b1323 commit 66565aa
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: "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 66565aa

Please sign in to comment.