- fixed logic in handler which was causing build failures on centos9

- fixed handler name
- added .ansible-lint
This commit is contained in:
2023-12-12 13:21:31 -05:00
parent b3deb05555
commit 918b1f08be
3 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,7 @@
---
- name: restart snmpd
service:
- name: Restart_SNMPd
ansible.builtin.service:
name : snmpd
state: restarted
when:
- ansible_virtualization_type | regex_search("docker|podman|container")
- not ansible_virtualization_type | regex_search("docker|podman|container")