ansible/roles/server-exthdd-mount/tasks/main.yml

14 lines
452 B
YAML

---
- name: Automount passport4 systemd file
copy: src=media-passport4.mount dest=/etc/systemd/system
- name: Automount passport5 systemd file
copy: src=media-passport5.mount dest=/etc/systemd/system
- name: Create udev rules
copy: src=99-automounts.rules dest=/etc/udev/rules.d
- name: Systemd reread configs
ansible.builtin.systemd:
daemon_reload: true
- name: Reload udev
ansible.builtin.command:
cmd: "udevadm control --reload"