From 0efb415ec6a44501a7b26030a9b0a4a0a1a09361 Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Wed, 12 Mar 2025 16:08:59 +0100 Subject: [PATCH] CI: molecule fixes - use become: true when running bootstrap-os in molecule - match host name in bastion-ssh-config to not confuse the provisionner --- roles/bastion-ssh-config/molecule/default/molecule.yml | 2 +- roles/bootstrap-os/molecule/default/converge.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/bastion-ssh-config/molecule/default/molecule.yml b/roles/bastion-ssh-config/molecule/default/molecule.yml index 68626edce..4c8485313 100644 --- a/roles/bastion-ssh-config/molecule/default/molecule.yml +++ b/roles/bastion-ssh-config/molecule/default/molecule.yml @@ -3,7 +3,7 @@ role_name_check: 1 dependency: name: galaxy platforms: - - name: ubuntu20 + - name: bastion-01 cloud_image: ubuntu-2004 vm_cpu_cores: 1 vm_memory: 512 diff --git a/roles/bootstrap-os/molecule/default/converge.yml b/roles/bootstrap-os/molecule/default/converge.yml index 89a832559..0463f64db 100644 --- a/roles/bootstrap-os/molecule/default/converge.yml +++ b/roles/bootstrap-os/molecule/default/converge.yml @@ -2,5 +2,6 @@ - name: Converge hosts: all gather_facts: false + become: true roles: - role: bootstrap-os