I know I can...
$ ansible-galaxy install -r requirements.yml -p ./roles
On Monday, October 2, 2017 at 3:17:01 PM UTC-4, ZillaYT wrote:
>
> Ah. I want to set it b/c I want to run the following to clone the roles
> defined in my current playbook's requirements.yml file in a roles
>
Ah. I want to set it b/c I want to run the following to clone the roles
defined in my current playbook's requirements.yml file in a roles
sub-directory relative to my playbook.
$ ansible-galaxy install -r requirements.yml
So if my playbook is in
/home/myuser/ansible-plays/myplaybook.yml
That is my point, i don't recommend ever using 'cur dir', if invoking
a play, it already uses a roles/ dir adjacent to the play, I would use
that or a directory set by configuration.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Thanks. So what is the recommended way for setting roles_path to be
/roles for example?
On Monday, October 2, 2017 at 3:01:32 PM UTC-4, Brian Coca wrote:
>
> In 2.4 and above you can use {{CWD}}, i still don't recommend it as
> it is a security risk (cd /tmp; ansible-playbook
In 2.4 and above you can use {{CWD}}, i still don't recommend it as
it is a security risk (cd /tmp; ansible-playbook ~/security/play.yml)
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this
I want to set a roles_path = ${curr_dir}/roles, but how do I set curr_dir
to my current directory where I run ansible-playbook command in my
ansible.cfg file?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group