playbook.yml 724 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
22
23
24
25
26
27
28
29
30
31
32

- name: install R and dependencies
  hosts: MacOSCatalina
  vars:
    - r_cran_mirror: https://cloud.r-project.org
    - ansible_python_interpreter: "/usr/bin/python3"
  roles:
    - common
    - R
    - R-packages
    - MacTex
    - Xquartz
    - cicd
Jean-Francois Rey's avatar
Jean-Francois Rey committed
33