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 # git-role
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/git-role/status.svg)](https://drone.cryptic.systems/volker.raschek/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. With following role can be git for users configured.

View File

@ -6,7 +6,7 @@
key: "{{ item.key }}" key: "{{ item.key }}"
- name: Create git config directory for {{ item.key }} - name: Create git config directory for {{ item.key }}
file: ansible.builtin.file:
dest: "{{ getent_passwd[item.key][4] }}/.config/git" dest: "{{ getent_passwd[item.key][4] }}/.config/git"
owner: "{{ item.key }}" owner: "{{ item.key }}"
group: "{{ getent_passwd[item.key][2] }}" group: "{{ getent_passwd[item.key][2] }}"
@ -14,7 +14,7 @@
mode: 0755 mode: 0755
- name: Create global git config files - name: Create global git config files
template: ansible.builtin.template:
src: "{{ filename }}.j2" src: "{{ filename }}.j2"
dest: "{{ getent_passwd[item.key][4] }}/{{ filename }}" dest: "{{ getent_passwd[item.key][4] }}/{{ filename }}"
owner: "{{ item.key }}" 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" include_vars: "{{ ansible_os_family }}.yml"
- name: Install git and dependencies - name: Install git and dependencies
package: ansible.builtin.package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ git_package_names }}" with_items: "{{ git_package_names }}"