Answer the question
In order to leave comments, you need to log in
How to install dependencies in AWX project?
I'm learning AWX. When I try to execute template, I get an error:
ERROR! couldn't resolve module/action 'community.crypto.openssl_dhparam'. This often indicates a misspelling, missing collection, or incorrect module path.
- src: https://github.com/ansible-collections/community.crypto
ok: [localhost] => {
"msg": "Repository Version 26af1a8960efbdb61dd8fd732d96c75b94476203"
}
PLAY [Install content with ansible-galaxy command if necessary] ****************
TASK [Check content sync settings] *********************************************
skipping: [localhost]
TASK [meta] ********************************************************************
skipping: [localhost]
TASK [fetch galaxy roles from requirements.(yml/yaml)] *************************
[WARNING]: Unable to find '/var/lib/awx/projects/_9__load_balancing/roles' in
expected paths (use -vvvvv to see paths)
TASK [fetch galaxy collections from collections/requirements.(yml/yaml)] *******
[WARNING]: Unable to find
'/var/lib/awx/projects/_9__load_balancing/collections' in expected paths (use
-vvvvv to see paths)
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0
[WARNING]: Unable to find '/var/lib/awx/projects/_9__load_balancing/roles' in
expected paths (use -vvvvv to see paths)
TASK [fetch galaxy collections from collections/requirements.(yml/yaml)] *******
[WARNING]: Unable to find
'/var/lib/awx/projects/_9__load_balancing/collections' in expected paths (use
-vvvvv to see paths)
Answer the question
In order to leave comments, you need to log in
It's decided.
According to the documentation
, you need to create the roles directory in the root directory, not in the playbook directory.
Also, in the directory with the playbooks, I created the collections directory, the warnings disappeared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question