# Other protocol/target for ansible

**URL:** <https://forum.ansible.com/t/other-protocol-target-for-ansible/14461>\
**Category:** Ansible Project\
**Created:** [January 30, 2014, 4:29pm UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461 "2014-01-30T16:29:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Kovalenko](https://avatars.discourse-cdn.com/v4/letter/i/e95f7d/32.png) [@Ivan\_Kovalenko](https://forum.ansible.com/u/Ivan_Kovalenko)\
**Post date:** [January 30, 2014, 4:29pm UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461/1 "2014-01-30T16:29:22Z")

</div>

Hi, i’d like to know is it possible to run ansible for configuration management against oracle instances (that is not hosts, but tnsnames).  
I see it like supplying a list of tns names or tns-addresess with plsql-scripts to perform . So that doesn’t require ssh and could be performed from ansible master )

Maybe the same could be done for HTTP, SMTP, telnet ?

Or such a thing is out of the ansible scope ?

Respecfully,  
Ivan

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [January 30, 2014, 5:08pm UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461/2 "2014-01-30T17:08:28Z")

</div>

Sounds like this should just be a module instead, like the other database modules, and should not be a connection?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [January 30, 2014, 5:33pm UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461/3 "2014-01-30T17:33:06Z")

</div>

afaik tnsnames.ora on any server still would let you execute sqlplus using ansible’s shell: module. An oracle module might make this much cleaner/nicer.

For http you have the get\_uri module, for smtp the mail module, not sure what you want to do with telnet.

---

<div class="post-metadata">

**Author:** ![Ivan\_Kovalenko](https://avatars.discourse-cdn.com/v4/letter/i/e95f7d/32.png) [@Ivan\_Kovalenko](https://forum.ansible.com/u/Ivan_Kovalenko)\
**Post date:** [February 5, 2014, 10:00am UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461/4 "2014-02-05T10:00:34Z")

</div>

As i get it, Ansible deals around hosts. But only connection in question ) The single host does make all the outgoing oracle connections to other hosts.  
Or i get it wrong?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [February 5, 2014, 3:46pm UTC](https://forum.ansible.com/t/other-protocol-target-for-ansible/14461/5 "2014-02-05T15:46:01Z")

</div>

It CAN, but not necessarily. Most plugins execute AT the target host, unless you use connection: local or local\_action: or delegate\_to:, the 2 first always run on host you execute ansible from (aka master), the 3rd on any host you enter, including the master.Some plugins are or have a ‘action\_plugin’ which always executes on the master.

You can implement the behavior you describe any of these ways, but this is not a MUST, just an option.
