From: Oleg Broytman Date: Mon, 30 Mar 2020 00:01:52 +0000 (+0300) Subject: Refactor(init-local-phd): Use module `mount` X-Git-Url: https://git.phdru.name/?p=ansible.git;a=commitdiff_plain;h=7c7382b6c6fdc4e977c5424717e3dbc16464f824 Refactor(init-local-phd): Use module `mount` --- diff --git a/playbooks/debian/init-local-phd.yml b/playbooks/debian/init-local-phd.yml index 597959f..f3f79a2 100644 --- a/playbooks/debian/init-local-phd.yml +++ b/playbooks/debian/init-local-phd.yml @@ -36,15 +36,17 @@ ] state: latest update_cache: yes - - name: Extend fstab (add cgroups) - become: true - lineinfile: - path: /etc/fstab - regexp: "^none /sys/fs/cgroup cgroup memory 0 0$" - line: "none /sys/fs/cgroup cgroup memory 0 0" - - name: Extend fstab (add webdav.yandex.ru) - become: true - lineinfile: - path: /etc/fstab - regexp: "^https://webdav.yandex.ru /mnt davfs noauto,user 0 0$" - line: "https://webdav.yandex.ru /mnt davfs noauto,user 0 0" + - name: Mount cgroups + mount: + path: /sys/fs/cgroup + src: none + opts: memory + state: mounted + fstype: cgroup + - name: Mount webdav.yandex.ru + mount: + path: /mnt + src: https://webdav.yandex.ru + opts: noauto,user + state: present + fstype: davfs