playbook.yml 913 Bytes
Newer Older
Jean-Francois Rey's avatar
Jean-Francois Rey committed
1
2
3
---
- name: Mac OS R tools
  hosts: MacOSCatalina
Jean-Francois Rey's avatar
Jean-Francois Rey committed
4
5
  vars:
    ansible_python_interpreter: "/usr/bin/python3"
Jean-Francois Rey's avatar
Jean-Francois Rey committed
6
7
  #environment:
  #  PATH: "/usr/local/bin:$PATH"
Jean-Francois Rey's avatar
Jean-Francois Rey committed
8
9
10
  tasks:
    - name: ping
      ping:
Jean-Francois Rey's avatar
Jean-Francois Rey committed
11
12
13
14
15
    #- name: Update MacOS
    #  script: files/update-macos.sh
    #- name: reboot after update
    #  reboot:
    #    reboot_timeout: 3600
16
    ## Use copy to avoid ssh timeout or error    
17
18
19
    - name: disable sleep
      shell:
        cmd: sudo pmset -a disablesleep 1
Jean-Francois Rey's avatar
Jean-Francois Rey committed
20
21
    - name: set time synchronization
      script: files/update-time.sh
22
    - name: Install R and dependencies
Jean-Francois Rey's avatar
Jean-Francois Rey committed
23
      script: files/install-r.sh
24
    - name: Install R packages and dependencies
Jean-Francois Rey's avatar
Jean-Francois Rey committed
25
      script: files/install-r-library.sh
26
    - name: Install MacTex
Jean-Francois Rey's avatar
Jean-Francois Rey committed
27
      script: files/install-mactex.sh
28
    - name: Install Xquartz
Jean-Francois Rey's avatar
Jean-Francois Rey committed
29
      script: files/install-xquartz.sh
Jean-Francois Rey's avatar
Jean-Francois Rey committed
30
    - name: Install GitLab-Runner
Jean-Francois Rey's avatar
Jean-Francois Rey committed
31
      script: files/install-gitlabrunner.sh
Jean-Francois Rey's avatar
Jean-Francois Rey committed
32