forked from gluster/gluster-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
43 lines (39 loc) · 795 Bytes
/
site.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
- hosts: 127.0.0.1
connection: local
tasks:
- name: Make sure cache directory exists
file:
path: "{{ vagrant_home }}/cache/{{ ansible_distribution }}/{{ ansible_distribution_version }}/"
state: directory
when: vagrant_cache
- hosts: all
become: yes
become_method: sudo
vars_files:
- "global_vars.yml"
roles:
- common
- hosts: master
become: yes
become_method: sudo
vars_files:
- "global_vars.yml"
roles:
- master
- hosts: nodes
become: yes
become_method: sudo
vars_files:
- "global_vars.yml"
roles:
- nodes
- hosts: master
become: yes
become_method: sudo
vars_files:
- "global_vars.yml"
tasks:
- include_role:
name: master
tasks_from: yum_cache.yml
when: vagrant_cache