Add ACPI to Linux servers. Turnkey doesn't have it enabled by default.
This commit is contained in:
parent
cfecb77605
commit
709714db04
@ -12,12 +12,8 @@
|
||||
sshd_config: /etc/ssh/sshd_config
|
||||
crond: cron
|
||||
crond_pattern: cron
|
||||
|
||||
|
||||
#- name: General | Facts | Service | Linux
|
||||
# set_fact:
|
||||
# when: ansible_system == "Linux"
|
||||
|
||||
acpi: acpid
|
||||
acpi_pattern: acpid
|
||||
|
||||
- name: General | Facts | Service | Linux
|
||||
set_fact:
|
||||
|
@ -1,10 +1,7 @@
|
||||
---
|
||||
# Network related variables.
|
||||
# System related variables.
|
||||
|
||||
#- name: Facts | Server | System | Not Used Yet
|
||||
# set_fact:
|
||||
|
||||
- name: Workstation | Facts | Package | FreeBSD
|
||||
- name: Facts | Server | System | FreeBSD
|
||||
set_fact:
|
||||
ansible_python_interpreter: "/usr/local/bin/python3.8"
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
@ -144,6 +144,8 @@
|
||||
- name: Main | Server Setup
|
||||
block:
|
||||
|
||||
- include: tasks/server/software/services.yml
|
||||
|
||||
- include: tasks/server/software/certbot.yml
|
||||
when: certbot == true
|
||||
- include: tasks/server/cron/certbot.yml
|
||||
|
20
tasks/server/software/services.yml
Normal file
20
tasks/server/software/services.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
# Enable and disable services.
|
||||
|
||||
## ACPID ##
|
||||
|
||||
- name: Server | Software | Services | ACPID | Install
|
||||
package:
|
||||
name: "{{ acpi }}"
|
||||
state: present
|
||||
when: ansible_system == "Linux"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Server | Software | Services | ACPID | Enable
|
||||
service:
|
||||
name: "{{ acpi }}"
|
||||
pattern: "{{ acpi_pattern }}"
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_system == "Linux"
|
||||
ignore_errors: yes
|
Loading…
x
Reference in New Issue
Block a user