fix(install): avoid interpreting when in include_role
All checks were successful
test / Linting (push) Successful in 36s
test / Molecule tests (default, debian11) (push) Successful in 2m22s
test / Molecule tests (default, debian12) (push) Successful in 2m26s
test / Molecule tests (default, ubuntu2204) (push) Successful in 3m4s
test / Molecule tests (default, ubuntu2004) (push) Successful in 3m55s
test / Molecule tests (with_custom_conf, debian11) (push) Successful in 2m21s
test / Molecule tests (with_custom_conf, debian12) (push) Successful in 2m25s
test / Molecule tests (with_custom_conf, ubuntu2004) (push) Successful in 3m15s
test / Molecule tests (with_custom_conf, ubuntu2204) (push) Successful in 3m8s

This commit is contained in:
Bertrand Lanson 2024-03-10 22:47:15 +01:00
parent 415823e256
commit f01bf3e8cf

View File

@ -1,14 +1,15 @@
--- ---
# task/prerequisites file for deploy_keepalived # task/prerequisites file for deploy_keepalived
- name: "Prerequisites for host installation"
when: deploy_keepalived_deploy_method == 'host'
block:
- name: "Install compilation dependencies" - name: "Install compilation dependencies"
ansible.builtin.include_role: ansible.builtin.include_role:
name: ednz_cloud.manage_apt_packages name: ednz_cloud.manage_apt_packages
vars: vars:
manage_apt_packages_list: "{{ deploy_keepalived_required_packages }}" 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: "Create group {{ deploy_keepalived_script_group }}" - name: "Create group {{ deploy_keepalived_script_group }}"
ansible.builtin.group: ansible.builtin.group:
name: "{{ deploy_keepalived_script_group }}" name: "{{ deploy_keepalived_script_group }}"