1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

drop udev-reload service

This commit is contained in:
Jerry Vonau 2020-10-30 04:06:30 -05:00
parent 05b61e8672
commit c26dcb9057
4 changed files with 30 additions and 51 deletions

View file

@ -1,3 +1,33 @@
- name: Does systemd-udevd.service exist
stat:
path: "{{ systemd_location }}/systemd-udevd.service"
register: udev_unit
- name: Copy udevd service to /etc/systemd/system to modify
copy:
src: "{{ systemd_location }}/systemd-udevd.service"
dest: /etc/systemd/system/systemd-udevd.service
owner: root
group: root
mode: 0644
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
- name: Change MountFlags from slave to shared
lineinfile:
backup: no
dest: /etc/systemd/system/systemd-udevd.service
regexp: '^MountFlags'
line: 'MountFlags=shared'
state: present
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
- name: Ask systemd to reread unit files (daemon-reload) and restart so systemd recognizes the changes
systemd:
daemon_reload: yes
name: systemd-udevd
state: restarted
when: udev_unit.stat.exists is defined and udev_unit.stat.exists
#http://raspbian.raspberrypi.org/raspbian/pool/main/u/usbmount/usbmount_0.0.22_all.deb
- name: Install {{ iiab_download_url }}/usbmount_0.0.22_all.deb, missing from Debian
apt: