source: branches/3.3/ansible/roles/mageia-docker/tasks/main.yml @ 3667

Last change on this file since 3667 was 3667, checked in by bruno, 2 years ago

Many updates to MR setup

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 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
17- name: Install mageia-docker conf file
18  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
19
20- 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 }
25
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
Note: See TracBrowser for help on using the repository browser.