On Tue, 19 Nov 2019 10:50:04 -0800 (PST) Michael <[email protected]> wrote:
> - name: Uninstall old oracle client
> command: /bin/sh -c "/opt/oracle/product/12.1.0/deinstall/deinstall
> -silent -paramfile {{ respfile }}"
> [...]
> "respfile": [
> "/tmp/deinstall2019-11-19_11-29-40AM/response/deinstall_OraClient12Home1.rsp"
> ]
> [...]
> fatal: [localhost]: FAILED! => {"changed": true, "cmd":
> "/opt/oracle/product/12.1.0/deinstall/deinstall -silent -paramfile
> [u'/tmp/deinstall2019-11-19_11-35-44AM/response/deinstall_OraClient12Home1.rsp']",
>
(<path> and <params> replaced for readability)
*respfile* is a list. It's possible to run the command with the first item
- name: Uninstall old oracle client
command: /bin/sh -c "<path>/deinstall <params> {{ respfile.0 }}"
,or in the loop if there might be more items to process
- name: Uninstall old oracle client
command: /bin/sh -c "<path>/deinstall <params> {{ item }}"
loop: "{{ respfile }}"
Cheers,
-vlado
--
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/20191119212515.6be44b5f%40gmail.com.
pgp89pL6XakRA.pgp
Description: OpenPGP digital signature
