From cb1a17de44cffcd1537730962d9a169518bc86f6 Mon Sep 17 00:00:00 2001 From: invaldigplayername Date: Mon, 26 Jan 2026 20:09:35 +0100 Subject: [PATCH] cleanuo --- meta/main.yml | 2 +- tasks/main.yml | 44 ++++++++++++++++++++++---------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 9c9f40c..7498441 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,6 +1,6 @@ --- galaxy_info: - author: "maintainer" + author: invalidplayername description: "Create groups and users based on `accounts_groups` and `accounts_users` variables" license: MIT min_ansible_version: 2.9 diff --git a/tasks/main.yml b/tasks/main.yml index 9f50e0e..6fa7566 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,26 +25,26 @@ loop_control: label: "{{ item.name }}" -- name: Create missing users declared as group members (optional) - ansible.builtin.user: - name: "{{ item.1 }}" - state: present - when: create_missing_users | default(false) and item.0.state | default('present') == 'present' - with_subelements: - - "{{ accounts_groups | default([]) }}" - - members - loop_control: - label: "{{ item.0.name }}:{{ item.1 }}" +# - name: Create missing users declared as group members (optional) +# ansible.builtin.user: +# name: "{{ item.1 }}" +# state: present +# when: create_missing_users | default(false) and item.0.state | default('present') == 'present' +# with_subelements: +# - "{{ accounts_groups | default([]) }}" +# - members +# loop_control: +# label: "{{ item.0.name }}:{{ item.1 }}" -- name: Ensure declared group members exist in their groups (only for present groups) - ansible.builtin.user: - name: "{{ item.1 }}" - groups: "{{ item.0.name }}" - append: yes - state: present - when: item.0.state | default('present') == 'present' - with_subelements: - - "{{ accounts_groups | default([]) }}" - - members - loop_control: - label: "{{ item.0.name }}:{{ item.1 }}" +# - name: Ensure declared group members exist in their groups (only for present groups) +# ansible.builtin.user: +# name: "{{ item.1 }}" +# groups: "{{ item.0.name }}" +# append: yes +# state: present +# when: item.0.state | default('present') == 'present' +# with_subelements: +# - "{{ accounts_groups | default([]) }}" +# - members +# loop_control: +# label: "{{ item.0.name }}:{{ item.1 }}"