Thanks Brian,
I'll ask another way. How do I retrieve system information on servers
without using the plugin 'setup'?
Den fredag den 29. september 2017 kl. 15.27.52 UTC+2 skrev Brian Coca:
>
> --tree is only an option for `ansible` .. not ansible-playbook, there
> is no keyword to do the same
--tree is only an option for `ansible` .. not ansible-playbook, there
is no keyword to do the same in plays.
But since it is now a callback, you can however enabled it as you
would any other callback
https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/plugins/callback.rst
--
Playbook:
---
- hosts: test
remote_user: nbm
tasks:
- name: gather system facts
setup:
remote_user: nbm
Den fredag den 29. september 2017 kl. 13.16.32 UTC+2 skrev
rhys.jame...@googlemail.com:
>
> Have you tried printing it with the debug module? Paste your playbook here.
>
> On
Playbook attached.
Mvh
Nicolai
2017-09-29 13:16 GMT+02:00 rhys.james.campbell via Ansible Project <
ansible-project@googlegroups.com>:
> Have you tried printing it with the debug module? Paste your playbook here.
>
> On Friday, September 29, 2017 at 12:05:53 PM UTC+2, nbmp...@gmail.com
>
Have you tried printing it with the debug module? Paste your playbook here.
On Friday, September 29, 2017 at 12:05:53 PM UTC+2, nbmp...@gmail.com wrote:
>
> Thanks for the reply Rhys,
>
> I tried:
> ansible-playbook test.yml --extra-vars "--tree /home/user/ansible/facts"
> ansible-playbook
Thanks for the reply Rhys,
I tried:
ansible-playbook test.yml --extra-vars "--tree /home/user/ansible/facts"
ansible-playbook test.yml --extra-vars "tree /home/user/ansible/facts"
ansible-playbook test.yml --extra-vars "tree=/home/user/ansible/facts"
None work.
Den fredag den 29. september 2017
See
here;
http://docs.ansible.com/ansible/latest/playbooks_variables.html#passing-variables-on-the-command-line
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email