--- - name: Ensure the service directory exists ansible.builtin.file: path: "{{ netbird_coordinator__base_dir }}" state: directory mode: "0750" tags: [config] - name: Render the combined server config ansible.builtin.template: src: config.yaml.j2 dest: "{{ netbird_coordinator__base_dir }}/config.yaml" mode: "0640" no_log: true # holds authSecret + datastore encryption key notify: restart netbird tags: [config] - name: Render the dashboard env file ansible.builtin.template: src: dashboard.env.j2 dest: "{{ netbird_coordinator__base_dir }}/dashboard.env" mode: "0644" notify: restart netbird tags: [config] - name: Render the compose file ansible.builtin.template: src: docker-compose.yml.j2 dest: "{{ netbird_coordinator__base_dir }}/docker-compose.yml" mode: "0644" tags: [config] - name: Bring the NetBird coordinator up community.docker.docker_compose_v2: project_src: "{{ netbird_coordinator__base_dir }}" state: present when: netbird_coordinator__manage | bool tags: [deploy]