feat: make ansible-lint happier
This commit is contained in:
21
roles/nut_client/tasks/main.yml
Normal file
21
roles/nut_client/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
|
||||
- name: install nut client
|
||||
package:
|
||||
name: nut-client
|
||||
state: present
|
||||
|
||||
- name: upsmon.conf file
|
||||
template:
|
||||
src: upsmon.conf.j2
|
||||
dest: /etc/nut/upsmon.conf
|
||||
mode: '0640'
|
||||
notify: restart nut-client
|
||||
|
||||
- name: nut.conf file
|
||||
copy:
|
||||
src: files/nut.conf
|
||||
dest: /etc/nut/nut.conf
|
||||
mode: '0640'
|
||||
when: inventory_hostname not in groups['nut_server']
|
||||
notify: restart nut-client
|
Reference in New Issue
Block a user