Open blaisep opened 2 years ago
@robertdebock , if you can suggest how to troubleshoot, I'm happy to troubleshoot and file a PR.
I have decided to build my new homelab from bootstrap using your roles, so I'm eager to learn.
Hi @blaisep!
Hm, I never really thought of the situation that you are in; using a custom path to python.
The vars/main.yml
file has these commands:
ara_setup_command_python2: python -m ara.setup.callback_plugins
ara_setup_command_python3: python3 -m ara.setup.callback_plugins
What's missing is a custom path.
I think what's required is to use ansible_python_interpreter
instead of that map in vars/main.yml
. Give me a moment to try a few things and get back to you.
Regards,
Robert de Bock.
Hm, I never really thought of the situation that you are in; using a custom path to python.
Oh, how funny! I thought I was following your suggestions at https://robertdebock.nl/how-to-use-these-roles.html#ansible-cfg and I wanted to make sure that I used the venv python interpreter.
On Tue, Jan 11, 2022 at 2:23 PM Robert de Bock @.***> wrote:
Hi @blaisep https://github.com/blaisep!
Hm, I never really thought of the situation that you are in; using a custom path to python.
The vars/main.yml file has these commands:
ara_setup_command_python2: python -m ara.setup.callback_pluginsara_setup_command_python3: python3 -m ara.setup.callback_plugins
What's missing is a custom path.
I think what's required is to use ansible_python_interpreter instead of that map in vars/main.yml. Give me a moment to try a few things and get back to you.
Regards,
Robert de Bock.
— Reply to this email directly, view it on GitHub https://github.com/robertdebock/ansible-role-ara/issues/5#issuecomment-1010286688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB6D6A7IOEKJROPZXH2WNDUVR7SVANCNFSM5LSX5O2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- LinkedIn https://www.linkedin.com/in/blaisepabon/ | Quora https://www.quora.com/profile/Blaise-Pabon | Github https://github.com/blaisep “If you want to go fast, go alone. If you want to go far, go together.” --African proverb
Describe the bug
After installing all the requirements, the ara role fails to install.
Playbook
$ ansible-playbook -K ara.yml
Please paste the playbook you are using. (Consider
requirements.yml
and optionally the command you've invoked.)I tried both of these
inventory
:localhost ansible_connection=local ansible_python_interpreter=/home/blaise/venv/bin/python
andlocalhost ansible_connection=local ansible_python_interpreter=/home/blaise/venv/bin/python3
Output
Environment
Control node OS: [e.g. Debian 9] (
cat /etc/os-release
)Control node Ansible version: [e.g. 2.9.1] (
ansible --version
)Managed node OS: [e.g. CentOS 7] (
cat /etc/os-release
) the same machineRoles
robertdebock.bootstrap, 5.2.11
robertdebock.buildtools, 3.1.6
robertdebock.epel, 3.1.4
robertdebock.python_pip, 4.2.7
robertdebock.ara, 3.1.1
robertdebock.service, 3.1.2