ansible lint additions, .yamllint.yml configuratuion

This commit is contained in:
Bastian de Byl
2022-04-12 01:43:26 -04:00
parent d955598f05
commit 78f8ce2c6f
35 changed files with 87 additions and 411 deletions

View File

@@ -1,7 +1,7 @@
---
- name: create the git daemon systemd service
become: true
template:
ansible.builtin.template:
src: "templates/{{ item }}.j2"
dest: "/etc/systemd/system/{{ item }}"
mode: 0644

View File

@@ -1,7 +1,7 @@
---
- name: create git user
become: true
user:
ansible.builtin.user:
name: "{{ git_user }}"
comment: Git user for SSH remotes
shell: /usr/bin/git-shell
@@ -12,7 +12,7 @@
- name: create git's .ssh directory
become: true
become_user: git
file:
ansible.builtin.file:
path: "{{ git_home }}/.ssh"
state: directory
mode: 0700
@@ -20,7 +20,7 @@
- name: check git authorized_keys exists
become: true
stat:
ansible.builtin.stat:
path: "{{ git_home }}/.ssh/authorized_keys"
register: git_authfile
tags: git
@@ -28,7 +28,7 @@
- name: touch git authorized_keys
become: true
become_user: git
file:
ansible.builtin.file:
path: "{{ git_home }}/.ssh/authorized_keys"
state: touch
mode: 0600