From 7c7382b6c6fdc4e977c5424717e3dbc16464f824 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 30 Mar 2020 03:01:52 +0300 Subject: [PATCH] Refactor(init-local-phd): Use module `mount` --- playbooks/debian/init-local-phd.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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 -- 2.39.5