From 0df015e9b5c4aefd4245c94ee98021d2af80ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 22 Oct 2022 16:41:45 +0200 Subject: lint: pass ansible-lint + yamllint --- roles/git/tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'roles/git') diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index 851287e..193844f 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -1,15 +1,15 @@ - name: install git package - package: + ansible.builtin.package: name: git state: present - name: create git group - group: + ansible.builtin.group: name: "{{ git_group }}" state: present - name: create git user - user: + ansible.builtin.user: name: "{{ git_user }}" group: "{{ git_group }}" shell: "{{ git_shell }}" @@ -17,7 +17,7 @@ create_home: false - name: create git directories - file: + ansible.builtin.file: path: "{{ item }}" owner: "{{ git_user }}" group: "{{ git_group }}" @@ -28,7 +28,7 @@ - "{{ git_dir }}/git-shell-commands" - name: generate git-shell no-login prompt - template: + ansible.builtin.template: src: no-interactive-login.j2 dest: "{{ git_dir }}/git-shell-commands/no-interactive-login" owner: "{{ git_user }}" @@ -37,7 +37,7 @@ when: not git_allow_ssh_login - name: generate gitconfig - template: + ansible.builtin.template: src: gitconfig.j2 dest: "{{ git_dir }}/.gitconfig" owner: "{{ git_user }}" @@ -45,6 +45,6 @@ mode: 0644 - name: include ssh key synchronization - include_role: + ansible.builtin.include_role: name: sshd tasks_from: synchronize_keys.yml -- cgit v1.2.3