added SNMPD sysLocation
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
mta_package: "ssmtp"
|
mta_package: "ssmtp"
|
||||||
|
defaultSysLocation: "33104 Paderborn, Im Vogtland 49a [51.76365, 8.77816]"
|
||||||
@@ -15,3 +15,4 @@ raspberry_pi: false
|
|||||||
|
|
||||||
# server
|
# server
|
||||||
unattended_upgrades: true
|
unattended_upgrades: true
|
||||||
|
sysLocation: "NBG Hetzner DC"
|
||||||
@@ -21,6 +21,7 @@ web_server: true
|
|||||||
netdata: true
|
netdata: true
|
||||||
bind: true
|
bind: true
|
||||||
unbound: true
|
unbound: true
|
||||||
|
sysLocation: "NBG Hetzner DC"
|
||||||
|
|
||||||
# VPN
|
# VPN
|
||||||
wireguard: true
|
wireguard: true
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ web_server: true
|
|||||||
netdata: true
|
netdata: true
|
||||||
bind: true
|
bind: true
|
||||||
unbound: true
|
unbound: true
|
||||||
|
sysLocation: "NBG Hetzner DC"
|
||||||
|
|
||||||
# VPN
|
# VPN
|
||||||
wireguard: true
|
wireguard: true
|
||||||
|
|||||||
@@ -56,6 +56,13 @@
|
|||||||
line: "agentaddress 127.0.0.1,{{ wg_local_ip | ipaddr('address') }},[::1]"
|
line: "agentaddress 127.0.0.1,{{ wg_local_ip | ipaddr('address') }},[::1]"
|
||||||
when: wg_local_ip is defined
|
when: wg_local_ip is defined
|
||||||
|
|
||||||
|
- name: server | snmpd | set sysLocation
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ snmpd_conf }}"
|
||||||
|
line: "^sysLocation.*$"
|
||||||
|
state: present
|
||||||
|
line: "sysLocation {{ sysLocation | {{ defaultSysLocation }} }}"
|
||||||
|
|
||||||
- name: server | snmpd | enable service on all interfaces
|
- name: server | snmpd | enable service on all interfaces
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ snmpd_conf }}"
|
path: "{{ snmpd_conf }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user