File tree Expand file tree Collapse file tree 9 files changed +56
-26
lines changed Expand file tree Collapse file tree 9 files changed +56
-26
lines changed Original file line number Diff line number Diff line change 20
20
- name : Set up Python 3
21
21
uses : actions/setup-python@v5
22
22
with :
23
- python-version : ' 3.x '
23
+ python-version : ' 3.12 '
24
24
25
25
- name : Install test dependencies
26
26
run : pip install ansible-lint[community,yamllint]
@@ -43,16 +43,15 @@ jobs:
43
43
matrix :
44
44
include :
45
45
- distro : ubuntu2004
46
- ansible-version : ' >=2.11.5'
47
46
scenario : ' default'
48
47
- distro : ubuntu2204
49
- ansible-version : ' >=2.11.5'
50
48
scenario : ' default'
51
49
- distro : ubuntu2204
52
- ansible-version : ' >=2.11.5'
53
50
scenario : ' jupyter-system'
51
+ platform : instance-jupyter-system
54
52
- distro : rockylinux8
55
- ansible-version : ' >=2.11.5'
53
+ scenario : ' default'
54
+ - distro : rockylinux9
56
55
scenario : ' default'
57
56
58
57
steps :
@@ -64,17 +63,18 @@ jobs:
64
63
- name : Set up Python 3
65
64
uses : actions/setup-python@v5
66
65
with :
67
- python-version : ' 3.x '
66
+ python-version : ' 3.12 '
68
67
69
68
- name : Install test dependencies
70
- run : pip install 'ansible${{ matrix.ansible-version }}' molecule molecule-plugins[docker] docker
69
+ run : pip install -r requirements.txt
71
70
72
71
- name : Run Molecule tests
73
72
run : |
74
- molecule test -s "${{ matrix.scenario }}"
73
+ molecule test -s "${{ matrix.scenario }}" --platform-name ${MOLECULE_PLATFORM:-instance}
75
74
env :
76
75
ANSIBLE_FORCE_COLOR : ' 1'
77
76
ANSIBLE_VERBOSITY : ' 2'
78
77
MOLECULE_DEBUG : ' 1'
79
78
MOLECULE_DISTRO : " ${{ matrix.distro }}"
79
+ MOLECULE_PLATFORM : " ${{ matrix.platform }}"
80
80
PY_COLORS : ' 1'
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Converge
3
3
hosts : all
4
- become : true
5
4
pre_tasks :
6
5
- name : Include vars
7
6
include_vars : " {{ playbook_dir }}/../../tests/vars/main.yml"
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Prepare
3
3
hosts : all
4
- become : true
5
4
tasks : []
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Verify
3
3
hosts : all
4
- become : true
5
4
pre_tasks :
6
5
- name : Include vars
7
6
ansible.builtin.include_vars : " {{ playbook_dir }}/../../tests/vars/main.yml"
Original file line number Diff line number Diff line change 1
- ansible
2
- ansible-lint
3
- boto3
4
- docker
5
- molecule
6
- molecule-docker
7
- molecule-ec2
8
- yamllint
1
+ ansible == 9.3.0
2
+ ansible-compat == 4.1.11
3
+ ansible-core == 2.16.4
4
+ attrs == 23.2.0
5
+ bracex == 2.4
6
+ certifi == 2024.2.2
7
+ cffi == 1.16.0
8
+ charset-normalizer == 3.3.2
9
+ click == 8.1.7
10
+ click-help-colors == 0.9.4
11
+ cryptography == 42.0.5
12
+ distro == 1.9.0
13
+ docker == 7.0.0
14
+ enrich == 1.2.7
15
+ idna == 3.6
16
+ Jinja2 == 3.1.3
17
+ jsonschema == 4.21.1
18
+ jsonschema-specifications == 2023.12.1
19
+ markdown-it-py == 3.0.0
20
+ MarkupSafe == 2.1.5
21
+ mdurl == 0.1.2
22
+ molecule == 24.2.0
23
+ molecule-plugins == 23.5.3
24
+ packaging == 23.2
25
+ pluggy == 1.4.0
26
+ pycparser == 2.21
27
+ Pygments == 2.17.2
28
+ PyYAML == 6.0.1
29
+ referencing == 0.33.0
30
+ requests == 2.31.0
31
+ resolvelib == 1.0.1
32
+ rich == 13.7.1
33
+ rpds-py == 0.18.0
34
+ selinux == 0.3.0
35
+ subprocess-tee == 0.4.1
36
+ urllib3 == 2.2.1
37
+ wcmatch == 8.5.1
Original file line number Diff line number Diff line change 6
6
- " _{{ ansible_distribution_release }}.yml"
7
7
- " _{{ (ansible_distribution + '-' + ansible_distribution_major_version) | lower }}.yml"
8
8
- " _{{ ansible_distribution | lower }}.yml"
9
+ - " _{{ (ansible_os_family + '-' + ansible_distribution_major_version) | lower }}.yml"
9
10
- _default.yml
10
11
tags :
11
12
- configuration
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install Python | Install dependecies
3
- ansible.builtin.yum :
3
+ ansible.builtin.dnf :
4
4
name : " {{ system_dependecies }}"
5
+ state : present
6
+ when : system_dependecies is defined
7
+
5
8
6
9
- name : Install Python | Download rpm package
7
10
ansible.builtin.get_url :
14
17
- python-install-setup-versions
15
18
16
19
- name : Install Python | Install rpm package
17
- ansible.builtin.yum :
20
+ ansible.builtin.dnf :
18
21
name : " {{ downloads_path }}/python-{{ item }}-1-1.x86_64.rpm"
19
22
disable_gpg_check : true
20
23
state : present
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # vars file
2
+ ---
3
+ system_dependecies :
4
+ - libev-devel
5
+ python_download_url : " https://cdn.rstudio.com/python/rhel-9/pkgs"
You can’t perform that action at this time.
0 commit comments