Skip to content

Commit

Permalink
fix molecule instance creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Feb 6, 2024
1 parent e7fe903 commit e7f9d08
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: CI
on:
'on':
pull_request:
push:
branches:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Install test dependencies.
run: |
pip3 install -U ansible molecule-podman yamllint ansible-lint
pip3 install -U pip ansible>=2.9.0 molecule-plugins[podman] yamllint ansible-lint
ansible-galaxy collection install containers.podman:>=1.10.1 # otherwise get https://github.com/containers/ansible-podman-collections/issues/428
- name: Display ansible version
Expand Down
10 changes: 7 additions & 3 deletions molecule/test1/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ platforms:
pre_build_image: true
groups:
- testohpc_login
command: /sbin/init
command: "{{ container_init_command }}"
tmpfs:
- /run
- /tmp
Expand All @@ -19,7 +19,7 @@ platforms:
pre_build_image: true
groups:
- testohpc_compute
command: /sbin/init
command: "{{ container_init_command }}"
tmpfs:
- /run
- /tmp
Expand All @@ -31,7 +31,7 @@ platforms:
pre_build_image: true
groups:
- testohpc_compute
command: /sbin/init
command: "{{ container_init_command }}"
tmpfs:
- /run
- /tmp
Expand All @@ -40,5 +40,9 @@ platforms:
network: net1
provisioner:
name: ansible
inventory:
group_vars:
all:
container_init_command: 'dnf -y install systemd && /sbin/init' # not in RL9 image
verifier:
name: ansible

0 comments on commit e7f9d08

Please sign in to comment.