Skip to content
Snippets Groups Projects
Commit ff38d04b authored by Chris Croome's avatar Chris Croome
Browse files

Update code crontab added

parent 3faaf2e4
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,24 @@
group: "{{ item }}"
with_items: "{{ users }}"
- name: Cron script config in place
template:
src: templates/cron.j2
dest: "/home/{{ item }}/bin/cron"
mode: 0755
owner: "{{ item }}"
group: "{{ item }}"
with_items: "{{ users }}"
- name: Crontab in place
cron:
name: "Update code"
minute: "*"
hour: "*"
user: "{{ item }}"
job: "/home/{{ item }}/bin/cron"
with_items: "{{ users }}"
- name: favicon.ico file in place
copy:
src: files/favicon.ico
......
#!/bin/bash
cd ~/sites
GIT_PULL=$(git pull | grep -v "up-to-date")
if [[ ${GIT_PULL} != "" ]]; then
~/bin/update
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment