in console : -bash-4.2$ whoami awx -bash-4.2$ git push [email protected]:savetogit/devbackupdesconfigs.git Counting objects: 9, done. Delta compression using up to 2 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 503 bytes | 0 bytes/s, done. Total 5 (delta 1), reused 0 (delta 0) To [email protected]:savetogit/devbackupdesconfigs.git bcbe3ed..2cfbb27 master -> master
-bash-4.2$ git push [email protected]:savetogit/devbackupdesconfigs.git [email protected]'s password: this second command doesn't work with ssh keys and asks password -- my problem is within ansible shell command execution, all is fine in simple shell Le jeudi 2 avril 2020 09:35:01 UTC+2, lolO lolO a écrit : > > Hello all ! > > it's been a while i have troubles with the shell module: > as a command is correctly executed in console (even launched as the user > awx) > > *git push [email protected]:savetogit/devbackupdesconfigs.git* > > but fails through the playbook execution with the output > > i've already tried a lot of changes (character protection, command line in > variable, local script) > same issue > the output is > ssh: Could not resolve hostname savetogit.skylab.local: Name or service > not know > > any idea why such a parsing? > > --- > the aim is to push to a remote git (skylab.local) > as the user 'savetogit' > this works perfectly ion console > > thanks > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4962692f-e87e-46d6-be4b-4935779ee6f3%40googlegroups.com.
