diff options
Diffstat (limited to 'ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml')
-rw-r--r-- | ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml b/ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml index f53eef1..e811291 100644 --- a/ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml +++ b/ansible/deployment_poc/tasks/netbox_evaluate_cluster.yml @@ -28,17 +28,23 @@ when: host_status != 'active' - name: Evaluate cluster host configuration - set_fact: - storage: "{{ host_choice.config_context.storage[0] }}" - deployment_servers: "{{ host_choice.config_context.deployment_servers }}" - dhcp_servers: "{{ host_choice.config_context.dhcp_servers }}" - dns_servers: "{{ host_choice.config_context.dns_servers }}" - namespace: "{{ host_choice.config_context.namespace }}" - gateway: "{{ host_choice.config_context.gateway }}" + block: + - name: Cluster derived variables 1/2 + set_fact: + storage: "{{ host_choice.config_context.storage[0] }}" + deployment_servers: "{{ host_choice.config_context.deployment_servers }}" + dhcp_servers: "{{ host_choice.config_context.dhcp_servers }}" + dns_servers: "{{ host_choice.config_context.dns_servers }}" + namespace: "{{ host_choice.config_context.namespace }}" + gateway: "{{ host_choice.config_context.gateway }}" + - name: Cluster derived variables 2/2 + set_fact: + namespace_short: "{{ namespace.split('.')[0] }}" when: host_status == 'active' tags: - init_dp + - init_ssh rescue: - name: Check retry counter |