# Basic question about Ansible playbook

**URL:** <https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648>\
**Category:** Get Help\
**Tags:** aws\
**Created:** [September 20, 2024, 6:32am UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648 "2024-09-20T06:32:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GCP\_CA](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gcp_ca/32/4815_2.png) [@GCP\_CA](https://forum.ansible.com/u/GCP_CA)\
**Post date:** [September 20, 2024, 6:32am UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/1 "2024-09-20T06:32:17Z")

</div>

I want to execute a few tasks on the managed nodes. I connected to a linux server, controller node. I want to run a playbook which has some AWS RDS CLI commands with jq (Run the command, store it in S3 and copy the output on all the managed nodes). Does all the managed nodes have AWS CLI and jq installed & configured? I assume that’s not the case.

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [September 20, 2024, 1:49pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/2 "2024-09-20T13:49:56Z")

</div>

Unless there is a specific need to run those commands from the target host itself, you can `delegate_to: localhost` and just have the requirements on the controller. This is common with service/web/http API based modules, since you are normally contacting a site/service that is normally accessible from anywhere, not just the target host.

---

<div class="post-metadata">

**Author:** ![GCP\_CA](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gcp_ca/32/4815_2.png) [@GCP\_CA](https://forum.ansible.com/u/GCP_CA)\
**Post date:** [September 20, 2024, 4:58pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/3 "2024-09-20T16:58:02Z")

</div>

I ran it. It throws an error, no such file or directory b’aws’

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [September 20, 2024, 5:01pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/4 "2024-09-20T17:01:42Z")

</div>

I you need help with a specific task/error you normally wan to post both the task and the -vvv output. In any case, if you are calling a command (`aws` in this case) it needs to be installed the machine you execute the action on and accessible by the user executing the action.

---

<div class="post-metadata">

**Author:** ![GCP\_CA](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gcp_ca/32/4815_2.png) [@GCP\_CA](https://forum.ansible.com/u/GCP_CA)\
**Post date:** [September 20, 2024, 5:10pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/5 "2024-09-20T17:10:58Z")

</div>

> [@GCP\_CA](#):
>
> Does all the managed nodes have AWS CLI and jq installed & configured?

🙂 Thank you. That’s what my initial question. “Does all the managed nodes have AWS CLI and jq installed & configured?”

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [September 20, 2024, 5:44pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/6 "2024-09-20T17:44:19Z")

</div>

Sorry, I had misunderstood the question, as the phrasing was off, I interpreted as if it is required, not that if it is actually already installed by Ansible.

Ansible does not install or setup anything by default, you need to instruct it to do so.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [October 20, 2024, 5:44pm UTC](https://forum.ansible.com/t/basic-question-about-ansible-playbook/8648/7 "2024-10-20T17:44:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
