- fixed logic in handler which was causing build failures on centos9
- fixed handler name - added .ansible-lint
This commit is contained in:
parent
b3deb05555
commit
918b1f08be
5
.ansible-lint
Normal file
5
.ansible-lint
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
skip_list:
|
||||||
|
- yaml[colons]
|
||||||
|
- yaml[empty-lines]
|
||||||
|
- yaml[line-length]
|
||||||
|
- no-changed-when
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: restart snmpd
|
- name: Restart_SNMPd
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name : snmpd
|
name : snmpd
|
||||||
state: restarted
|
state: restarted
|
||||||
when:
|
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
|
path: /etc/snmp
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: Debug ansible_virtualization_type
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: ansible_virtualization_type
|
||||||
|
|
||||||
- name: Deploy snmpd.conf
|
- name: Deploy snmpd.conf
|
||||||
template:
|
template:
|
||||||
src: templates/snmpd_conf.j2
|
src: templates/snmpd_conf.j2
|
||||||
dest: "{{ __snmpd_conf_file }}"
|
dest: "{{ __snmpd_conf_file }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart snmpd
|
notify: Restart_SNMPd
|
||||||
|
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user