feat(system): Add tags to system role tasks
This commit is contained in:
parent
a5a6e297ff
commit
e0efc51c34
1 changed files with 7 additions and 0 deletions
|
|
@ -40,6 +40,8 @@
|
|||
community.general.timezone:
|
||||
name: "{{ system_timezone }}"
|
||||
when: "system_timezone"
|
||||
tags:
|
||||
- timezone
|
||||
become: true
|
||||
|
||||
- name: Create necessary groups
|
||||
|
|
@ -48,6 +50,8 @@
|
|||
state: present
|
||||
loop: "{{ system_users | map(attribute='groups') | flatten | unique }}"
|
||||
when: "system_users"
|
||||
tags:
|
||||
- groups
|
||||
become: true
|
||||
|
||||
- name: Set up system users
|
||||
|
|
@ -59,6 +63,9 @@
|
|||
shell: "{{ item.shell | default('/bin/bash') }}"
|
||||
loop: "{{ system_users }}"
|
||||
when: "system_users"
|
||||
tags:
|
||||
- users
|
||||
- groups
|
||||
become: true
|
||||
|
||||
- name: Add authorized SSH keys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue