Thank you Ganesh
Let me be more specific with my question/use case.

I want to perform actions on specific nodes but the node names may vary 
from one server to the other.

Can a playbook achieve the following tasks?


1) query the node and get all of the node names or a subset of the node 
names

2) for each target node name that is returned, "execute" an action on it  

3) if result is fail, quit (fail); otherwise go to the next action for the 
next node


I guess the sequence of node names that is returned in step 1 will need to 
be meaningful in order to ensure the right action is applied to the right 
node.

Alternatively, step 2 can look for a match on the first part of the node 
name (a string), and then execute the appropriate action for the matching 
prefix.

Is this feasible?


Thanks again


-Steve B


On Wednesday, January 2, 2019 at 2:23:47 PM UTC-5, [email protected] wrote:

> Hi
> Ansible supports netconf-rpc module allowing RPC operations to NETCONF 
> devices
> Does Ansible also support actions to NETCONF devices?
>
> From RFC 7950:
>
>    The difference between an action and an rpc is that an action is tied
>    to a node in the datastore, whereas an rpc is not.  When an action is
>    invoked, the node in the datastore is specified along with the name
>    of the action and the input parameters.
>
> Thank you
> Regards
> Steve
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6b644284-1b5f-4cb5-acbb-c42506808269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to