Automatic installation with Ansible fails #84
Unanswered
CarstenGrohmann
asked this question in
Q&A
Replies: 2 comments
-
My current workaround is:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I have no Ansible knowledge. So i can't help here. Will move this to Discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Jens,
currently I try to automate the installation of inverter-connect with Ansible. This causes this error:
My installation steps are:
~spower/inverter-connect/
~spower/.config/inverter-connect/inverter-connect.toml
cli.py print-values
to create virtual environment and to test the connectivity to the inverterThe Ansible artifact is:
The error is caused by the special handling of
~
in combination with environment variableSUDO_USER
as coded here:https://github.com/jedie/ha-services/blob/4ad2a1b56d7b521e80dbe4ec3ecebac0440ac2df/ha_services/cli_tools/path_utils.py#L35-L54
From my perspective I access the system with the user "ansible" and use sudo to "spower". It's not intended to store anything in the home directory of the ansible user.
That do you think about this issue?
Regards,
Carsten
Beta Was this translation helpful? Give feedback.
All reactions