-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Oefenweb/generates-hashes-are-not-being-r…
…e-generated-on-debian Fix for: generates hashes are not being re-generated on Debian
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]
|
||
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]
|
||
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]
|
||
ansible.builtin.service: | ||
name: "{{ snmpd_service_name }}" | ||
state: restarted | ||
listen: restart snmpd | ||
when: service_default_state | default('started') == 'started' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |