mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-20 21:11:42 -07:00
Adjust YAML files (#10233)
Adjust YAML files.
(cherry picked from commit eaa5e07b28
)
This commit is contained in:
parent
e8ff74f077
commit
a9e892952d
244 changed files with 7272 additions and 7329 deletions
|
@ -5,37 +5,37 @@
|
|||
|
||||
- name: Create a snapshot if one does not already exist at path
|
||||
block:
|
||||
- name: Create a snapshot named 'snapshot_skip'
|
||||
community.general.btrfs_subvolume:
|
||||
automount: Yes
|
||||
filesystem_label: "{{ btrfs_subvolume_target_label }}"
|
||||
name: "/snapshot_skip"
|
||||
snapshot_source: "/"
|
||||
snapshot_conflict: "skip"
|
||||
state: "present"
|
||||
register: result
|
||||
- name: Snapshot 'snapshot_skip' created
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is changed
|
||||
- name: Create a snapshot named 'snapshot_skip'
|
||||
community.general.btrfs_subvolume:
|
||||
automount: true
|
||||
filesystem_label: "{{ btrfs_subvolume_target_label }}"
|
||||
name: "/snapshot_skip"
|
||||
snapshot_source: "/"
|
||||
snapshot_conflict: "skip"
|
||||
state: "present"
|
||||
register: result
|
||||
- name: Snapshot 'snapshot_skip' created
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is changed
|
||||
|
||||
- name: Create a snapshot named 'snapshot_skip' (idempotency)
|
||||
community.general.btrfs_subvolume:
|
||||
automount: Yes
|
||||
filesystem_label: "{{ btrfs_subvolume_target_label }}"
|
||||
name: "/snapshot_skip"
|
||||
snapshot_source: "/"
|
||||
snapshot_conflict: "skip"
|
||||
state: "present"
|
||||
register: result
|
||||
- name: Snapshot 'snapshot_skip' created (idempotency)
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is not changed
|
||||
- name: Create a snapshot named 'snapshot_skip' (idempotency)
|
||||
community.general.btrfs_subvolume:
|
||||
automount: true
|
||||
filesystem_label: "{{ btrfs_subvolume_target_label }}"
|
||||
name: "/snapshot_skip"
|
||||
snapshot_source: "/"
|
||||
snapshot_conflict: "skip"
|
||||
state: "present"
|
||||
register: result
|
||||
- name: Snapshot 'snapshot_skip' created (idempotency)
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- result is not changed
|
||||
|
||||
- name: Cleanup created snapshot
|
||||
community.general.btrfs_subvolume:
|
||||
automount: Yes
|
||||
automount: true
|
||||
filesystem_label: "{{ btrfs_subvolume_target_label }}"
|
||||
name: "/snapshot_skip"
|
||||
state: "absent"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue