Hi, I believe there is a regression here in ansible 2.1.1.0. I'll be reinstalling 1.9 again. Please let me know if there is a workaround or a fix for this planned as I want to use the new features of the latest ansible. Thanks Aditya Menon
On Tuesday, 30 August 2016 14:36:14 UTC+5:30, Hagai Kariti wrote: > > Hi > It seems that https://github.com/ansible/ansible/issues/13602 is back in > Ansible 2.1.1 and devel. Running ansible-playbook with -t will collect > facts even if no task/role in the play is selected. This also happens with > smart gathering, if the fact cache is expired. Example: > > test.yml: > --- > - name: No tagged task here > hosts: localhost > tasks: > - debug: msg="I won't run" > > - name: Tagged task here > hosts: localhost > tasks: > - debug: msg="tagged task" > tags: runme > > And this is the output after clearing the fact cache: > > $ ansible-playbook test.yml -t runme > [WARNING]: Host file not found: /etc/ansible/hosts > > [WARNING]: provided hosts list is empty, only localhost is available > > > PLAY [No tagged task here] > ***************************************************** > > TASK [setup] > ******************************************************************* > ok: [localhost] > > PLAY [Tagged task here] > ******************************************************** > > TASK [debug] > ******************************************************************* > ok: [localhost] => { > "msg": "tagged task" > } > > The setup task is run on the untagged play, like reported in #13602 > > > -- 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/dd40b4fb-e904-4eb4-ab7b-42eded4dec6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
