My roles/test/tasks/main.yml file looks like this: --- # test/tasks/main.yml
- include: users.yml when: user_test|default(False) - include: file.yml when: file_test|default(False) - include: string.yml when: string_test|default(False) - include: loop.yml when: loop_test|default(False) The playbook that runs my tests currently have only "user_test" defined. Expected behaviour is that users.yml is included and the rest ignored. However, when I run test (no verbose flags of any kind): ansible-playbook test.yml --limit testmail I see messages like this: [...] TASK [test : Create strings] ************************************************** * skipping: [testmail] TASK [test : debug] *********************************************************** * skipping: [testmail] TASK [test : Edit strings] **************************************************** * skipping: [testmail] TASK [test : debug] *********************************************************** * skipping: [testmail] which are listing tasks inside string.yml. Yes, it is skipping said tasks but I thought it would not try to peek at that task file to begin with. Is that expected behaviour or I did something wrong? -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHEKYV6p6EmyYnoXccHOjsDLU22kggKuymN-qM%3DpT_Qtsdd4Gg%40mail.gmail.com.