fix: add linter
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Markus Pesch 2023-02-08 18:23:05 +01:00
parent 3282d019c7
commit 898d396d3e
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# git-role
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/git-role/status.svg)](https://drone.cryptic.systems/volker.raschek/git-role)
[![Ansible Role](https://img.shields.io/ansible/role/d/58170)](https://galaxy.ansible.com/volker_raschek/git_role)
[![Ansible Role](https://img.shields.io/ansible/role/d/58759)](https://galaxy.ansible.com/volker_raschek/git)
With following role can be git for users configured.

View File

@ -6,7 +6,7 @@
key: "{{ item.key }}"
- name: Create git config directory for {{ item.key }}
file:
ansible.builtin.file:
dest: "{{ getent_passwd[item.key][4] }}/.config/git"
owner: "{{ item.key }}"
group: "{{ getent_passwd[item.key][2] }}"
@ -14,7 +14,7 @@
mode: 0755
- name: Create global git config files
template:
ansible.builtin.template:
src: "{{ filename }}.j2"
dest: "{{ getent_passwd[item.key][4] }}/{{ filename }}"
owner: "{{ item.key }}"

View File

@ -1,10 +1,10 @@
---
- name: Include special distribution-dependent variables
- name: Include OS-specific variables
include_vars: "{{ ansible_os_family }}.yml"
- name: Install git and dependencies
package:
ansible.builtin.package:
name: "{{ item }}"
state: present
with_items: "{{ git_package_names }}"
@ -12,4 +12,4 @@
- name: Configure git
include_tasks: git_user.yml
with_dict:
- "{{ git_users }}"
- "{{ git_users }}"