This commit is contained in:
parent
3282d019c7
commit
898d396d3e
@ -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.
|
||||
|
||||
|
@ -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 }}"
|
||||
|
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user