Ich habe dieses in meinem all.yml nicht tagger.yml laufen kann (obwohl, wenn tagger.yml läuft direkt es funktioniert)ansible 2 include andere yml nicht funktioniert, obwohl direkter Aufruf funktioniert
---
- name: run couple of ymls
hosts: all
tasks:
- include: "./tagger.yml"
#- include: ./fluentd.yml
tagger.yml
---
- name: tagger - build docker
hosts: all
tags:
- all
- tagger
....
Fehler ist
fatal: [localhost]: FAILED! => {"failed": true, "reason": "no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to have been in '.Build/tagger.yml': line 2, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n - name: tagger - build docker\n ^here\n\n\nThe error appears to have been in '.Build/tagger.yml': line 2, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n - name: tagger - build docker\n ^here\n"}
Dank für die detaillierte Antwort - versucht, und jetzt funktioniert es! – user1025852