On 12/5/22 23:48, phillip.from.oz wrote:
This is what I'm doing:
Playbook:
---
- name: Connect to remote IRIS DB
hosts: localhost
tasks:
- name: using my custom module
IRIS: <-- New Module
name: superuser
password: secret
instance: SCR
namespace: WORK
commands:
- w !,”Hello”
- w !,”World”
register: result
- name: show output
debug:
var: result
This is the logic:
ssh localhost
I'd rather use
delegate_to: localhost
for this particular task.
AFAICS this won't result in a SSH connection to local host.
But of course you have to manage the DB connection inside your module.
Ciao, Michael.
--
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/2e88dd34-0f2f-adc2-5e83-812fdb7abc2d%40stroeder.com.