How to use roles/../tests directory

14 views
Skip to first unread message

Ngoc Quan Pham

unread,
Mar 17, 2023, 10:28:58 AM3/17/23
to ansible...@googlegroups.com
Hi everyone,

As you know, the standard structure of a Ansible role has the directories /default, /handlers, /meta, /tasks, /templates, /vars and /tests. I have basic question of the directory /tests in Ansible roles, but I can’t find the answers. Can you let me know what is the purpose this /tests directory? Is it for testing funtional tasks? Is it possible for Ansible to automatically find yml files in /tests from /tasks/main.yml using include_tasks method?

Thank you for your answer.

Kind regards,
Alex Pham

Rowe, Walter P. (Fed)

unread,
Mar 17, 2023, 10:49:59 AM3/17/23
to ansible...@googlegroups.com
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAH6wOdM%2BddHr0f6wzDDM9HOimsT2f8SNimRxE%3DnRvv0RT6ZMPw%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages