Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR! the role 'passstore/ansible_inventory' was not found #359

Closed
cmoulliard opened this issue Oct 5, 2023 · 3 comments · Fixed by #356
Closed

ERROR! the role 'passstore/ansible_inventory' was not found #359

cmoulliard opened this issue Oct 5, 2023 · 3 comments · Fixed by #356
Assignees
Labels
7 - Community development Development around upstream/community projects bug Something isn't working module::ansible module::openstack

Comments

@cmoulliard
Copy link
Member

Issue

The execution of the command ansible-playbook playbook/openstack/openstack_vm_create_passwordstore.yml generates this error :


[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Init controller] *******************************************************************************************************************************************************************************************************

TASK [Validate required variables] *******************************************************************************************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "All assertions passed"
}

TASK [Pull pass git database] ************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [Import generic key] ****************************************************************************************************************************************************************************************************
ERROR! the role 'passstore/ansible_inventory' was not found in /Users/cmoullia/code/snowdrop/k8s-infra/ansible/playbook/openstack/../passstore/roles:/Users/cmoullia/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/Users/cmoullia/code/snowdrop/k8s-infra/ansible/playbook/openstack/../passstore

The error appears to be in '/Users/cmoullia/code/snowdrop/k8s-infra/ansible/playbook/passstore/passstore_controller_init.yml': line 34, column 15, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

      include_role:
        name: "passstore/ansible_inventory"
              ^ here

PLAY RECAP *******************************************************************************************************************************************************************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


How to reproduce

cd $HOME/path/to/k8s-infra/ansible
pass-team (= script used to use password snowdrop team)
source ~/.pyvirt/bin/activate
VM_NAME=dummy-t01
ansible-playbook playbook/openstack/openstack_vm_create_passwordstore.yml -e k8s_type=masters -e k8s_version=123 -e '{"openstack": {"vm": {"network": "provider_net_shared","image": "Fedora-Cloud-Base-35", "flavor": "m1.medium"}}}' -e key_name=test-adm-key -e vm_name=${VM_NAME}
@cmoulliard cmoulliard added bug Something isn't working 7 - Community development Development around upstream/community projects module::openstack module::ansible labels Oct 5, 2023
@jacobdotcosta
Copy link
Member

Could you execute the command from $HOME/path/to/k8s-infra/ ? @cmoulliard

@jacobdotcosta jacobdotcosta self-assigned this Oct 5, 2023
@cmoulliard
Copy link
Member Author

pwd
/Users/cmoullia/code/snowdrop/k8s-infra

ansible-playbook playbook/openstack/openstack_vm_create_passwordstore.yml -e k8s_type=masters -e k8s_version=123 -e '{"openstack": {"vm": {"network": "provider_net_shared","image": "Fedora-Cloud-Base-35", "flavor": "m1.medium"}}}' -e key_name=test-adm-key -e vm_name=${VM_NAME}

-->

[WARNING]: log file at /opt/log/ansible.log is not writeable and we cannot create it, aborting

[DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use 
module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ERROR! the playbook: playbook/openstack/openstack_vm_create_passwordstore.yml could not be found

@jacobdotcosta
Copy link
Member

jacobdotcosta commented Oct 23, 2023

The documentation was missing the ansible folder. Fixed on PR #356 .

The command should be ansible-playbook ansible/playbook/openstack/openstack_vm_create_passwordstore.yml ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development Development around upstream/community projects bug Something isn't working module::ansible module::openstack
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants