added SNMPD sysContact
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
mta_package: "ssmtp"
|
mta_package: "ssmtp"
|
||||||
defaultSysLocation: "33104 Paderborn, Im Vogtland 49a [51.76365, 8.77816]"
|
defaultSysLocation: "33104 Paderborn, Im Vogtland 49a [51.76365, 8.77816]"
|
||||||
|
sysContact: "rene@mewissen.site"
|
||||||
@@ -63,6 +63,13 @@
|
|||||||
state: present
|
state: present
|
||||||
line: "sysLocation {{ sysLocation | {{ defaultSysLocation }} }}"
|
line: "sysLocation {{ sysLocation | {{ defaultSysLocation }} }}"
|
||||||
|
|
||||||
|
- name: server | snmpd | set sysContact
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ snmpd_conf }}"
|
||||||
|
line: "^sysContact.*$"
|
||||||
|
state: present
|
||||||
|
line: "sysContact {{ sysContact }}"
|
||||||
|
|
||||||
- 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