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
|
sshd_config: /etc/ssh/sshd_config
|
||||||
crond: cron
|
crond: cron
|
||||||
crond_pattern: cron
|
crond_pattern: cron
|
||||||
|
acpi: acpid
|
||||||
|
acpi_pattern: acpid
|
||||||
#- name: General | Facts | Service | Linux
|
|
||||||
# set_fact:
|
|
||||||
# when: ansible_system == "Linux"
|
|
||||||
|
|
||||||
|
|
||||||
- name: General | Facts | Service | Linux
|
- name: General | Facts | Service | Linux
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
---
|
---
|
||||||
# Network related variables.
|
# System related variables.
|
||||||
|
|
||||||
#- name: Facts | Server | System | Not Used Yet
|
- name: Facts | Server | System | FreeBSD
|
||||||
# set_fact:
|
|
||||||
|
|
||||||
- name: Workstation | Facts | Package | FreeBSD
|
|
||||||
set_fact:
|
set_fact:
|
||||||
ansible_python_interpreter: "/usr/local/bin/python3.8"
|
ansible_python_interpreter: "/usr/local/bin/python3.8"
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
@ -144,6 +144,8 @@
|
|||||||
- name: Main | Server Setup
|
- name: Main | Server Setup
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
- include: tasks/server/software/services.yml
|
||||||
|
|
||||||
- include: tasks/server/software/certbot.yml
|
- include: tasks/server/software/certbot.yml
|
||||||
when: certbot == true
|
when: certbot == true
|
||||||
- include: tasks/server/cron/certbot.yml
|
- 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