Simplify and consolidate scripts

This commit is contained in:
ducoterra
2022-02-05 22:30:44 -05:00
parent 1370897735
commit 8b3002316f
236 changed files with 444 additions and 1970 deletions

View File

@@ -0,0 +1,62 @@
---
# Sync and update Pacman
- name: Sync and update Pacman
community.general.pacman:
update_cache: yes
upgrade: yes
become: yes
tags: update
# Bluetooth
- name: Ensure bluetooth installed and configured
community.general.pacman:
name:
- bluez
- bluez-utils
state: present
become: yes
- name: Ensure bluetooth service started
ansible.builtin.systemd:
name: bluetooth
state: started
enabled: yes
become: yes
# Auto CPU Freq
- name: Ensure snap installed
community.general.pacman:
name: snapd
state: present
become: yes
- name: Ensure snapd service running
ansible.builtin.systemd:
name: snapd.socket
state: started
enabled: yes
become: yes
- name: Uninstall tlp
community.general.pacman:
name: tlp
state: absent
become: yes
- name: Install auto-cpufreq
community.general.snap:
name: auto-cpufreq
state: present
become: yes
- name: Enable auto-cpufreq
command: auto-cpufreq --install
become: yes
# UFW
- name: Ensure UFW installed
community.general.pacman:
name: ufw
state: present
become: yes
- name: Enable UFW
community.general.ufw:
state: enabled
become: yes
- name: Allow SSH
community.general.ufw:
rule: allow
name: ssh
become: yes