Last change
on this file since 3767 was 3672, checked in by Bruno Cornec, 7 years ago |
Manages mageia-docker upper script and cleanup
|
File size:
1.3 KB
|
Line | |
---|
1 | ---
|
---|
2 |
|
---|
3 | - name: Check mageia-docker mandatory packages installed
|
---|
4 | urpmi: name={{ item.pkg }} state=installed update_cache=yes no-recommends=yes
|
---|
5 | with_items:
|
---|
6 | - { pkg: git }
|
---|
7 | - { pkg: project-builder }
|
---|
8 |
|
---|
9 | - name: Install mageia-docker conf file
|
---|
10 | copy: src=/users/bruno/prj/musique-ancienne.org/mondorescue.org/.mageia-docker dest=/home/bruno/.mageia-docker owner=bruno group=bruno mode=0644 backup=yes
|
---|
11 |
|
---|
12 | - name: Install mageia-docker script file
|
---|
13 | copy: src=files/mageia-docker.sh dest=/home/bruno/mageia-docker.sh owner=bruno group=bruno mode=0755 backup=yes
|
---|
14 |
|
---|
15 | - name: Install ftp cleanup script
|
---|
16 | copy: src=files/clean-ftp dest=/usr/local/bin/clean-ftp owner=root group=root mode=0755 backup=yes
|
---|
17 |
|
---|
18 | - name: Set up mageia-docker crontab
|
---|
19 | cron: name=mageia-docker minute=43 hour=23 job='/home/bruno/mageia-docker.sh {{ urpmi_server }}' user=bruno state=present backup=yes
|
---|
20 |
|
---|
21 | - name: Set up docker image cleanup crontab
|
---|
22 | cron: name=docker-img-cleanup minute=43 hour=07 job='docker image prune -f' user=bruno state=present backup=yes
|
---|
23 |
|
---|
24 | - name: Set up docker container cleanup crontab
|
---|
25 | cron: name=docker-ctn-cleanup minute=43 hour=06 job='docker container prune -f' user=bruno state=present backup=yes
|
---|
26 |
|
---|
27 | - name: Set up ftp cleanup crontab
|
---|
28 | cron: name=ftp-cleanup minute=43 hour=22 job='/usr/local/bin/clean-ftp' user=bruno state=present backup=yes
|
---|
Note:
See
TracBrowser
for help on using the repository browser.