Skip to content

Commit 118b21d

Browse files
committed
gitlab: Update molecule tests to catch missing become directives
Signed-off-by: Norman Ziegner <[email protected]>
1 parent 0fdb8a3 commit 118b21d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

molecule/gitlab/molecule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ platforms:
1313
image: "${MOLECULE_IMAGE:-ghcr.io/hifis-net/ubuntu-systemd:24.04}"
1414
pre_build_image: true
1515
privileged: true
16-
systemd: "always"
16+
systemd: true
1717
tty: true
1818
override_command: false
1919
provisioner:
@@ -29,6 +29,7 @@ provisioner:
2929
inventory:
3030
host_vars:
3131
instancegitlab:
32+
ansible_user: "ansible"
3233
gitlab_edition: "gitlab-ce"
3334
gitlab_ip_range: "0.0.0.0/0"
3435
gitlab_additional_configurations:

molecule/gitlab/prepare.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- "ansible_facts.distribution_major_version | int >= 7"
1414
block:
1515
- name: "Install missing dependencies"
16+
become: true
1617
ansible.builtin.dnf:
1718
name:
1819
- "sudo"

molecule/gitlab/verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
---
77
- name: "Verify"
88
hosts: "all"
9+
become: true
910
tasks:
1011
- name: "Gather package facts"
1112
ansible.builtin.package_facts:

0 commit comments

Comments
 (0)