Debian Codegraph @

ansible_collections/dellemc/powerflex/roles/powerflex_activemq/tasks/install_activemq.yml

raw symbols SCIP
1 ---
2 - name: Install java
3 ansible.builtin.include_tasks: "../../powerflex_common/tasks/install_java_{{ ansible_distribution }}.yml"
4
5 - name: Set facts for MDM counts
6 ansible.builtin.set_fact:
7 powerflex_activemq_mdm_count: "{{ groups['mdm'] | length }}"
8
9 - name: Set facts for powerflex_activemq_primary_ip
10 ansible.builtin.set_fact:
11 powerflex_activemq_primary_ip: "{{ hostvars[groups['mdm'][0]]['ansible_host'] }}"
12
13 - name: Set facts for powerflex_activemq_secondary_ip
14 ansible.builtin.set_fact:
15 powerflex_activemq_secondary_ip: "{{ hostvars[groups['mdm'][1]]['ansible_host'] }}"
16
17 - name: Set facts for powerflex_activemq_tertiary_ip
18 ansible.builtin.set_fact:
19 powerflex_activemq_tertiary_ip: "{{ hostvars[groups['mdm'][2]]['ansible_host'] }}"
20 when: powerflex_activemq_mdm_count | int > 2
21
22 - name: Set facts for powerflex_activemq_mdm_ips if powerflex_activemq_mdm_count is 2
23 ansible.builtin.set_fact:
24 powerflex_activemq_mdm_ips: "{{ powerflex_activemq_primary_ip }},{{ powerflex_activemq_secondary_ip }}"
25 when: powerflex_activemq_mdm_count | int == 2
26
27 - name: Set facts for powerflex_activemq_mdm_ips if powerflex_activemq_mdm_count is more than 2
28 ansible.builtin.set_fact:
29 powerflex_activemq_mdm_ips: "{{ powerflex_activemq_primary_ip }},{{ powerflex_activemq_secondary_ip }},{{ powerflex_activemq_tertiary_ip }}"
30 when: powerflex_activemq_mdm_count | int > 2
31
32 - name: Include install_powerflex.yml
33 ansible.builtin.include_tasks: ../../powerflex_common/tasks/install_powerflex.yml