mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Compare commits
6 commits
8b7f65443d
...
a0dc071f08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0dc071f08 | ||
|
|
cdb442ea48 | ||
|
|
f977bffff2 | ||
|
|
dabaca4b70 | ||
|
|
26b9b1438d | ||
|
|
a48d9f1023 |
4 changed files with 13 additions and 5 deletions
|
|
@ -195,6 +195,8 @@ stages:
|
||||||
parameters:
|
parameters:
|
||||||
testFormat: devel/{0}/1
|
testFormat: devel/{0}/1
|
||||||
targets:
|
targets:
|
||||||
|
- name: RHEL 10.0
|
||||||
|
test: rhel/10.0
|
||||||
- name: RHEL 9.5
|
- name: RHEL 9.5
|
||||||
test: rhel/9.5
|
test: rhel/9.5
|
||||||
- name: FreeBSD 14.2
|
- name: FreeBSD 14.2
|
||||||
|
|
@ -237,8 +239,6 @@ stages:
|
||||||
test: rhel/8.8
|
test: rhel/8.8
|
||||||
- name: RHEL 9.2
|
- name: RHEL 9.2
|
||||||
test: rhel/9.2
|
test: rhel/9.2
|
||||||
- name: FreeBSD 13.2
|
|
||||||
test: freebsd/13.2
|
|
||||||
|
|
||||||
- stage: Remote_2_15
|
- stage: Remote_2_15
|
||||||
displayName: Remote 2.15
|
displayName: Remote 2.15
|
||||||
|
|
@ -254,8 +254,6 @@ stages:
|
||||||
test: rhel/8.7
|
test: rhel/8.7
|
||||||
- name: RHEL 9.1
|
- name: RHEL 9.1
|
||||||
test: rhel/9.1
|
test: rhel/9.1
|
||||||
- name: FreeBSD 13.2
|
|
||||||
test: freebsd/13.2
|
|
||||||
|
|
||||||
## Finally
|
## Finally
|
||||||
|
|
||||||
|
|
|
||||||
2
changelogs/fragments/642_ci_add_rhel10.yml
Normal file
2
changelogs/fragments/642_ci_add_rhel10.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
trivial:
|
||||||
|
- Add Red Hat Enterprise Linux 10.0 to the CI matrix (https://github.com/ansible-collections/ansible.posix/issues/642).
|
||||||
|
|
@ -222,6 +222,7 @@ EXAMPLES = r'''
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
import re
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
from ansible_collections.ansible.posix.plugins.module_utils.mount import ismount
|
from ansible_collections.ansible.posix.plugins.module_utils.mount import ismount
|
||||||
|
|
@ -731,7 +732,8 @@ def _is_same_mount_src(module, src, mountpoint, linux_mounts):
|
||||||
not ismount(mountpoint) and
|
not ismount(mountpoint) and
|
||||||
not is_bind_mounted(module, linux_mounts, mountpoint)):
|
not is_bind_mounted(module, linux_mounts, mountpoint)):
|
||||||
return False
|
return False
|
||||||
|
# sanitize src
|
||||||
|
src = re.sub(r'(//[^:]+):([^@]+)@', r'\1@', src)
|
||||||
# Treat Linux bind mounts
|
# Treat Linux bind mounts
|
||||||
if platform.system() == 'Linux' and linux_mounts is not None:
|
if platform.system() == 'Linux' and linux_mounts is not None:
|
||||||
# For Linux bind mounts only: the mount command does not return
|
# For Linux bind mounts only: the mount command does not return
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,12 @@
|
||||||
path: "{{ test_dir }}"
|
path: "{{ test_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Install acl package
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: acl
|
||||||
|
state: present
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
- name: Grant ansible user read access to a file
|
- name: Grant ansible user read access to a file
|
||||||
ansible.posix.acl:
|
ansible.posix.acl:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue