Fix tmp tmpfs mount to be idempotent and actually work.

This commit is contained in:
Kevin Fenzi 2016-06-27 14:20:43 +00:00
parent 5623bc1967
commit 97f401af2c

View file

@ -11,7 +11,5 @@
mount: name=/var/lib/copr-dist-git src='LABEL=cdg-log' fstype=ext4 state=mounted
when: not devel
- name: Mount tmp as tmpfs
action: lineinfile dest=/etc/fstab regexp="/tmp" line="tmpfs /tmp tmpfs defaults,size=6G 0 0" state=present
- mount: name=/tmp src=tmpfs fstype=tmpfs state=present
- name: mount tmp on tmpfs
mount: name=/tmp src=tmpfs fstype=tmpfs state=mounted opts=defaults,size=6G