[Backport][Stable-2] Backport #794 #796 (#797)

* Replace FreeBSD version 14.4 with 14.5 for remote test (#796)

Signed-off-by: Hideki Saito <saito@fgrep.org>
(cherry picked from commit d5699a3fcf)

* 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 commit 93f25f88b8)

---------

Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
Hideki Saito
2026-09-15 16:24:09 +09:00
committed by GitHub
parent e03234e855
commit 7f4388b0de
4 changed files with 16 additions and 3 deletions
+2 -2
View File
@@ -275,8 +275,8 @@ stages:
test: rhel/10.2
- name: RHEL 9.8
test: rhel/9.8
- name: FreeBSD 14.4
test: freebsd/14.4
- name: FreeBSD 14.5
test: freebsd/14.5
- name: FreeBSD 15.1
test: freebsd/15.1
@@ -0,0 +1,3 @@
---
trivial:
- Fix mount opts_no_log integration test for ansible-core 2.22 (https://github.com/ansible-collections/ansible.posix/issues/793).
@@ -0,0 +1,4 @@
---
trivial:
- CI - AZP replace FreeBSD version 14.4 with 14.5 for remote tests.
...
@@ -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