From 568efe9d89851c1d4251dba33d007fcfc748581b Mon Sep 17 00:00:00 2001 From: iRaven4522 Date: Sun, 30 Nov 2025 17:50:48 -0600 Subject: [PATCH] fix getent_group not working --- linux/compliance_Alpine.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/linux/compliance_Alpine.yaml b/linux/compliance_Alpine.yaml index e8553b7..79f364c 100644 --- a/linux/compliance_Alpine.yaml +++ b/linux/compliance_Alpine.yaml @@ -1,10 +1,10 @@ --- ## Checks/deploys a Linux system to be managed with Ansible. -- name: Gather all system groups - ansible.builtin.getent: - database: group - split: ':' +# - name: Gather all system groups +# ansible.builtin.getent: +# database: group +# split: ':' # Add doas package - name: Install doas (for Alpine systems). @@ -23,7 +23,7 @@ name: ansible groups: wheel append: yes - when: "'wheel' in ansible_facts.getent_group" + # when: "'wheel' in ansible_facts.getent_group" # Ansible user SSH pub key # This is a really stupid way to do it, but alas. @@ -41,7 +41,6 @@ owner: ansible group: ansible -# Add required packages because Debian is lame - name: Install standard packages if not already installed. # Looking at you LXCs. >.> ansible.builtin.package: @@ -74,7 +73,8 @@ name: nhadmin groups: wheel append: yes - when: "'wheel' in ansible_facts.getent_group" + # when: "'wheel' in ansible_facts.getent_group" + # Sysadmin user SSH pub key # This is a really stupid way to do it, but alas. # This uses an environment variable named nhadmin_key in Semaphore which has the ssh-rsa pubkey.