- hosts: whichever
gather_facts: False
tasks:
- ... install python ...
- hosts: whichever
gather_facts: True # or omit for default
tasks:
- ...
The same could be done with roles, or even a playbook that includes
another, like:
- include: setup_python.yml
- include: regular_config.yml
Let me know if you have more questions on this! Thanks!
On Sun, Dec 14, 2014 at 2:41 PM, Ivan Korjavin <[email protected]> wrote:
>
> I have playbook with a lot of roles,
> A few of them, can't use "gather facts" cos, no python is avalible at that
> time, this roles use "raw" and install python.
>
> But after that another rules must have gather facrs due to using facts in
> templates.
>
> How to combine this in one playbook?
>
> --
> 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 to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fa372782-9e1b-4c0a-8cc4-bb68ab595a25%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/fa372782-9e1b-4c0a-8cc4-bb68ab595a25%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzpoZhLLpB99WMgyK_THoAo6a7wWwqVG1WpK_U4rMRUiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.