From 97d11bcb872c116cd7395fb4fc34e178de85f98b Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Fri, 6 Oct 2023 07:10:53 +1300 Subject: [PATCH] BUGFIX: Ignore when running in container --- tasks/RedHat.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index da01757..5a587e8 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -63,7 +63,7 @@ - name: Ensure Hostname is set hostname: name: "{{ inventory_hostname }}.{{ domain }}" - when: ansible_virtualization_type != "docker" + when: ansible_virtualization_type != "docker" and ansible_virtualization_type != "container" - name: Change root password user: