Open
Description
On page 74 in
Chapter 3 - Ansible manages containers
When running command:
$ ansible-galaxy install -r requirements.yml
It runs with a warning:
[WARNING]: Ansible is being run in a world writable directory (/mnt/c/Users/<username>/documents/afk/ansible-solr-container), ignoring it as
an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-
writable-dir
Starting galaxy role install process
- downloading role 'java', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-java/archive/1.10.0.tar.gz
- extracting geerlingguy.java to /home/wsl/.ansible/roles/geerlingguy.java
- geerlingguy.java (1.10.0) was installed successfully
- downloading role 'solr', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-solr/archive/5.3.0.tar.gz
- extracting geerlingguy.solr to /home/wsl/.ansible/roles/geerlingguy.solr
- geerlingguy.solr (5.3.0) was installed successfully
It installs the roles but not in the correct location:
$ ls -1 roles
ls: cannot access 'roles': No such file or directory
Following the link in the warning leads to options to resolve the issue.
I used:
export ANSIBLE_CONFIG=./ansible.cfg
then re-ran the command:
$ ansible-galaxy install -r requirements.yml
which put them into the correct location:
$ ls -1 roles
geerlingguy.java
geerlingguy.solr
Metadata
Metadata
Assignees
Labels
No labels