# \#ad-hoc

**URL:** https://forum.ansible.com/tag/ad-hoc/171.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [Vault variable issues](https://forum.ansible.com/t/vault-variable-issues/39300)

<div class="topic-metadata">

**Author:** [@Fracture7144](https://forum.ansible.com/u/Fracture7144)\
**Replies:** 13\
**Last updated:** [December 24, 2024, 8:05pm UTC](https://forum.ansible.com/t/vault-variable-issues/39300 "2024-12-24T20:05:06Z")

</div>

I am trying use a ansible vault variable in my role. I have the ansible vault configured in my ansible.cfg file currently. The part where I am having the issue in the role is user creation. I am giving it a password a…

---

## [What is free\_form command and cmd parameter in command module](https://forum.ansible.com/t/what-is-free-form-command-and-cmd-parameter-in-command-module/4660)

<div class="topic-metadata">

**Author:** [@aaron1989041](https://forum.ansible.com/u/aaron1989041)\
**Replies:** 13\
**Last updated:** [April 2, 2024, 11:41pm UTC](https://forum.ansible.com/t/what-is-free-form-command-and-cmd-parameter-in-command-module/4660 "2024-04-02T23:41:34Z")

</div>

when using command module " Either a free form command or cmd parameter is required". what is “free form command” and “cmd parameter”? when executing ansible localhost -m command -a "cmd=date", nothing happens.but if I…

---

## [Missing sudo password](https://forum.ansible.com/t/missing-sudo-password/4561)

<div class="topic-metadata">

**Author:** [@halavehzadeh](https://forum.ansible.com/u/halavehzadeh)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 7:32pm UTC](https://forum.ansible.com/t/missing-sudo-password/4561 "2024-03-25T19:32:20Z")

</div>

I’m trying to run ad-hoc command and use privilege access to run the command here is what I try to running : ansible localhost -m service -a "name=httpd state=started" -b -k After I enter my SSH password I get bellow m…

---

## [Ansible unable to SSH](https://forum.ansible.com/t/ansible-unable-to-ssh/986)

<div class="topic-metadata">

**Author:** [@piyush\_202](https://forum.ansible.com/u/piyush_202)\
**Replies:** 2\
**Last updated:** [September 23, 2023, 12:47pm UTC](https://forum.ansible.com/t/ansible-unable-to-ssh/986 "2023-09-23T12:47:10Z")

</div>

Hi All, I have set up passwordless authentication on my AWS instance running on RHEL 9. After restarting my machine I could see that adhoc commands are not able to ping the remote hosts. Below things I tried to check …

---

## [Ansible using root user to ping](https://forum.ansible.com/t/ansible-using-root-user-to-ping/860)

<div class="topic-metadata">

**Author:** [@piyush\_202](https://forum.ansible.com/u/piyush_202)\
**Replies:** 4\
**Last updated:** [September 21, 2023, 4:51am UTC](https://forum.ansible.com/t/ansible-using-root-user-to-ping/860 "2023-09-21T04:51:21Z")

</div>

Hi, I am new & started learning ansible. Installed and configured ansible on RHEL 9 EC2 instance. I have defined two instances in the hosts file and trying to ping them but I am getting an error. Seems ansible is using …
