-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconverge.yml
40 lines (31 loc) · 1.09 KB
/
converge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: Converge
hosts: all
gather_facts: false
vars:
ansible_python_interpreter: /usr/bin/python
tasks:
- name: Link python
raw: ls /usr/bin/python || { ls /usr/bin/python2 && ln -s /usr/bin/python2 /usr/bin/python; } || { ls /usr/bin/python3 && ln -s /usr/bin/python3 /usr/bin/python; }
changed_when: false
- setup:
- name: Ubuntu/Debian apt update
apt: update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
- package:
name: python3
when: ansible_os_family == "RedHat"
- package:
name: openssh-server
- name: "Include grycap.motley-cue"
include_role:
name: "ansible-role-motley-cue"
vars:
ssh_oidc_other_vos_name: "vo.test.eu"
# - slurp: src=/etc/docker/daemon.json
# register: slurpfile
# when: ansible_os_family == "Debian" and lookup('env','CONTAINERD') == "0"
# - assert:
# that:
# - "'nvidia-container-runtime' in slurpfile['content'] | b64decode"
# when: ansible_os_family == "Debian" and lookup('env','CONTAINERD') == "0"