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