fix getent_group not working
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user