Add some output to the `find' command
This, alongside the "df -h" output, may provide some useful information about the /opt content (not as precise as a `du -shxc /opt', but at least it's already something). It can then be compared with the existing `df -h' information located in the zuul-info/ directory. The goal here is to understand the actual impact of this task. Change-Id: I201eba6ec6db9f0caaaabb0a3d15b0894125c7d6
This commit is contained in:
parent
6d85fd8399
commit
036cf2733c
@ -107,13 +107,19 @@
|
|||||||
# [1] https://github.com/ansible/ansible/pull/27174
|
# [1] https://github.com/ansible/ansible/pull/27174
|
||||||
- name: Copy old /opt
|
- name: Copy old /opt
|
||||||
become: yes
|
become: yes
|
||||||
|
register: moving_opt
|
||||||
shell: |
|
shell: |
|
||||||
mount {{ opt_partition }} /mnt
|
mount {{ opt_partition }} /mnt
|
||||||
find /opt/ -mindepth 1 -maxdepth 1 -exec mv {} /mnt/ \;
|
find /opt/ -mindepth 1 -maxdepth 1 -print -exec mv {} /mnt/ \;
|
||||||
umount /mnt
|
umount /mnt
|
||||||
|
df -h
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
- name: Output data from old /opt
|
||||||
|
debug:
|
||||||
|
var: moving_opt
|
||||||
|
|
||||||
# This overmounts any existing /opt
|
# This overmounts any existing /opt
|
||||||
- name: Add opt to fstab and mount
|
- name: Add opt to fstab and mount
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user