From d8db92eec52d9bcc799d44c40e73a67250e58e70 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Tue, 8 Nov 2022 15:20:17 -0700 Subject: [PATCH] more FQCN --- init-ansible-host.yml | 10 +++++----- init-gitea-configure.yml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/init-ansible-host.yml b/init-ansible-host.yml index 9d569ad..f88adf4 100644 --- a/init-ansible-host.yml +++ b/init-ansible-host.yml @@ -9,13 +9,13 @@ installation_prefix: ./ pre_tasks: - name: Remove existing public roles - file: + ansible.builtin.file: path: "{{ installation_prefix }}{{ roles_installation_dir }}" state: absent when: force_purge | bool - name: Install all public roles and collections - command: > + ansible.builtin.command: > ansible-galaxy role install {{ ( force_purge | bool ) | ternary('--force','') }} --role-file {{ installation_prefix }}roles/requirements.yml @@ -24,7 +24,7 @@ changed_when: '"Installing " in galaxy_install_role.stdout' - name: Install needed collections - command: > + ansible.builtin.command: > ansible-galaxy collection install {{ ( force_purge | bool ) | ternary('--force-with-deps','') }} -r {{ installation_prefix }}collections/requirements.yml @@ -33,13 +33,13 @@ changed_when: '"Installing " in galaxy_install_collection.stdout' - name: cleanup old ssh known_hosts - remove - file: + ansible.builtin.file: path: "./tmp/known_hosts" state: absent mode: "0644" - name: cleanup old ssh known_hosts - blank - file: + ansible.builtin.file: path: "./tmp/known_hosts" state: touch mode: "0644" diff --git a/init-gitea-configure.yml b/init-gitea-configure.yml index 7e7e69d..08159b9 100644 --- a/init-gitea-configure.yml +++ b/init-gitea-configure.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"