From f01bf3e8cf891c9fca5062a44c1061c2c3a27283 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 10 Mar 2024 22:47:15 +0100 Subject: [PATCH] fix(install): avoid interpreting when in include_role --- tasks/prerequisites.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tasks/prerequisites.yml b/tasks/prerequisites.yml index 91ae62d..b7264f5 100644 --- a/tasks/prerequisites.yml +++ b/tasks/prerequisites.yml @@ -1,14 +1,15 @@ --- # task/prerequisites file for deploy_keepalived +- name: "Install compilation dependencies" + ansible.builtin.include_role: + name: ednz_cloud.manage_apt_packages + vars: + manage_apt_packages_list: "{{ deploy_keepalived_required_packages }}" + when: deploy_keepalived_deploy_method == 'host' + - name: "Prerequisites for host installation" when: deploy_keepalived_deploy_method == 'host' block: - - name: "Install compilation dependencies" - ansible.builtin.include_role: - name: ednz_cloud.manage_apt_packages - vars: - manage_apt_packages_list: "{{ deploy_keepalived_required_packages }}" - - name: "Create group {{ deploy_keepalived_script_group }}" ansible.builtin.group: name: "{{ deploy_keepalived_script_group }}"