Commit 9342e477 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

lint, fix whitespace

parent 70e67e14
Pipeline #46273 failed with stage
in 0 seconds
......@@ -10,12 +10,11 @@
loop: "{{ keep_files.results }}"
when: "item.files | count == 0"
- name: "shell"
shell: "ls /root/{{ item.item.mount_point }}"
loop: "{{ keep_files.results }}"
when: "item.files | count == 0"
- name: "remount"
mount:
state: "mounted"
......@@ -25,7 +24,6 @@
loop: "{{ keep_files.results }}"
when: "item.files | count == 0"
- name: "move files to mount"
shell: "rsync -a /root/{{ item.item.mount_point }}/ {{ item.item.mount_point }}"
loop: "{{ keep_files.results }}"
......
......@@ -14,5 +14,5 @@
passno: "{{ item.passno | default(omit) }}"
state: "{{ item.state | default( 'mounted' ) }}"
with_items: "{{ nfs_share_mounts }}"
loop: "{{ nfs_share_mounts }}"
loop: "{{ nfs_share_mounts }}"
become: true
......@@ -30,7 +30,7 @@
size: "100%FREE"
shrink: "no"
with_items: "{{ volumes_add }}"
- name: "Creating new filesystems on new volumes"
filesystem:
fstype: "{{ item.fs_type }}"
......@@ -52,10 +52,10 @@
state: "mounted"
opts: "{{ item.opts | default('defaults') }}"
with_items: "{{ volumes_add }}"
- name: "check if new file system has content"
find:
paths: "{{ item.mount_point }}"
find:
paths: "{{ item.mount_point }}"
recurse: yes
loop: "{{ volumes_add }}"
when: "item.keep_files | bool"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment