# How can I execute one code block from local/master/control node?

**URL:** <https://forum.ansible.com/t/how-can-i-execute-one-code-block-from-local-master-control-node/36658>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [May 25, 2022, 5:03am UTC](https://forum.ansible.com/t/how-can-i-execute-one-code-block-from-local-master-control-node/36658 "2022-05-25T05:03:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bentech4u](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bentech4u](https://forum.ansible.com/u/bentech4u)\
**Post date:** [May 25, 2022, 5:03am UTC](https://forum.ansible.com/t/how-can-i-execute-one-code-block-from-local-master-control-node/36658/1 "2022-05-25T05:03:54Z")

</div>

I would like to execute the below tasks which create a user on a remote host and trigger an SMS gateway call from master/control node.

This is running from awx/(tower) where I get some of the parameters through an AWX survey.

---

<div class="post-metadata">

**Author:** ![bentech4u](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@bentech4u](https://forum.ansible.com/u/bentech4u)\
**Post date:** [May 26, 2022, 11:16am UTC](https://forum.ansible.com/t/how-can-i-execute-one-code-block-from-local-master-control-node/36658/2 "2022-05-26T11:16:56Z")

</div>

hello,

can anyone help me to achieve this?
