Skip to content

Commit e7f9d08

Browse files
committed
fix molecule instance creation
1 parent e7fe903 commit e7f9d08

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: CI
3-
on:
3+
'on':
44
pull_request:
55
push:
66
branches:
@@ -56,7 +56,7 @@ jobs:
5656

5757
- name: Install test dependencies.
5858
run: |
59-
pip3 install -U ansible molecule-podman yamllint ansible-lint
59+
pip3 install -U pip ansible>=2.9.0 molecule-plugins[podman] yamllint ansible-lint
6060
ansible-galaxy collection install containers.podman:>=1.10.1 # otherwise get https://github.com/containers/ansible-podman-collections/issues/428
6161
6262
- name: Display ansible version

molecule/test1/molecule.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ platforms:
77
pre_build_image: true
88
groups:
99
- testohpc_login
10-
command: /sbin/init
10+
command: "{{ container_init_command }}"
1111
tmpfs:
1212
- /run
1313
- /tmp
@@ -19,7 +19,7 @@ platforms:
1919
pre_build_image: true
2020
groups:
2121
- testohpc_compute
22-
command: /sbin/init
22+
command: "{{ container_init_command }}"
2323
tmpfs:
2424
- /run
2525
- /tmp
@@ -31,7 +31,7 @@ platforms:
3131
pre_build_image: true
3232
groups:
3333
- testohpc_compute
34-
command: /sbin/init
34+
command: "{{ container_init_command }}"
3535
tmpfs:
3636
- /run
3737
- /tmp
@@ -40,5 +40,9 @@ platforms:
4040
network: net1
4141
provisioner:
4242
name: ansible
43+
inventory:
44+
group_vars:
45+
all:
46+
container_init_command: 'dnf -y install systemd && /sbin/init' # not in RL9 image
4347
verifier:
4448
name: ansible

0 commit comments

Comments
 (0)