Add ACPI to Linux servers. Turnkey doesn't have it enabled by default.

This commit is contained in:
Hyperling 2022-08-29 06:50:49 -05:00
parent cfecb77605
commit 709714db04
4 changed files with 26 additions and 11 deletions

View File

@ -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:

View File

@ -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"

View File

@ -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

View 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