mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
13 lines
751 B
YAML
13 lines
751 B
YAML
---
|
|
# we just want to set the node.name for now, other values will get auto populated as the mesh node connects
|
|
# this may need to be expanded later, but don't add node.id unless you get it from bitbucket primary cluster
|
|
# first see if it's already set - if it is, use that, else generate a random one
|
|
|
|
- name: set mesh_node_name var from the existing mesh.properties file
|
|
ansible.builtin.set_fact:
|
|
mesh_node_name: "{{ lookup('ansible.builtin.ini', 'node.name type=properties file={{ mesh_properties_file }}') | split('.') | first }}"
|
|
|
|
- name: generate a pet name if mesh_node_name is empty or this is a clone firstrun # noqa jinja[invalid]
|
|
ansible.builtin.set_fact:
|
|
mesh_node_name: "{{ lookup('community.general.random_pet', words=3) }}"
|