feat(baseline): do not expect global become true
This commit is contained in:
parent
c793b470b0
commit
6933aad1fa
8 changed files with 56 additions and 8 deletions
|
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
- name: 'Disk Partitions | PATCH | Rename directory to directory.old | {{ baseline_second_disk_migrate_path }}'
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
cmd: 'mv {{ baseline_second_disk_migrate_path }} {{ baseline_second_disk_migrate_path }}.old'
|
||||
|
||||
- name: 'Disk Partitions | PATCH | Mount {{ baseline_second_disk_migrate_path }}'
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: "/dev/mapper/datavg-{{ baseline_second_disk_migrate_path | replace('/', '', 1) | replace('/', '_') }}"
|
||||
path: '{{ baseline_second_disk_migrate_path }}'
|
||||
|
|
@ -13,6 +15,7 @@
|
|||
# TODO: systemctl daemon-reload after modifying /etc/fstab
|
||||
|
||||
- name: 'Disk Partitions | PATCH | Set permissions | {{ baseline_second_disk_migrate_path }}'
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: '{{ baseline_second_disk_migrate_path }}'
|
||||
owner: root
|
||||
|
|
@ -21,11 +24,13 @@
|
|||
state: directory
|
||||
|
||||
- name: 'Disk Partitions | PATCH | Move content | {{ baseline_second_disk_migrate_path }}'
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: 'cp -ax * {{ baseline_second_disk_migrate_path }}/'
|
||||
chdir: '{{ baseline_second_disk_migrate_path }}.old'
|
||||
|
||||
- name: 'Disk Partitions | PATCH | Delete directory.old | {{ baseline_second_disk_migrate_path }}'
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: '{{ baseline_second_disk_migrate_path }}.old'
|
||||
state: absent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue