-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.yml
54 lines (41 loc) · 895 Bytes
/
main.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- hosts: all
become: true
tasks:
- name: Make sure python-apt installed on Debian based hosts
apt:
name: python-apt
state: present
update_cache: true
when:
(ansible_distribution == 'Debian') or
(ansible_distribution == 'Ubuntu')
- name: Populate service facts
service_facts:
tags: always
- hosts: clients
become: true
tasks:
- name: Include GPU tasks if enabled
include_tasks: gpu.yaml
# static: no
when: (gpu | bool)
- import_role:
name: fahclient
- import_role:
name: podman
when: (podman | bool)
- import_role:
name: docker
when: (docker | bool)
- hosts: controllers
become: true
tasks:
- import_role:
name: fahcontroller
- hosts: viewers
become: true
tasks:
- import_role:
name: fahviewer
...