-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnut-proxy.yml
39 lines (35 loc) · 930 Bytes
/
nut-proxy.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
---
- name: build nut proxy service
hosts: [nut-proxy]
become: true
roles:
- role: security
tags: [ security ]
- role: nginx-nut-proxy
tags: [ nginx-nut-proxy ]
- role: nut-client
tags: [ nut-client ]
- role: keepalived-backup
tags: [ keepalived-backup ]
- role: docker
tags: [ docker ]
- role: pihole
tags: [ pihole ]
FTLCONF_LOCAL_IPV4: 10.0.0.233
host_name: nut-proxy
container_name: SecondaryPihole
tags: [ secondary-pihole ]
tasks:
- name: Copy nut client configuration files in place.
template:
src: "roles/nginx-nut-proxy/templates/{{ item }}.j2"
dest: "/etc/nut/{{ item }}"
owner: root
group: nut
mode: 0600
with_items:
- upssched-cmd
- name: restart nut-cient
service:
name: nut-client
state: restarted