mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-11-23 15:40:28 +00:00
* Replace FreeBSD version 14.4 with 14.5 for remote test (#796) Signed-off-by: Hideki Saito <saito@fgrep.org> (cherry picked from commitd5699a3fcf) * Fix integration test for mount module for Ansible Core 2.22 or later (#794) - Fixes #793 Signed-off-by: Hideki Saito <saito@fgrep.org> (cherry picked from commit93f25f88b8) --------- Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
@@ -1165,10 +1165,16 @@
|
||||
opts: rw
|
||||
opts_no_log: true
|
||||
register: mount_info
|
||||
- name: Assert opts_no_log option true
|
||||
- name: Assert opts_no_log option true (ansible-core < 2.22)
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- mount_info.opts == 'VALUE_SPECIFIED_IN_NO_LOG_PARAMETER'
|
||||
when: ansible_version.full is ansible.builtin.version('2.22', '<')
|
||||
- name: Assert opts_no_log option true (ansible-core >= 2.22)
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- mount_info.opts == 'rw'
|
||||
when: ansible_version.full is ansible.builtin.version('2.22', '>=')
|
||||
- name: Remount the FS with opts_no_log option false
|
||||
ansible.posix.mount:
|
||||
path: /tmp/myfs
|
||||
|
||||
Reference in New Issue
Block a user