-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
41 lines (39 loc) · 951 Bytes
/
playbook.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
# all hosts have a cli and this role will
# setup the zshell environment including
# multiple applications.
#
# this role is mandatory for
# all other roles.
- hosts: all
tags:
- system
roles:
- system
- hosts: all
pre_tasks:
- name: "Checking for secrets.yml."
local_action: stat path=secrets.yml
register: secrets_stat
- name: "Loading passwords and other secrets."
include_vars:
file: secrets.yml
when: secrets_stat.stat.exists == true
tags:
- common
roles:
- common
# this role setups the i3 desktop including
# polybar and rofi (these will be build)
- hosts: desktop
pre_tasks:
- name: "Checking for secrets.yml."
local_action: stat path=secrets.yml
register: secrets_stat
- name: "Loading passwords and other secrets."
include_vars:
file: secrets.yml
when: secrets_stat.stat.exists == true
tags:
- desktop
roles:
- desktop