--- - name: enable and start service systemd: name: elasticsearch state: started enabled: true tags: elasticsearch - name: wait for api is available wait_for: port: 9200 timeout: 10 tags: elasticsearch