--- - name: Import pacakge tasks ansible.builtin.import_tasks: packages.yml - name: Import config tasks ansible.builtin.import_tasks: config.yml - name: Import service tasks ansible.builtin.import_tasks: service.yml - name: Import data tasks ansible.builtin.import_tasks: data.yml when: elasticsearch_master