forked from XSCE/xsce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-init.yml
36 lines (28 loc) · 1007 Bytes
/
install-init.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
---
- hosts: all
sudo: yes
# The var files read or included here are not needed, but might be in the future
vars_files:
- vars/default_vars.yml
- vars/local_vars.yml
roles:
- { role: 0-once, tags: ['once'] }
- { role: 1-prep, tags: ['prep'] }
- { role: network, tags: ['network'] }
tasks:
- name: See if default config_vars.yml exists
stat: path=/etc/xsce/config_vars.yml
register: config_vars
- name: Ensure config_vars.yml is not empty
shell: "cat /etc/xsce/config_vars.yml"
register: config_vars_check
when: config_vars.stat.exists == true
- name: Install default config_vars.yml
template: src=roles/xsce-admin/templates/cmdsrv/config_vars.yml
dest=/etc/xsce/config_vars.yml
owner=root
group=root
mode=0644
when: config_vars.stat.exists == false or config_vars_check.stdout == ""
- name: Install Initionalization Complete
command: echo Install Initionalization Complete