This commit is contained in:
2024-09-08 13:12:17 +03:00
parent f6a58389d8
commit d17849602d
5 changed files with 40 additions and 1 deletions

View File

@@ -11,6 +11,7 @@
- modemmanager - modemmanager
- iptables - iptables
- dnsmasq - dnsmasq
- udiskie
## Конфигурация wifi ## Конфигурация wifi
# Имя сети # Имя сети

View File

@@ -30,4 +30,7 @@
- name: Restart systemd-networkd - name: Restart systemd-networkd
service: service:
name: systemd-networkd name: systemd-networkd
state: restarted state: restarted
- name: daemon-reload
command: systemctl daemon-reload

View File

@@ -61,9 +61,26 @@
- name: Configure dnsmasq - name: Configure dnsmasq
template: template:
src: dnsmasq.conf.j2 src: dnsmasq.conf.j2
dest: /etc/udisks2/udisks2.conf
- name: Configure udiskie
template:
src: udisks2.conf.j2
dest: /etc/dnsmasq.conf dest: /etc/dnsmasq.conf
tags: dnsmasq tags: dnsmasq
- name: Configure udiskie service
template:
src: udiskie.service.j2
dest: /etc/systemd/system/udiskie.service
notify: daemon-reload
- name: Enable udiskie
service:
name: udiskie
state: started
enabled: true
# - name: Configure NetworkManager # - name: Configure NetworkManager
# template: # template:
# src: NetworkManager.conf.j2 # src: NetworkManager.conf.j2

View File

@@ -0,0 +1,8 @@
[Unit]
Description=udiskie automount service
[Service]
ExecStart=/usr/bin/udiskie -a -N -F
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,10 @@
[udisks2]
# Comma separated list of modules to load.
# Use asterisk to load all the modules.
modules=*
# Valid options are 'ondemand' or 'onstartup'.
modules_load_preference=ondemand
[defaults]
# Valid options are 'luks1' or 'luks2'
encryption=luks2