diff --git a/init-gitea-themes.yml b/init-gitea-themes.yml index 48db845..9b437dd 100644 --- a/init-gitea-themes.yml +++ b/init-gitea-themes.yml @@ -5,7 +5,7 @@ pre_tasks: - name: Check if ansible cannot be run here - stat: + ansible.builtin.stat: path: /etc/no-ansible register: no_ansible @@ -17,7 +17,7 @@ fail_msg: "/etc/no-ansible exists - skipping run on this node" - name: Enable the proper copr for gitea - command: "dnf copr enable nalika/gitea -y" + ansible.builtin.command: "dnf copr enable nalika/gitea -y" check_mode: false changed_when: "1 != 1" diff --git a/tasks/gitea/configure.yml b/tasks/gitea/configure.yml index 936460e..1c3ffa8 100644 --- a/tasks/gitea/configure.yml +++ b/tasks/gitea/configure.yml @@ -1,6 +1,6 @@ --- - name: Check for gitea.configured - stat: + ansible.builtin.stat: path: "/etc/gitea.configured" register: gitea_configured_file check_mode: false @@ -9,7 +9,7 @@ - mock - name: Deploy Gitea configuration - template: + ansible.builtin.template: src: "etc/gitea/conf/app.ini.j2" dest: "/etc/gitea/conf/app.ini" owner: git diff --git a/tasks/gitea/install.yml b/tasks/gitea/install.yml index 1aa27aa..25ce311 100644 --- a/tasks/gitea/install.yml +++ b/tasks/gitea/install.yml @@ -31,7 +31,7 @@ # - gitea_web_config|bool - name: "Install httpd" - dnf: + ansible.builtin.dnf: name: httpd state: present when: