TASK [Get Ubuntu version definitions] ****************************************************************************************************************
fatal: [server1]: FAILED! => {"changed": true, "cmd": "source /etc/lsb-release", "delta": "0:00:00.002579", "end": "2021-09-27 17:02:32.565396", "msg": "non-zero return code", "rc": 127, "start": "2021-09-27 17:02:32.562817", "stderr": "/bin/sh: 1: source: not found", "stderr_lines": ["/bin/sh: 1: source: not found"], "stdout": "", "stdout_lines": []}
This is most likely because I run at elevated permissions.
What can I do in order to make this work?
TIA
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fe78c00b-ac97-4960-a70b-449b0e1fcf41n%40googlegroups.com.
source is a bash built-in command. There is no executable. You can try "bash -c 'source /etc/lsb-release' "
HTH,
Sandip
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fe78c00b-ac97-4960-a70b-449b0e1fcf41n%40googlegroups.com.
echo $DISTRIB_CODENAME
bionic
sudo source /etc/lsb-release
[sudo] password for ubuntu:
sudo: source: command not found
So it is a matter of elevated access level, but I just don't know how to run that at lower level...
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b2b6f8bd-ed69-49b1-853f-990d1bdbc3can%40googlegroups.com.