style(flucky): name of tasks, use built in module
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-02-12 14:43:12 +01:00
parent 898d396d3e
commit add9a91d00
3 changed files with 5 additions and 57 deletions

View File

@ -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 }}"

View File

@ -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 }}"