Simplify and consolidate scripts
This commit is contained in:
62
arch/hardware_tools/tasks/main.yml
Normal file
62
arch/hardware_tools/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user