hi,
i want to use "get-command" to get the location of a program. in the next step i want to execute this program with a full qualified location.
this example is just an example, i know there are other modules for doing a ping.
i use
(get-command ping).source
to get the location. in the next step i want to execute this with a parameter:
- name: get pingpath
win_shell: "(get-command ping).source")
register: pingpath
- name test ping
win_shell: "{{ pingpath }} 9.9.9.9"
that throws an error because of an
unexpected token: \":\"
any idea how to fix this?
regards,
andre