feat(role): add ansible-lint, fix ansible-lint issues
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
---
|
||||
- include_tasks: group.yml
|
||||
- name: Create groups
|
||||
ansible.builtin.include_tasks: group.yml
|
||||
with_items: "{{ users_groups.keys() }}"
|
||||
loop_control:
|
||||
loop_var: group
|
||||
|
||||
- include_tasks: user.yml
|
||||
- name: Create users
|
||||
ansible.builtin.include_tasks: user.yml
|
||||
when: ansible_default_ipv4.address in users[username]['passwords'] or users[username]['passwords'].get('default')
|
||||
with_items: "{{ users.keys() }}"
|
||||
loop_control:
|
||||
|
||||
Reference in New Issue
Block a user