summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-12 00:29:23 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-12 01:03:42 +0100
commiteffdee4dd7680eda8230fb7b4996180cfbb8ce05 (patch)
treef655e66a44180c2caf0672374b73913fa624ef82
parenta1ca4a2d859cde324f6bf52385b7b727c151a68e (diff)
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
-rw-r--r--molecule/archlinux/converge.yml1
-rw-r--r--molecule/debian/converge.yml1
-rw-r--r--molecule/raspberrypi/converge.yml1
-rw-r--r--molecule/ubuntu/converge.yml1
4 files changed, 4 insertions, 0 deletions
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"