From a58644b60cb3807fa387a94c6637d93eef50da25 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Mon, 24 Oct 2022 16:15:02 +0000 Subject: [PATCH] git_server: Use FQCN for module calls --- roles/git_server/tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/git_server/tasks/main.yml b/roles/git_server/tasks/main.yml index 0a74944..1634b1d 100644 --- a/roles/git_server/tasks/main.yml +++ b/roles/git_server/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: install git server packages - package: + ansible.builtin.package: name: "{{ item }}" state: installed with_items: @@ -10,12 +10,12 @@ - perl-Digest-MD5 - name: fix selinux context from data directory - sefcontext: + community.general.sefcontext: path: /export/git(/.*)? setype: git_sys_content_t - name: create git directory - file: + ansible.builtin.file: path: /srv/git src: /export/git state: link @@ -23,7 +23,7 @@ group: root - name: create gitweb config - copy: + ansible.builtin.copy: dest: /etc/gitweb.conf src: gitweb.conf mode: 0644 @@ -31,7 +31,7 @@ group: root - name: create robots.txt - copy: + ansible.builtin.copy: dest: /var/www/git/robots.txt content: "User-agent: *\nDisallow:\n" mode: 0644 @@ -39,7 +39,7 @@ group: "{{ ansible_wheel }}" - name: copy local layout files - copy: + ansible.builtin.copy: dest: "/var/www/git/static/{{ item }}" src: "{{ item }}" mode: 0644 @@ -50,7 +50,7 @@ - gitweb-local.css - name: create apache git config - copy: + ansible.builtin.copy: dest: /etc/httpd/conf.local.d/git.conf src: git.conf mode: 0644