|
22 | 22 | node_map_entries: "{{node_map | selectattr('application', 'equalto', application) | list}}"
|
23 | 23 | # if more than one node_map entry was found or no matching node_map
|
24 | 24 | # entries were found, then it's an error
|
25 |
| - - fail: |
| 25 | + - name: Fail playbook run if multiple solr node_map entries were found |
| 26 | + fail: |
26 | 27 | msg: "Multiple {{application}} node_map entries found"
|
27 | 28 | when: node_map_entries | length > 1
|
28 |
| - - fail: |
| 29 | + - name: Fail playbook run if no solr node_map entries were found |
| 30 | + fail: |
29 | 31 | msg: "No {{application}} node_map entries found"
|
30 | 32 | when: node_map_entries | length == 0
|
31 | 33 | # build the solr and zookeeper host groups from existing inventory
|
|
49 | 51 | # if an external Zookeeper ensemble (or node) was not found and we're
|
50 | 52 | # deploying an Solr/Fusion cluster (or multiple matching Solr/Fusion
|
51 | 53 | # nodes were found), then it's an error
|
52 |
| - - fail: |
| 54 | + - name: Fail playbook run if cluster deployment and external zookeeper ensemble not found |
| 55 | + fail: |
53 | 56 | msg: "An external Zookeeper ensemble is required for Solr/Fusion cluster deployments"
|
54 | 57 | when:
|
55 | 58 | - (num_solr_nodes | int == 0 and node_map_entries.0.count > 1) or num_solr_nodes | int > 1
|
|
58 | 61 | # instances into the target cloud environment, ensuring that there
|
59 | 62 | # are an appropriately tagged, based on the input tags and the node_map
|
60 | 63 | # entries for this application
|
61 |
| - - include_role: |
| 64 | + - name: Launch AWS VMs |
| 65 | + include_role: |
62 | 66 | name: 'aws'
|
63 | 67 | when: num_solr_nodes | int == 0 and cloud == 'aws'
|
64 |
| - - include_role: |
| 68 | + - name: Launch OSP VMs |
| 69 | + include_role: |
65 | 70 | name: 'osp'
|
66 | 71 | when: num_solr_nodes | int == 0 and cloud == 'osp'
|
67 | 72 | when: cloud is defined and (cloud == 'aws' or cloud == 'osp')
|
|
0 commit comments