add managing individual lines in mesh.properties using values from template

This commit is contained in:
Lee Goolsbee
2024-03-28 16:47:56 -05:00
parent a050987e3c
commit 4a87c023f8
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
# Rather than managing the entire mesh.properties file, we only manage individual
# properties because upstream the product sets some properties by editing the file
- name: Update additional ansible-managed mesh properties
ansible.builtin.lineinfile:
path: "{{ mesh_properties_file }}"
search_string: "{{ mesh_prop_key }}="
line: "{{ item }}"
vars:
mesh_prop_key: "{{ item.split('=') | first }}"
loop: "{{ atl_mesh_properties }}"