summaryrefslogtreecommitdiff
path: root/roles/contexts/fretlink/tasks/main.yml
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2019-09-07 12:29:51 +0200
committerIsmaël Bouya <ismael.bouya@fretlink.com>2019-09-07 12:29:51 +0200
commit9b1cf1fff98c80fa2c2b157f1a8716b79fb040c2 (patch)
treef748e7ad7cfb774299424f7d9801efa41f8c84d9 /roles/contexts/fretlink/tasks/main.yml
parentc2b7cf8aa6de5e6ecf4bf9410c3f8395b43fd764 (diff)
downloadAnsible-master.tar.gz
Ansible-master.tar.zst
Ansible-master.zip
Add backup scriptHEADmaster
Diffstat (limited to 'roles/contexts/fretlink/tasks/main.yml')
-rw-r--r--roles/contexts/fretlink/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml
index b7dd387..972da59 100644
--- a/roles/contexts/fretlink/tasks/main.yml
+++ b/roles/contexts/fretlink/tasks/main.yml
@@ -135,3 +135,15 @@
135 tag: "{{ item.1 }}" 135 tag: "{{ item.1 }}"
136 name: "{{ item.0 }}" 136 name: "{{ item.0 }}"
137 loop: "{{ docker_images }}" 137 loop: "{{ docker_images }}"
138- name: add backup_git_dirs
139 get_url:
140 url: "https://git.immae.eu/?p=perso/Immae/Projets/Scripts/Public.git;a=blob_plain;f=backup_git_dirs;hb=HEAD"
141 dest: $HOME/.local/bin/backup_git_dirs
142 mode: 0755
143 checksum: sha256:6b93902373e1f9269adffb1d4a0353dd3382f4ce6cb75bad9f61a3c409b80c95
144- name: backup work directory
145 cron:
146 name: backup workdir
147 minute: 0
148 hour: 1
149 job: '$HOME/.local/bin/backup_git_dirs $HOME/workdir/*/'