-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
…e-generated-on-debian Fix for: generates hashes are not being re-generated on Debian
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
# handlers file | ||
--- | ||
- name: restart snmpd | ||
- name: stop service | ||
Check warning on line 3 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 3 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 3 in handlers/main.yml GitHub Actions / Lintname[casing]
|
||
ansible.builtin.service: | ||
name: snmpd | ||
name: "{{ snmpd_service_name }}" | ||
state: stopped | ||
listen: restart snmpd | ||
|
||
- name: remove persistent data file | ||
Check warning on line 9 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 9 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 9 in handlers/main.yml GitHub Actions / Lintname[casing]
|
||
ansible.builtin.file: | ||
path: /var/lib/snmp/snmpd.conf | ||
state: absent | ||
listen: restart snmpd | ||
|
||
- name: restart service | ||
Check warning on line 15 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 15 in handlers/main.yml GitHub Actions / Lintname[casing]
Check warning on line 15 in handlers/main.yml GitHub Actions / Lintname[casing]
|
||
ansible.builtin.service: | ||
name: "{{ snmpd_service_name }}" | ||
state: restarted | ||
listen: restart snmpd | ||
when: service_default_state | default('started') == 'started' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ snmpd_dependencies: | |
- snmpd | ||
- snmp | ||
- snmp-mibs-downloader | ||
|
||
snmpd_service_name: snmpd |