You've already forked ansible-role-git
style(flucky): name of tasks, use built in module
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Get entity for user {{ item.key }}
|
||||
getent:
|
||||
- name: "Determine entries via NSS for unix user: {{ item.key }}"
|
||||
ansible.builtin.getent:
|
||||
database: passwd
|
||||
key: "{{ item.key }}"
|
||||
|
||||
- name: Create git config directory for {{ item.key }}
|
||||
- name: "Create git config directory for unix user: {{ item.key }}"
|
||||
ansible.builtin.file:
|
||||
dest: "{{ getent_passwd[item.key][4] }}/.config/git"
|
||||
owner: "{{ item.key }}"
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Include OS-specific variables
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install git and dependencies
|
||||
ansible.builtin.package:
|
||||
@ -10,6 +10,6 @@
|
||||
with_items: "{{ git_package_names }}"
|
||||
|
||||
- name: Configure git
|
||||
include_tasks: git_user.yml
|
||||
ansible.builtin.include_tasks: git_user.yml
|
||||
with_dict:
|
||||
- "{{ git_users }}"
|
||||
|
Reference in New Issue
Block a user