On 20.09.2018 08:15, furstenh...@geoblink.com wrote:
This might be in the docs, but I cannot find it. I have the following
files:
first-playbook.yml
second-playbook.yml
common-tasks.yml
common-tasks.yml is a list of tasks that is used in first-playbook.yml
and
second-playbook.yml through
At the moment what I'm doing is a nasty hack like:
touch FAKE_PLAYBOOK.yml
echo "host: foo" > FAKE_PLAYBOOK.yml
echo " tasks">> FAKE_PLAYBOOK.yml
cat common_tasks.yml | awk '{print "" $0 }'
ansible-playbook --syntax-check FAKE_PLAYBOOK.yml
Obviously that only scores as hack
Maybe something like this: python -c 'import
yaml,sys;yaml.safe_load(sys.stdin)' < common-tasks.yml
On Thu, Sep 20, 2018 at 1:15 AM wrote:
> This might be in the docs, but I cannot find it. I have the following
> files:
>
> first-playbook.yml
> second-playbook.yml
> common-tasks.yml
>
>