Bring in missing templates/files locally
This commit is contained in:
parent
65b712b4ef
commit
0246e9a517
5 changed files with 23 additions and 4 deletions
|
|
@ -4,8 +4,8 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: Copy systemd services
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vmdb2_config_base_dir }}/{{ item }}"
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/systemd/system/{{ item }}"
|
||||
mode: '0644'
|
||||
loop:
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: Copy wpa_supplicant config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ vmdb2_config_base_dir }}/wpa_supplicant.conf"
|
||||
ansible.builtin.template:
|
||||
src: "wpa_supplicant.conf"
|
||||
dest: /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
force: true
|
||||
mode: '0644'
|
||||
|
|
|
|||
8
ansible/templates/serve-usb@.service
Normal file
8
ansible/templates/serve-usb@.service
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Serve USB content
|
||||
BindTo=dev-%i.device
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/usr/bin/on-usb-drive-mounted.sh /dev/%i'
|
||||
ExecStop=/bin/sh -c 'rm /media/usb-butter/'
|
||||
RemainAfterExit=yes
|
||||
8
ansible/templates/udisks2-mount@.service
Normal file
8
ansible/templates/udisks2-mount@.service
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Mount service
|
||||
BindTo=dev-%i.device
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/usr/bin/udisksctl mount -b /dev/%i'
|
||||
ExecStop=/bin/sh -c '/usr/bin/udisksctl unmount -b /dev/%i'
|
||||
RemainAfterExit=yes
|
||||
3
ansible/templates/wpa_supplicant.conf
Normal file
3
ansible/templates/wpa_supplicant.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
country=US
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
ap_scan=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue