Skip to content

Commit

Permalink
playbooks/usermgmt: Add tags
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
  • Loading branch information
mbargull committed Jul 17, 2024
1 parent dba5465 commit 8b931f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/playbooks/usermgmt/create-users-groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ansible.builtin.include_tasks: tasks/load-group.yml
loop: "{{ lookup('fileglob', groupglob, wantlist=True) }}"
when: groupglob is defined
tags: usermgmt-load

# FIXME: We run this locally via ipa_host_override for now. Needs cleanup.
- hosts: "{{ ipa_host_override | default('managed_cluster') }}"
Expand All @@ -31,27 +32,31 @@
- name: Create groups
ansible.builtin.include_tasks: tasks/add-group-ipa.yml
loop: "{{ hostvars['localhost']['groupdata'] | default({}) | dict2items }}"
tags: usermgmt-ipa

- hosts: bastion_hosts
gather_facts: false
tasks:
- name: Create users
ansible.builtin.include_tasks: tasks/add-user-bastion.yml
loop: "{{ hostvars['localhost']['userdata'] | default({}) | dict2items }}"
tags: usermgmt-bastion

- hosts: nfs_server_homedirs
gather_facts: false
tasks:
- name: Create users
ansible.builtin.include_tasks: tasks/add-user-nfs.yml
loop: "{{ hostvars['localhost']['userdata'] | default({}) | dict2items }}"
tags: usermgmt-nfs

- hosts: nfs_server_groupdirs
gather_facts: false
tasks:
- name: Create groups
ansible.builtin.include_tasks: tasks/add-group-nfs.yml
loop: "{{ hostvars['localhost']['groupdata'] | default({}) | dict2items }}"
tags: usermgmt-nfs

- hosts: slurm_user_facing
run_once: true
Expand All @@ -62,3 +67,4 @@
- name: Create users
ansible.builtin.include_tasks: tasks/add-user-slurm.yml
loop: "{{ hostvars['localhost']['userdata'] | default({}) | dict2items }}"
tags: usermgmt-slurm

0 comments on commit 8b931f1

Please sign in to comment.