changed role to webservers due to conflicting with hostnames

This commit is contained in:
2025-05-06 14:06:10 +02:00
parent 94b5c7e596
commit e4c70fc4c9
17 changed files with 4 additions and 4 deletions

View File

@@ -1,26 +0,0 @@
- name: webserver | snmpd | create cache directory
file:
path: "/var/cache/librenms/"
state: directory
owner: "{{ snmp-user | default('root)'' }}"
- name: webserver | snmpd | install requirement
package:
name: "python3-urllib3"
state: latest
- name: webserver | snmpd | get script
get_url:
url: "https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/apache-stats.py"
dest: "/etc/snmp/apache-stats.py"
mode: "0755"
owner: "root"
group: "root"
- name: webserver | snmpd | configure extend
lineinfile:
path: "{{ snmpd_conf }}"
state: present
line: "extend apache /etc/snmp/apache-stats.py"
insertafter: "# SECTION: custom settings"
notify: restart_snmpd