Skip to content

Commit

Permalink
chore: Rename role 'users' into 'accounts'
Browse files Browse the repository at this point in the history
  • Loading branch information
lafeychine committed Oct 12, 2023
1 parent 3d27fb1 commit 2bb25e1
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
gather_facts: no
become: yes
roles:
- users
- accounts
2 changes: 1 addition & 1 deletion common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
become: yes
roles:
- common
- users
- accounts
2 changes: 1 addition & 1 deletion group_vars/all/users.yml → group_vars/all/accounts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
users__accounts:
accounts__users:
cquest:
uid: 1202
admin: true
Expand Down
3 changes: 3 additions & 0 deletions roles/accounts/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
accounts__users: {}
...
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- name: Set {{ user }} account
user:
group: "{{ user }}"
home: "/home/{{ user }}"
home: "/home/{{ user }}/"
name: "{{ user }}"
uid: "{{ uid }}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
vars:
user: "{{ item.user }}"
uid: "{{ item.value.uid }}"
loop: "{{ users__accounts | dict2items(key_name = 'user') }}"
loop: "{{ accounts__users | dict2items(key_name = 'user') }}"
when: "item.user in group_names or (item.value.admin | default(false))"
...
3 changes: 0 additions & 3 deletions roles/users/defaults/main.yml

This file was deleted.

0 comments on commit 2bb25e1

Please sign in to comment.