How to set current directory in ansible.cfg?

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?

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)

Thanks. So what is the recommended way for setting roles_path to be <curr_dir>/roles for example?

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.

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

…and I run above command in that dir, I want the roles to be in

/home/myuser/ansible-plays/roles

Thanks again

I know I can…

$ ansible-galaxy install -r requirements.yml -p ./roles