# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=231

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

**Page:** 232

---

## [Help with pamd module](https://forum.ansible.com/t/help-with-pamd-module/28698)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 2:55pm UTC](https://forum.ansible.com/t/help-with-pamd-module/28698 "2018-10-02T14:55:45Z")

</div>

All, I’m fairly new to ansible and have been following the ansible documentation but am having trouble with the pamd module and hope someone can help shed some light. Here is my current task in my playbook: name: “\[R…

---

## [Kerberized SSH using a Keytab file](https://forum.ansible.com/t/kerberized-ssh-using-a-keytab-file/28645)

<div class="topic-metadata">

**Author:** [@Peter\_Horvath](https://forum.ansible.com/u/Peter_Horvath)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 2:11pm UTC](https://forum.ansible.com/t/kerberized-ssh-using-a-keytab-file/28645 "2018-10-02T14:11:19Z")

</div>

Hi All, I have a setup where both the Ansible command machine itself and all the managed nodes are running Linux. They are part of Kerberos realm and I would like to use a directory user for Ansible SSH connections, au…

---

## [set\_fact](https://forum.ansible.com/t/set-fact/28687)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 3\
**Last updated:** [October 2, 2018, 4:26am UTC](https://forum.ansible.com/t/set-fact/28687 "2018-10-02T04:26:30Z")

</div>

Hi, I am trying to create a role in which i have variable file ( main.yml) under vars folder containing

---

## [Hello, I'm starting with Ansible and I have a question about the Playbook](https://forum.ansible.com/t/hello-im-starting-with-ansible-and-i-have-a-question-about-the-playbook/28702)

<div class="topic-metadata">

**Author:** [@Vinicius\_Barreto](https://forum.ansible.com/u/Vinicius_Barreto)\
**Replies:** 7\
**Last updated:** [October 1, 2018, 9:01pm UTC](https://forum.ansible.com/t/hello-im-starting-with-ansible-and-i-have-a-question-about-the-playbook/28702 "2018-10-01T21:01:02Z")

</div>

Hello, I’m starting with Ansible and I have a question about the Playbook: Assuming that I create a configuration deployment / update recipe for the \[web servers\] group, and put it on the new “clean” server in this grou…

---

## [custom module, how to locate ansible magic vars](https://forum.ansible.com/t/custom-module-how-to-locate-ansible-magic-vars/28683)

<div class="topic-metadata">

**Author:** [@Adolphson](https://forum.ansible.com/u/Adolphson)\
**Replies:** 5\
**Last updated:** [October 1, 2018, 7:41pm UTC](https://forum.ansible.com/t/custom-module-how-to-locate-ansible-magic-vars/28683 "2018-10-01T19:41:17Z")

</div>

I am trying to write my first custom module and cannot find how to locate an ansible var that is not part of the task parameters sent. For example, let’s say I want to find the ansible\_ssh\_host or inventory\_hostname and …

---

## [CentOS(Ansible2.5) --\> Jump/Bastion Server--\> Inventory](https://forum.ansible.com/t/centos-ansible2-5-jump-bastion-server-inventory/28649)

<div class="topic-metadata">

**Author:** [@Love](https://forum.ansible.com/u/Love)\
**Replies:** 5\
**Last updated:** [October 1, 2018, 5:59pm UTC](https://forum.ansible.com/t/centos-ansible2-5-jump-bastion-server-inventory/28649 "2018-10-01T17:59:17Z")

</div>

Hello Experts, Could you please help me how to use Ansible through a Jump/Bastion Server? My desktop (CentOS 7.5) is installed with Ansible 2.5 and I cannot install Ansible on Jump/Bastion server, what are the configura…

---

## [Comment yml file to conf using jinja2 templating](https://forum.ansible.com/t/comment-yml-file-to-conf-using-jinja2-templating/28699)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 5:44pm UTC](https://forum.ansible.com/t/comment-yml-file-to-conf-using-jinja2-templating/28699 "2018-10-01T17:44:00Z")

</div>

I have a yml as a list of dictionary like sample below : Section1 : - { k1 : V1 , K2 : V2 } Section2 : - { k1 : V1 , K2 : V2 , K3 : V3 } In my yml file the actual section names keeps varying. They're of very dif…

---

## [Creating playbook to deal with multiple possible login names (Fallback login)](https://forum.ansible.com/t/creating-playbook-to-deal-with-multiple-possible-login-names-fallback-login/28695)

<div class="topic-metadata">

**Author:** [@Daniel3](https://forum.ansible.com/u/Daniel3)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 5:23pm UTC](https://forum.ansible.com/t/creating-playbook-to-deal-with-multiple-possible-login-names-fallback-login/28695 "2018-10-01T17:23:11Z")

</div>

I need to run automation against many hosts. Some use login “A”, some use login “B”. Passwords are the same. How can I get ansible to try a secondary login based on login failure? I’ve written a playbook to try mul…

---

## [Got an error using shell module in playbook, 'Could not find or access to "path/to/the/shell/script"](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696)

<div class="topic-metadata">

**Author:** [@chaithuinedi222](https://forum.ansible.com/u/chaithuinedi222)\
**Replies:** 4\
**Last updated:** [October 1, 2018, 4:22pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696 "2018-10-01T16:22:15Z")

</div>

Hi guys, Good morning, This is Chaithanya. i got the above error, even i mention remote\_src: yes

---

## [info](https://forum.ansible.com/t/info/28697)

<div class="topic-metadata">

**Author:** [@Brad2](https://forum.ansible.com/u/Brad2)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 4:13pm UTC](https://forum.ansible.com/t/info/28697 "2018-10-01T16:13:36Z")

</div>

---

## [two step process to become root](https://forum.ansible.com/t/two-step-process-to-become-root/28693)

<div class="topic-metadata">

**Author:** [@Brad2](https://forum.ansible.com/u/Brad2)\
**Replies:** 5\
**Last updated:** [October 1, 2018, 1:49pm UTC](https://forum.ansible.com/t/two-step-process-to-become-root/28693 "2018-10-01T13:49:32Z")

</div>

I’m looking for suggestions on how to add a two step login/switch to root to work within ansible. I’m restricted to logining in to a server with my normal sid. After that is accomplished, I then use su to switch to anoth…

---

## [Variable indirection](https://forum.ansible.com/t/variable-indirection/28644)

<div class="topic-metadata">

**Author:** [@erichymowitz](https://forum.ansible.com/u/erichymowitz)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 11:52am UTC](https://forum.ansible.com/t/variable-indirection/28644 "2018-10-01T11:52:03Z")

</div>

Greetings. I feel like I’ve done this before, but for some reason, I can’t figure it out. I’ve got two hashes defined. password\_change: cobbler: \[ ebhpw \] cougar: \[ ehymowitz \] password\_groups: ebhpw: ehymowitz T…

---

## [mySQL doesnt install on AWS EC2](https://forum.ansible.com/t/mysql-doesnt-install-on-aws-ec2/28690)

<div class="topic-metadata">

**Author:** [@adrian\_lee](https://forum.ansible.com/u/adrian_lee)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 10:16am UTC](https://forum.ansible.com/t/mysql-doesnt-install-on-aws-ec2/28690 "2018-10-01T10:16:34Z")

</div>

I have 2 EC2 server instances where 1 I am using ansible to install mysql on the other ec2 instance. ISSUE TYPE Bug Report COMPONENT NAME- Installing mySQL on AWS EC2 Linux ANSIBLE VERSION ansible 2.6.5 CONFIGURATION S…

---

## [Ansible nested loop using index.](https://forum.ansible.com/t/ansible-nested-loop-using-index/28663)

<div class="topic-metadata">

**Author:** [@Lionel\_H](https://forum.ansible.com/u/Lionel_H)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 9:00am UTC](https://forum.ansible.com/t/ansible-nested-loop-using-index/28663 "2018-10-01T09:00:42Z")

</div>

Hi all, Hope I will find the information here :slight\_smile: I need to loop over 2 lists, the first one is just a list of Integers, things get tricky here because the second list needs the input from the first list to …

---

## [Task need to be skipped by default by passing extra vars](https://forum.ansible.com/t/task-need-to-be-skipped-by-default-by-passing-extra-vars/28662)

<div class="topic-metadata">

**Author:** [@Kunalsing\_Thakur](https://forum.ansible.com/u/Kunalsing_Thakur)\
**Replies:** 12\
**Last updated:** [October 1, 2018, 7:22am UTC](https://forum.ansible.com/t/task-need-to-be-skipped-by-default-by-passing-extra-vars/28662 "2018-10-01T07:22:23Z")

</div>

SUMMARY When i want to use specific tag in playbook from role it will run all task which is defined in role. ISSUE TYPE Bug Report COMPONENT NAME ansible-core ANSIBLE VERSION ansible 2.6.1 config file = /etc/ansible/…

---

## [how to access dictionary key and value from group\_vars it is not working](https://forum.ansible.com/t/how-to-access-dictionary-key-and-value-from-group-vars-it-is-not-working/28688)

<div class="topic-metadata">

**Author:** [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 4:03am UTC](https://forum.ansible.com/t/how-to-access-dictionary-key-and-value-from-group-vars-it-is-not-working/28688 "2018-10-01T04:03:59Z")

</div>

group\_vars/vars.yml \[root@master mywork\]# cat group\_vars/vars

---

## [getting error when i set ssh-agent for root user](https://forum.ansible.com/t/getting-error-when-i-set-ssh-agent-for-root-user/28685)

<div class="topic-metadata">

**Author:** [@pranay\_varankar](https://forum.ansible.com/u/pranay_varankar)\
**Replies:** 11\
**Last updated:** [October 1, 2018, 1:37am UTC](https://forum.ansible.com/t/getting-error-when-i-set-ssh-agent-for-root-user/28685 "2018-10-01T01:37:43Z")

</div>

Hi, I need to add ssh-agent for root user. so I use below command through ansible task but getting an error. eval ssh-agent -s && ssh-add ~/.ssh/id\_rsa" please give me task to perform below command on my target machin…

---

## [Ansible 2.6.5 is available](https://forum.ansible.com/t/ansible-2-6-5-is-available/28682)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 11:33pm UTC](https://forum.ansible.com/t/ansible-2-6-5-is-available/28682 "2018-09-28T23:33:52Z")

</div>

Hi all – we’re happy to announce that the general release of Ansible 2.6.5 is now available! How do you get it?

---

## [Expect module won't timeout properly](https://forum.ansible.com/t/expect-module-wont-timeout-properly/28653)

<div class="topic-metadata">

**Author:** [@Guillaume\_Jeanne](https://forum.ansible.com/u/Guillaume_Jeanne)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 8:37pm UTC](https://forum.ansible.com/t/expect-module-wont-timeout-properly/28653 "2018-09-28T20:37:28Z")

</div>

Hey, I have a script that i want to use with ansible. This script asks questions so I’m trying to use the expect module as below : name: Answer in term to the openvpn script to configure it expect: command: ./{{ scr…

---

## [Issue connecting to CLI on storage device](https://forum.ansible.com/t/issue-connecting-to-cli-on-storage-device/28678)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 7:56pm UTC](https://forum.ansible.com/t/issue-connecting-to-cli-on-storage-device/28678 "2018-09-28T19:56:36Z")

</div>

You need to use the expect module.

---

## [Copy file with sudo; sudo /bin/sh not allowed](https://forum.ansible.com/t/copy-file-with-sudo-sudo-bin-sh-not-allowed/28675)

<div class="topic-metadata">

**Author:** [@Nicola\_Apicella](https://forum.ansible.com/u/Nicola_Apicella)\
**Replies:** 17\
**Last updated:** [September 28, 2018, 7:32pm UTC](https://forum.ansible.com/t/copy-file-with-sudo-sudo-bin-sh-not-allowed/28675 "2018-09-28T19:32:27Z")

</div>

Hi, I am sorry for the newbie question, I ve just started looking into Ansible but I did not find any info in the docs or anywhere else that could help me find a resolution. I have a bunch of hosts on which I have sudo…

---

## [Unable to process the JSON request in POST method](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677)

<div class="topic-metadata">

**Author:** [@Shyam](https://forum.ansible.com/u/Shyam)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 7:07pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677 "2018-09-28T19:07:20Z")

</div>

Hi, Unable process the JSON request in POST method can any one help.

---

## [Unable to run .exe file](https://forum.ansible.com/t/unable-to-run-exe-file/28673)

<div class="topic-metadata">

**Author:** [@Karthik\_Chandrasheka](https://forum.ansible.com/u/Karthik_Chandrasheka)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 4:44pm UTC](https://forum.ansible.com/t/unable-to-run-exe-file/28673 "2018-09-28T16:44:54Z")

</div>

Hi everyone, Need help in understanding below error message and how to fix it. I am trying to run a .exe file using ansible tried ( raw, win\_shell and win\_command ) but, all end up throwing same error. FAILED! =\> {“ch…

---

## [Ansible Python Module Error.](https://forum.ansible.com/t/ansible-python-module-error/28660)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 3\
**Last updated:** [September 28, 2018, 2:10pm UTC](https://forum.ansible.com/t/ansible-python-module-error/28660 "2018-09-28T14:10:42Z")

</div>

Hi All, if i give os.path.dirname(os.path.abspath(os.path.realpath(ansible.file))) command in python terminal will give me “/usr/lib/python2.7/site-packages/ansible” but if same command i write in own ansible python mo…

---

## [cant execute bashfile using ansible](https://forum.ansible.com/t/cant-execute-bashfile-using-ansible/28637)

<div class="topic-metadata">

**Author:** [@vivek\_mv](https://forum.ansible.com/u/vivek_mv)\
**Replies:** 15\
**Last updated:** [September 28, 2018, 11:51am UTC](https://forum.ansible.com/t/cant-execute-bashfile-using-ansible/28637 "2018-09-28T11:51:23Z")

</div>

Hi Experts, I am automating IBM CLM application and i would need to run the application default .bat file for starting the server. Eg: (server.startup.bat). I tried with win\_command, script and win\_shell modules and its…

---

## [Ansible Support for IBM AIX Platform](https://forum.ansible.com/t/ansible-support-for-ibm-aix-platform/28672)

<div class="topic-metadata">

**Author:** [@Sairam\_Krishna\_Lakko](https://forum.ansible.com/u/Sairam_Krishna_Lakko)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 2:11am UTC](https://forum.ansible.com/t/ansible-support-for-ibm-aix-platform/28672 "2018-09-28T02:11:48Z")

</div>

Hey, Looking for pointers if ansible has support for AIX platform

---

## [Ansible 2.5.10 is available](https://forum.ansible.com/t/ansible-2-5-10-is-available/28669)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [September 28, 2018, 12:14am UTC](https://forum.ansible.com/t/ansible-2-5-10-is-available/28669 "2018-09-28T00:14:54Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.10 is now available! How do you get it?

---

## [One server is slow to respond to ansible (but does) gather\_facts](https://forum.ansible.com/t/one-server-is-slow-to-respond-to-ansible-but-does-gather-facts/28070)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 7\
**Last updated:** [September 27, 2018, 8:19pm UTC](https://forum.ansible.com/t/one-server-is-slow-to-respond-to-ansible-but-does-gather-facts/28070 "2018-09-27T20:19:47Z")

</div>

Just trying to track down what changed on a server. I will run a playbook against 20-30 servers and all of them (configured the same with ansible) respond quickly to gather\_facts; however, just one server takes its own s…

---

## [Why is ConfigureRemotingForAnsible.ps1 not suitable for production?](https://forum.ansible.com/t/why-is-configureremotingforansible-ps1-not-suitable-for-production/28661)

<div class="topic-metadata">

**Author:** [@swinickitom](https://forum.ansible.com/u/swinickitom)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 7:35pm UTC](https://forum.ansible.com/t/why-is-configureremotingforansible-ps1-not-suitable-for-production/28661 "2018-09-27T19:35:15Z")

</div>

The ConfigureRemotingForAnsible.ps1 file to setup Windows hosts for Ansible is not suitable for production according to the documentation. Why is it not suitable for production and what can I tweak in the file to make it…

---

## [Starting Stopped AWS EC2 Instances from Ansible Tower](https://forum.ansible.com/t/starting-stopped-aws-ec2-instances-from-ansible-tower/28665)

<div class="topic-metadata">

**Author:** [@John\_Peters](https://forum.ansible.com/u/John_Peters)\
**Replies:** 1\
**Last updated:** [September 27, 2018, 3:52pm UTC](https://forum.ansible.com/t/starting-stopped-aws-ec2-instances-from-ansible-tower/28665 "2018-09-27T15:52:29Z")

</div>

Any clue as to how to accomplish this? My Ansible Tower inventory has a list of hosts in it, all in ‘stopped’ state. I’d like to use that inventory, assign it to a playbook, that will loop through each machine in the i…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=230)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=232)
