It doesn't work. I suspect it changes ownership of the `src` file instead of the destination. And we don't need that.
32 lines
803 B
YAML
32 lines
803 B
YAML
- name: prepare mount point
|
|
file: state=directory path=/var/lib/dist-git
|
|
|
|
- name: mount up disk of copr repo
|
|
mount: name=/var/lib/dist-git src='LABEL=copr-dist-git' fstype=ext4 state=mounted
|
|
|
|
- name: prepare mount point
|
|
file: state=directory path=/var/lib/copr-dist-git
|
|
|
|
- name: create symlink for per-task-logs
|
|
file:
|
|
state: link
|
|
src: /var/lib/dist-git/per-task-logs
|
|
path: /var/lib/copr-dist-git/per-task-logs
|
|
when: devel
|
|
|
|
- name: Write swap entry in fstab
|
|
mount:
|
|
path: none
|
|
src: UUID=0ffcf9f2-8a79-4973-bee4-2d16c410fd77
|
|
fstype: swap
|
|
opts: sw
|
|
passno: 0
|
|
dump: 0
|
|
state: present
|
|
when: not devel
|
|
tags:
|
|
- swap.fstab
|
|
- swap
|
|
|
|
- name: mount tmp on tmpfs
|
|
mount: name=/tmp src=tmpfs fstype=tmpfs state=mounted opts=defaults,size=39G,nr_inodes=2g
|