From b02a8c40c76cb2e61c7a664ec156407101201a24 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 25 Jan 2023 14:40:44 +0100 Subject: move tool existence conditionals to role common --- roles/rate_mirrors/meta/main.yml | 3 ++- roles/rate_mirrors/tasks/main.yml | 9 +-------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'roles/rate_mirrors') diff --git a/roles/rate_mirrors/meta/main.yml b/roles/rate_mirrors/meta/main.yml index cc61eb8..4516fa1 100644 --- a/roles/rate_mirrors/meta/main.yml +++ b/roles/rate_mirrors/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - - role: etckeeper + - role: common + - {role: etckeeper, when: etc_versioned} diff --git a/roles/rate_mirrors/tasks/main.yml b/roles/rate_mirrors/tasks/main.yml index 3334483..7aff26e 100644 --- a/roles/rate_mirrors/tasks/main.yml +++ b/roles/rate_mirrors/tasks/main.yml @@ -1,11 +1,4 @@ -- name: Check if rate-mirrors is installed - command: rate-mirrors --version - register: rate_mirrors_version - changed_when: false - failed_when: false - -- when: rate_mirrors_version.rc == 0 - become: true +- become: true block: - when: etc_versioned block: -- cgit v1.2.3