Capturing APC automation
This commit is contained in:
parent
87973dfb6e
commit
3a01543c8b
14
roles/hardware/tasks/apc.yml
Normal file
14
roles/hardware/tasks/apc.yml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- name: Install APC software
|
||||
become: yes
|
||||
package:
|
||||
name: apcupsd
|
||||
state: present
|
||||
|
||||
- name: Start APC service
|
||||
become: yes
|
||||
service:
|
||||
name: apcupsd.service
|
||||
state: started
|
||||
enabled: yes
|
@ -36,7 +36,6 @@
|
||||
- include_tasks: intel.yml
|
||||
when: "'Intel' in ansible_processor"
|
||||
|
||||
|
||||
- include_tasks: cyberpower.yml
|
||||
when: "ups == 'cyberpower'"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user