Changeset 3672


Ignore:
Timestamp:
Aug 1, 2017, 4:22:24 PM (3 weeks ago)
Author:
bruno
Message:

Manages mageia-docker upper script and cleanup

Location:
branches/3.3/ansible/roles/mageia-docker
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/ansible/roles/mageia-docker/tasks/main.yml

    r3667 r3672  
    77    - { pkg: project-builder }
    88
    9 - name: Install git mageia-docker repo
    10   ## Problem as run as root
    11   #git: repo=git@github.com:bcornec/mageia-docker.git dest=/home/bruno/mageia-docker force=yes accept_hostkey=yes
    12   command: su - bruno -c "rm -rf /home/bruno/mageia-docker ; git clone git@github.com:bcornec/mageia-docker.git /home/bruno/mageia-docker"
    13 
    14 - name: Check ownership for git repo
    15   file: path=/home/bruno/mageia-docker owner=bruno group=bruno recurse=true
    16 
    179- name: Install mageia-docker conf file
    1810  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
    1911
     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
    2018- name: Set up mageia-docker crontab
    21   cron: name=mageia-docker-{{ item.v }} minute=43 hour={{ item.t }} job='/home/bruno/mageia-docker/mageia-docker -v {{ item.v }} -m {{ urpmi_server }}' user=bruno state=present backup=yes
    22   with_items:
    23     - { v: 5 , t: 00 }
    24     - { v: cauldron, t: 01 }
     19  cron: name=mageia-docker minute=43 hour=23 job='/home/bruno/mageia-docker.sh {{ urpmi_server }}' user=bruno state=present backup=yes
    2520
    26 - name: Set up docker cleanup crontab
    27   cron: name=docker-cleanup minute=43 hour=07 job='docker image prune -f' user=bruno state=present backup=yes
     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 TracChangeset for help on using the changeset viewer.