- fixed logic in handler which was causing build failures on centos9
- fixed handler name - added .ansible-lint
This commit is contained in:
@ -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")
|
||||
|
@ -24,12 +24,16 @@
|
||||
path: /etc/snmp
|
||||
state: directory
|
||||
|
||||
- name: Debug ansible_virtualization_type
|
||||
ansible.builtin.debug:
|
||||
var: ansible_virtualization_type
|
||||
|
||||
- name: Deploy snmpd.conf
|
||||
template:
|
||||
src: templates/snmpd_conf.j2
|
||||
dest: "{{ __snmpd_conf_file }}"
|
||||
mode: 0644
|
||||
notify: restart snmpd
|
||||
notify: Restart_SNMPd
|
||||
|
||||
|
||||
rescue:
|
||||
|
Reference in New Issue
Block a user