You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the update.yml file I get the following error message:
From github.com:Vreden46/newansible
TASK [Gathering Facts] *********************************************************
PLAY [Aktualisiere Ubuntu-Systeme] *********************************************
ok: [192.168.0.158]
TASK [Aktualisiere die Paketliste] *********************************************
fatal: [192.168.0.158]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation: Failed to lock directory /var/lib/apt/lists/: E:Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"}
If I run ansible-playbook -bK update.yml in the terminal, I am asked for the password and everything works. But how do I do this in Semaphore???
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When running the update.yml file I get the following error message:
From github.com:Vreden46/newansible
TASK [Gathering Facts] *********************************************************
PLAY [Aktualisiere Ubuntu-Systeme] *********************************************
ok: [192.168.0.158]
TASK [Aktualisiere die Paketliste] *********************************************
fatal: [192.168.0.158]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation: Failed to lock directory /var/lib/apt/lists/: E:Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"}
If I run ansible-playbook -bK update.yml in the terminal, I am asked for the password and everything works. But how do I do this in Semaphore???
I already use sudo-Informatios in the inventory
if I do it like this in the inventory:
[sql]
192.168.0.158
[sql:vars]
ansible_connection=ssh
ansible_user=torsten
ansible_become_password=clear password
everything is going wonderfully
but that is not the way
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions