--- - name: Set common facts ansible.builtin.import_tasks: tasks/set-default-facts.yml - name: Deploy {{ svc.name }} vars: svc: "{{ influxdb_svc }}" env: "{{ influxdb_env }}" compose: "{{ influxdb_compose }}" yml: "{{ influxdb_yml }}" block: - name: Import prepare tasks for common service ansible.builtin.import_tasks: tasks/prepare-common-service.yml - name: Template config ansible.builtin.template: src: service.yml.j2 dest: "{{ (service_path, 'influxdb.yml') | path_join }}" mode: "0600" - name: Import start tasks for common service ansible.builtin.import_tasks: tasks/start-common-service.yml