# Run Ansible via Shell Command on Remote GCP Servers

**URL:** <https://forum.ansible.com/t/run-ansible-via-shell-command-on-remote-gcp-servers/35968>\
**Category:** Ansible Project\
**Tags:** gcp\
**Created:** [November 5, 2021, 1:09am UTC](https://forum.ansible.com/t/run-ansible-via-shell-command-on-remote-gcp-servers/35968 "2021-11-05T01:09:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Shangguan](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@Philip\_Shangguan](https://forum.ansible.com/u/Philip_Shangguan)\
**Post date:** [November 5, 2021, 1:09am UTC](https://forum.ansible.com/t/run-ansible-via-shell-command-on-remote-gcp-servers/35968/1 "2021-11-05T01:09:10Z")

</div>

I have 3 Linux servers A, B and C in GCP. A is where all the developers use, B is a Ansible server that has a playbook, C is the target server that I need to run some tasks.

This is the frame of the playbook - play.yml:
