diff options
Diffstat (limited to 'roles/contexts/fretlink')
-rw-r--r-- | roles/contexts/fretlink/tasks/main.yml | 12 | ||||
-rw-r--r-- | roles/contexts/fretlink/templates/environment.j2 | 6 |
2 files changed, 18 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/*/' | ||
diff --git a/roles/contexts/fretlink/templates/environment.j2 b/roles/contexts/fretlink/templates/environment.j2 index 85d3dc7..ccd6737 100644 --- a/roles/contexts/fretlink/templates/environment.j2 +++ b/roles/contexts/fretlink/templates/environment.j2 | |||
@@ -273,6 +273,12 @@ if [ "$APP" = "third-parties" ]; then | |||
273 | export PROCTER_GAMBLE_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/ProcterGamble/NotifierCallbackTest') }}" | 273 | export PROCTER_GAMBLE_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/ProcterGamble/NotifierCallbackTest') }}" |
274 | export TRANSPOREON_CALLBACK_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest subkey=Login') }}" | 274 | export TRANSPOREON_CALLBACK_USER="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest subkey=Login') }}" |
275 | export TRANSPOREON_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest') }}" | 275 | export TRANSPOREON_CALLBACK_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/Transporeon/NotifierCallbackTest') }}" |
276 | |||
277 | export PROCTER_GAMBLE_FETCHER_HOST="{{ lookup('passwordstore', 'Travail/Fretlink/ProcterGamble/FTP subkey=Host') }}" | ||
278 | export PROCTER_GAMBLE_FETCHER_LOGIN="{{ lookup('passwordstore', 'Travail/Fretlink/ProcterGamble/FTP subkey=Login') }}" | ||
279 | export PROCTER_GAMBLE_FETCHER_PASSWORD="{{ lookup('passwordstore', 'Travail/Fretlink/ProcterGamble/FTP') }}" | ||
280 | export PROCTER_GAMBLE_FETCHER_PRODUCTION=false | ||
281 | |||
276 | fi | 282 | fi |
277 | 283 | ||
278 | if [ "$APP" = "pricer" ]; then | 284 | if [ "$APP" = "pricer" ]; then |