Directory to store ansible's playbooks

23 views
Skip to first unread message

Михаил Политаев

unread,
Jul 24, 2019, 12:58:51 AM7/24/19
to Ansible Project
Hello team!

Read the documentation and didn't find where playbooks ansible should be store only advice that they should be under source control. 

I see /etc/ansible/roles directory installed by default. Is it mean that here should be /etc/ansible/playbooks? Or I can store playbook anywhere /opt/ansible, for example?

Are playbooks during the execution expect that they are will running from /etc/ansible and not any other dir?

Thank you for clarification.

Andrew Feller

unread,
Jul 24, 2019, 5:43:18 AM7/24/19
to ansible...@googlegroups.com
Your collection of playbooks, roles, etc can live anywhere on the filesystem you want.  Yes, ansible has conventions on specific places on the filesystem it will check, however I think most house their collection where it makes sense for the operators and/or processes they have.

Rather than an absolute path, I would focus on the various relative paths that ansible supports for locating content as you leverage ansible for your needs.

Here’s some additional docs worth reading:


Sent from my iPhone
--
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/9e08d2e6-0548-4339-8589-2dc45e29f48c%40googlegroups.com.

Михаил Политаев

unread,
Jul 25, 2019, 2:14:05 AM7/25/19
to Ansible Project
Thanks for answer! That is what I want to hear, to confirm that I am thinking in a right direction. 

среда, 24 июля 2019 г., 6:58:51 UTC+2 пользователь Михаил Политаев написал:
Reply all
Reply to author
Forward
0 new messages