Skip to content

Commit ccb286c

Browse files
authored
Merge pull request #13 from khaledk2/update_ansibel
Update ansibel
2 parents 740aaa1 + 71993ef commit ccb286c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/molecule.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111

1212
list-scenarios:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
outputs:
1515
matrix: ${{ steps.listscenarios.outputs.scenarios }}
1616
steps:
@@ -22,7 +22,7 @@ jobs:
2222
name: Test
2323
needs:
2424
- list-scenarios
25-
runs-on: ubuntu-22.04
25+
runs-on: ubuntu-24.04
2626
strategy:
2727
# Keep running so we can see if other tests pass
2828
fail-fast: false
@@ -32,11 +32,11 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: actions/setup-python@v4
3434
with:
35-
python-version: '3.9'
35+
python-version: '3.12'
3636
- name: Install Ansible & Molecule
3737
run: |
38-
pip install "ansible<8" "ansible-lint<6.13" flake8
39-
pip install "molecule<5" "ansible-compat<4"
38+
pip install ansible ansible-lint flake8
39+
pip install molecule ansible-compat
4040
pip install molecule-plugins[docker] pytest-testinfra
4141
- name: Run molecule
4242
run: molecule test -s "${{ matrix.scenario }}"
@@ -46,7 +46,7 @@ jobs:
4646
if: startsWith(github.ref, 'refs/tags')
4747
needs:
4848
- test
49-
runs-on: ubuntu-22.04
49+
runs-on: ubuntu-24.04
5050
steps:
5151
- uses: actions/checkout@v4
5252
- name: Read the role name

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ galaxy_info:
55
description: Manage NFS4 mounts
66
company: Open Microscopy Environment
77
license: BSD
8-
min_ansible_version: 2.4
8+
min_ansible_version: 2.11
99
platforms:
1010
- name: EL
1111
versions:

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
- name: Install NFS mount utility
55
become: true
66
ansible.builtin.dnf:
7-
update_cache: true
87
name: nfs-utils
98
state: present
109
when: ansible_os_family == "RedHat"
@@ -13,6 +12,7 @@
1312
become: true
1413
ansible.builtin.apt:
1514
update_cache: true
15+
cache_valid_time: 86400
1616
pkg: nfs-common
1717
state: present
1818
when: ansible_os_family == "Debian"
@@ -23,7 +23,7 @@
2323

2424
- name: Mount NFS share
2525
become: true
26-
mount:
26+
ansible.builtin.mount:
2727
fstype: nfs
2828
name: "{{ item.path }}"
2929
opts: "vers={{ nfs_version }},{{ item.opts | default(nfs_mount_opts) }}"

0 commit comments

Comments
 (0)