Compare commits
No commits in common. "prod" and "v1.0" have entirely different histories.
3 changed files with 10 additions and 38 deletions
|
@ -1,16 +0,0 @@
|
||||||
# tasks file for mounting binds
|
|
||||||
- name: create bind directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "/var/lib/{{ item.mount }}"
|
|
||||||
state: directory
|
|
||||||
mode: '0755'
|
|
||||||
loop: "{{ bind_mounts }}"
|
|
||||||
|
|
||||||
- name: mount bind
|
|
||||||
ansible.builtin.mount:
|
|
||||||
path: "{{ item.mount }}"
|
|
||||||
src: "{{ item.src }}"
|
|
||||||
fstype: none
|
|
||||||
opts: bind
|
|
||||||
state: mounted
|
|
||||||
loop: "{{ bind_mounts }}"
|
|
|
@ -1,10 +1,4 @@
|
||||||
# tasks file for mounting ext4
|
- name: test
|
||||||
- name: mount ext4
|
ansible.builtin.file:
|
||||||
ansible.builtin.mount:
|
path: /tmp/ext4-{{item.name}}
|
||||||
path: "{{ item.mount }}"
|
state: directory
|
||||||
src: "{{ item.device }}"
|
|
||||||
fstype: ext4
|
|
||||||
opts: noatime
|
|
||||||
state: mounted
|
|
||||||
loop: "{{ ext4_mounts }}"
|
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
- name: Set up mounts if variable is defined
|
- name: Set up mounts if variable is defined
|
||||||
block:
|
block:
|
||||||
- include_tasks: ext4.yml
|
# - include_tasks: ext4.yml
|
||||||
when: mounts.ext4 is defined
|
# when: mounts.ext4
|
||||||
vars:
|
# with_items:
|
||||||
ext4_mounts: "{{ mounts.ext4 }}"
|
# - mounts.ext4
|
||||||
|
|
||||||
- include_tasks: nfs.yml
|
- include_tasks: nfs.yml
|
||||||
when: mounts.nfs is defined
|
when: mounts.nfs is defined
|
||||||
|
@ -14,13 +14,7 @@
|
||||||
nfs_mounts: "{{ mounts.nfs }}"
|
nfs_mounts: "{{ mounts.nfs }}"
|
||||||
|
|
||||||
# - include_tasks: sshfs.yml
|
# - include_tasks: sshfs.yml
|
||||||
# when: mounts.sshfs is defined
|
# loop: "{{ mounts }}"
|
||||||
# vars:
|
# when: item == "sshfs"
|
||||||
# sshfs_mounts: "{{ mounts.sshfs }}"
|
|
||||||
|
|
||||||
- include_tasks: bind.yml
|
|
||||||
when: mounts.bind is defined
|
|
||||||
vars:
|
|
||||||
bind_mounts: "{{ mounts.bind }}"
|
|
||||||
|
|
||||||
when: mounts is defined
|
when: mounts is defined
|
||||||
|
|
Loading…
Add table
Reference in a new issue