From effdee4dd7680eda8230fb7b4996180cfbb8ce05 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 12 Dec 2025 00:29:23 +0100 Subject: Fix testing wrong chroot detection for configure playbook Theory is that when running a normal user on a docker container that is running root user, something triggers that gather_facts thinks that ansible is running in a chroot (while in fact it's just running in a container mimicking a real system that has multiple users) This is a side effect of fixing the issue that caused the splitting of the bootstrap/configure testing. While some roles can't run root and needs to run some user and not root, setting that in the test isn't possible (AFAIK) and therefore we just override the variable --- molecule/archlinux/converge.yml | 1 + molecule/debian/converge.yml | 1 + molecule/raspberrypi/converge.yml | 1 + molecule/ubuntu/converge.yml | 1 + 4 files changed, 4 insertions(+) (limited to 'molecule') diff --git a/molecule/archlinux/converge.yml b/molecule/archlinux/converge.yml index 1a29f5a7..dde3887e 100644 --- a/molecule/archlinux/converge.yml +++ b/molecule/archlinux/converge.yml @@ -32,6 +32,7 @@ PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" vars: ansible_become_method: sudo + ansible_is_chroot: false locales: - "en_US.UTF-8 UTF-8" timezone: "GMT" diff --git a/molecule/debian/converge.yml b/molecule/debian/converge.yml index 86e9e059..62277fa6 100644 --- a/molecule/debian/converge.yml +++ b/molecule/debian/converge.yml @@ -32,6 +32,7 @@ PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" vars: ansible_become_method: sudo + ansible_is_chroot: false locales: - "en_US.UTF-8 UTF-8" timezone: "GMT" diff --git a/molecule/raspberrypi/converge.yml b/molecule/raspberrypi/converge.yml index 8fa66dba..e634cddf 100644 --- a/molecule/raspberrypi/converge.yml +++ b/molecule/raspberrypi/converge.yml @@ -32,6 +32,7 @@ PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" vars: ansible_become_method: sudo + ansible_is_chroot: false locales: - "en_US.UTF-8 UTF-8" timezone: "GMT" diff --git a/molecule/ubuntu/converge.yml b/molecule/ubuntu/converge.yml index 92e3c12a..5e168399 100644 --- a/molecule/ubuntu/converge.yml +++ b/molecule/ubuntu/converge.yml @@ -32,6 +32,7 @@ PATH: "{{ ansible_env.HOME }}/.local/bin:{{ ansible_env.PATH }}" vars: ansible_become_method: sudo + ansible_is_chroot: false locales: - "en_US.UTF-8 UTF-8" timezone: "GMT" -- cgit v1.2.3