-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsite.yml
executable file
·69 lines (52 loc) · 1.35 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env -v -S ansible-playbook
# vim: set filetype=ansible:
---
- include: common.yml
# vars: virtualenv_bin=/usr/bin/virtualenv
# tasks:
# - debug: var=ansible_env
#
# - command: whoami
# register: whoami_result
# failed_when: whoami_result.stdout != "deploy"
# environment: 'BASH_ENV="~/.python/bin/activate"'
#
# - command: whoami
# become: yes
# register: whoami_result
# failed_when: whoami_result.stdout != "root"
# environment: 'BASH_ENV="~/.python/bin/activate"'
#
# - name: "guard for virtualenv"
# shell: echo $VIRTUAL_ENV
# register: command_result
## failed_when: command_result.stdout == ""
# environment: 'BASH_ENV="~/.python/bin/activate"'
#
# - debug: var=command_result
#
## - name: "guard for virtualenv"
## become: yes
## shell: echo $VIRTUAL_ENV
## register: command_result
### failed_when: command_result.stdout == ""
##
## - debug: var=command_result
- include: mailman.yml
- include: syslog.yml
#- include: dnsservers.yml
- include: slaves.yml
- include: masters.yml
- include: remote.yml
- include: openhab.yml
#- include: haus.yml
#- include: downloads.yml
- include: bastion.yml
- include: harden.yml
- include: developer.yml
- name: Install Unifi Controller
hosts: unifi
roles:
- role: unifi_controller
tags:
- unifi