move ansible into ansible

This commit is contained in:
John Burwell 2025-04-26 13:02:20 -05:00
parent 4942c558b9
commit 8611242176
22 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
---
- name: Install base system packages
apt:
ansible.builtin.apt:
name:
- ax25-tools
- ax25-apps
@ -14,25 +14,25 @@
- alsa-utils
- libasound2-dev
state: present
update_cache: yes
update_cache: true
- name: Install unblock-wlan service
template:
ansible.builtin.template:
src: unblock-wlan.service.j2
dest: /etc/systemd/system/unblock-wlan.service
mode: '0644'
mode: "0644"
notify: Reload systemd
- name: Ensure /etc/wpa_supplicant/wpa_supplicant.conf exists
file:
ansible.builtin.file:
path: /etc/wpa_supplicant/wpa_supplicant.conf
state: touch
owner: root
group: root
mode: '0644'
mode: "0644"
- name: Ensure Wi-Fi country is set
blockinfile:
ansible.builtin.blockinfile:
path: /etc/wpa_supplicant/wpa_supplicant.conf
marker: "# {mark} ANSIBLE MANAGED BLOCK - Wi-Fi Country Setting"
block: |
@ -41,7 +41,7 @@
notify: Restart unblock-wlan service
- name: Unmask hostapd service
systemd:
ansible.builtin.systemd:
name: hostapd
masked: no
masked: false
notify: Reload systemd