# Ansible Project

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

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

**Page:** 295

---

## [Using shell or command to do  git operation fails half the time](https://forum.ansible.com/t/using-shell-or-command-to-do-git-operation-fails-half-the-time/26188)

<div class="topic-metadata">

**Author:** [@Michael\_Bushey](https://forum.ansible.com/u/Michael_Bushey)\
**Replies:** 1\
**Last updated:** [December 5, 2017, 11:27pm UTC](https://forum.ansible.com/t/using-shell-or-command-to-do-git-operation-fails-half-the-time/26188 "2017-12-05T23:27:57Z")

</div>

I am doing a git fetch (also git merge master) on the remote machines. It seems random whether it will work or not. I get errors like: “error fetching identities for protocol 2: communication with agent failed” or “fatal…

---

## [Using sudo with pam-ssh-agent-auth after sudo\_flags is removed?](https://forum.ansible.com/t/using-sudo-with-pam-ssh-agent-auth-after-sudo-flags-is-removed/26209)

<div class="topic-metadata">

**Author:** [@Chris\_Pick](https://forum.ansible.com/u/Chris_Pick)\
**Replies:** 3\
**Last updated:** [December 5, 2017, 9:46pm UTC](https://forum.ansible.com/t/using-sudo-with-pam-ssh-agent-auth-after-sudo-flags-is-removed/26209 "2017-12-05T21:46:04Z")

</div>

In my project’s “ansible.cfg” I set “sudo\_flags = -H -S” to remove the “-n” option so that sudo works with pam-ssh-agent-auth (as suggested in this issue and in the docs). When I run ansible-playbook (version 2.4.2.0) i…

---

## [Ansible Host Machine Query](https://forum.ansible.com/t/ansible-host-machine-query/26206)

<div class="topic-metadata">

**Author:** [@Tsatish\_Kumar](https://forum.ansible.com/u/Tsatish_Kumar)\
**Replies:** 1\
**Last updated:** [December 5, 2017, 9:18pm UTC](https://forum.ansible.com/t/ansible-host-machine-query/26206 "2017-12-05T21:18:48Z")

</div>

Hi Team, Can any one let me know, whether is it possible to Manage 2 Service providers (AWS & Azure) with Single Ansible Host(Controller) hosted in AWS. Thanks & Regards, Satish

---

## [SSH Connection fails. Permission denied. Publickey, keyboard-interactive](https://forum.ansible.com/t/ssh-connection-fails-permission-denied-publickey-keyboard-interactive/26208)

<div class="topic-metadata">

**Author:** [@Gene\_Stanilevskiy](https://forum.ansible.com/u/Gene_Stanilevskiy)\
**Replies:** 1\
**Last updated:** [December 5, 2017, 9:02pm UTC](https://forum.ansible.com/t/ssh-connection-fails-permission-denied-publickey-keyboard-interactive/26208 "2017-12-05T21:02:00Z")

</div>

Hi All, New to Ansible. New to the group. Trying to run some basic commands against my VMware environment and thought I would start with vmware\_facts. ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configu…

---

## [How to configure audible not to use MD5?](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205)

<div class="topic-metadata">

**Author:** [@Veena](https://forum.ansible.com/u/Veena)\
**Replies:** 7\
**Last updated:** [December 5, 2017, 6:49pm UTC](https://forum.ansible.com/t/how-to-configure-audible-not-to-use-md5/26205 "2017-12-05T18:49:30Z")

</div>

By default ansible uses MD5 for all the modules. I should run ansible on a node where MD5 is not allowed. I could find a way for “copy” and “stat” by giving get\_md5=no, but there’s no alternative or workaround for “templ…

---

## [I cant create a simple .txt file using ansible.](https://forum.ansible.com/t/i-cant-create-a-simple-txt-file-using-ansible/26197)

<div class="topic-metadata">

**Author:** [@Muhammad\_Mahir](https://forum.ansible.com/u/Muhammad_Mahir)\
**Replies:** 4\
**Last updated:** [December 5, 2017, 7:52am UTC](https://forum.ansible.com/t/i-cant-create-a-simple-txt-file-using-ansible/26197 "2017-12-05T07:52:52Z")

</div>

Hello there, I just want to test my script if it creates a simple .txt file into a destination put instead it is creating that same file into the source vm that is where the ansible is installed. Here is the simple scr…

---

## [How to create a big inventpry file in ansible](https://forum.ansible.com/t/how-to-create-a-big-inventpry-file-in-ansible/26112)

<div class="topic-metadata">

**Author:** [@parwinderjit\_singh](https://forum.ansible.com/u/parwinderjit_singh)\
**Replies:** 5\
**Last updated:** [December 5, 2017, 5:17am UTC](https://forum.ansible.com/t/how-to-create-a-big-inventpry-file-in-ansible/26112 "2017-12-05T05:17:36Z")

</div>

Hi All, I have a excel sheet which contain 1000 server hostname with there IP address. I have to create a ansible host file from that sheet. My question is, is there a east way to create a ansible host file or i have to…

---

## [Human readable Stdout ansible (2.3.0)](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882)

<div class="topic-metadata">

**Author:** [@rajeev](https://forum.ansible.com/u/rajeev)\
**Replies:** 8\
**Last updated:** [December 5, 2017, 5:12am UTC](https://forum.ansible.com/t/human-readable-stdout-ansible-2-3-0/23882 "2017-12-05T05:12:20Z")

</div>

Hello All, I am in need of your urgent help. I am new to ansible. I have installed the latest version of ansible (2.3.0). I need to run the tool across my entire UNIX environment with 10000+ hosts. The problem is wit…

---

## [using tests to match a hostname](https://forum.ansible.com/t/using-tests-to-match-a-hostname/26201)

<div class="topic-metadata">

**Author:** [@Luke\_Miller](https://forum.ansible.com/u/Luke_Miller)\
**Replies:** 1\
**Last updated:** [December 5, 2017, 1:14am UTC](https://forum.ansible.com/t/using-tests-to-match-a-hostname/26201 "2017-12-05T01:14:46Z")

</div>

I am trying to use tests to match a hostname, I want hostnames that end in the letter “d”, they are non-production hosts, here is what I have: - name: Register to Foreman Redhat non-Prod redhat\_subscription: state…

---

## [Hide with\_dict variables from playbook output](https://forum.ansible.com/t/hide-with-dict-variables-from-playbook-output/26200)

<div class="topic-metadata">

**Author:** [@Adolphson](https://forum.ansible.com/u/Adolphson)\
**Replies:** 0\
**Last updated:** [December 4, 2017, 8:22pm UTC](https://forum.ansible.com/t/hide-with-dict-variables-from-playbook-output/26200 "2017-12-04T20:22:59Z")

</div>

I have a playbook where I use a dictionary variable file and an includes\_tasks play. My issue is the playbook displays the variables when it is run. I tried no\_log: True and ignore\_errors: True but makes no difference. I…

---

## [Error when running included playbook](https://forum.ansible.com/t/error-when-running-included-playbook/26199)

<div class="topic-metadata">

**Author:** [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Replies:** 0\
**Last updated:** [December 4, 2017, 7:44pm UTC](https://forum.ansible.com/t/error-when-running-included-playbook/26199 "2017-12-04T19:44:14Z")

</div>

Hi everyone, I’m receiving this weird error when running the second playbook (with include module and passing IP address). Here is my first playbook:

---

## [Upgrading a list of packages from local .deb files](https://forum.ansible.com/t/upgrading-a-list-of-packages-from-local-deb-files/26198)

<div class="topic-metadata">

**Author:** [@Andrey\_Agenosov](https://forum.ansible.com/u/Andrey_Agenosov)\
**Replies:** 0\
**Last updated:** [December 4, 2017, 2:30pm UTC](https://forum.ansible.com/t/upgrading-a-list-of-packages-from-local-deb-files/26198 "2017-12-04T14:30:02Z")

</div>

Hello, I have the issue with upgrading our product on Debian-based systems. We have already installed packages of the version, for example, 2.0. There are several packages and some of it depend of the other. When I’m t…

---

## [Galaxy web site maintenance - 4 December 2017 @ 6:00 AM Eastern](https://forum.ansible.com/t/galaxy-web-site-maintenance-4-december-2017-6-00-am-eastern/26186)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 1\
**Last updated:** [December 4, 2017, 11:54am UTC](https://forum.ansible.com/t/galaxy-web-site-maintenance-4-december-2017-6-00-am-eastern/26186 "2017-12-04T11:54:54Z")

</div>

We’ll be doing some minor maintenance to the Galaxy web site on 4-Dec-2017 between 6:00 AM and 7:00 AM Eastern. Be aware that during this window it is possible that role imports and downloads may be interrupted. We’ll …

---

## [ansible win\_updates output](https://forum.ansible.com/t/ansible-win-updates-output/26182)

<div class="topic-metadata">

**Author:** [@area0](https://forum.ansible.com/u/area0)\
**Replies:** 10\
**Last updated:** [December 4, 2017, 7:41am UTC](https://forum.ansible.com/t/ansible-win-updates-output/26182 "2017-12-04T07:41:11Z")

</div>

Hi guys, I’m trying to return the following message; i basically want to display the following message and only list the ‘title’ field for the available update. The message should read; " host1 has 12 updates available…

---

## [How Ansible Works? And Use of Ansible](https://forum.ansible.com/t/how-ansible-works-and-use-of-ansible/26196)

<div class="topic-metadata">

**Author:** [@lucielina02](https://forum.ansible.com/u/lucielina02)\
**Replies:** 0\
**Last updated:** [December 4, 2017, 6:18am UTC](https://forum.ansible.com/t/how-ansible-works-and-use-of-ansible/26196 "2017-12-04T06:18:35Z")

</div>

Ansible Works? There are many similar automation tools available like Puppet, Capistrano, Chef, Salt, Space Walk etc, but Ansible categorize into two types of server: controlling machines and nodes. The controlling mac…

---

## [galaxy init command](https://forum.ansible.com/t/galaxy-init-command/26195)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 0\
**Last updated:** [December 4, 2017, 5:25am UTC](https://forum.ansible.com/t/galaxy-init-command/26195 "2017-12-04T05:25:55Z")

</div>

Ansible init is not creating the file and template directory. Trying to run the below command to create vsftp role locally but it is not creating the complete directory structure. $ansible-galaxy init --offline vsftp I…

---

## [remote\_user on task is not working, how can I get troubleshooting information?](https://forum.ansible.com/t/remote-user-on-task-is-not-working-how-can-i-get-troubleshooting-information/26193)

<div class="topic-metadata">

**Author:** [@gordonmessmer](https://forum.ansible.com/u/gordonmessmer)\
**Replies:** 4\
**Last updated:** [December 3, 2017, 6:22pm UTC](https://forum.ansible.com/t/remote-user-on-task-is-not-working-how-can-i-get-troubleshooting-information/26193 "2017-12-03T18:22:33Z")

</div>

I have a task defined that sets “remote\_user” which has mysteriously started connecting as “root” instead of my own user account. I’ve been using this task for some time, and haven’t made any changes that appear relevant…

---

## [ansible to SSH to a remote host sits behind a web proxy](https://forum.ansible.com/t/ansible-to-ssh-to-a-remote-host-sits-behind-a-web-proxy/26194)

<div class="topic-metadata">

**Author:** [@anoop\_vc](https://forum.ansible.com/u/anoop_vc)\
**Replies:** 0\
**Last updated:** [December 3, 2017, 12:16pm UTC](https://forum.ansible.com/t/ansible-to-ssh-to-a-remote-host-sits-behind-a-web-proxy/26194 "2017-12-03T12:16:05Z")

</div>

Hi, I can access a host only through a web proxy using the host’s pubic ip adress. How to run tasks against that server. ansible controller node name : AnsibleHost remote server name : remotehost webproxy: proxy.com:…

---

## [do post\_tasks execute when a role fails?](https://forum.ansible.com/t/do-post-tasks-execute-when-a-role-fails/23153)

<div class="topic-metadata">

**Author:** [@sergio.guillen](https://forum.ansible.com/u/sergio.guillen)\
**Replies:** 6\
**Last updated:** [December 3, 2017, 11:51am UTC](https://forum.ansible.com/t/do-post-tasks-execute-when-a-role-fails/23153 "2017-12-03T11:51:15Z")

</div>

Hi, I created a role that has a rescue block where role is marked as failed: \` — #myrole block: … rescue: fail: msg=‘some message’ #mark as fail ansible\_failed\_task is defined \` On my playbook the idea is to send…

---

## [Iterate through every group/host pair but won't work with 'groups'](https://forum.ansible.com/t/iterate-through-every-group-host-pair-but-wont-work-with-groups/26192)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 0\
**Last updated:** [December 2, 2017, 6:30pm UTC](https://forum.ansible.com/t/iterate-through-every-group-host-pair-but-wont-work-with-groups/26192 "2017-12-02T18:30:21Z")

</div>

I don’t think Ansible will work with this scenario. I want to iterate through every ansible role and host as a flat index. Right now the groups variable is what I’m focused on. Which is: group0: host0 host1 g…

---

## [Ansible Galaxy pip Dependencies](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190)

<div class="topic-metadata">

**Author:** [@Andrew\_Vaughan](https://forum.ansible.com/u/Andrew_Vaughan)\
**Replies:** 1\
**Last updated:** [December 2, 2017, 3:10pm UTC](https://forum.ansible.com/t/ansible-galaxy-pip-dependencies/26190 "2017-12-02T15:10:06Z")

</div>

Hello all, I have a plugin that’s included with a role I intend for Ansible Galaxy. https://galaxy.ansible.com/andrewvaughan/ansible-prompt/ I need, in this case, to have a Python pip dependency installed in order for…

---

## [generate template once for group of hosts](https://forum.ansible.com/t/generate-template-once-for-group-of-hosts/26191)

<div class="topic-metadata">

**Author:** [@tomr](https://forum.ansible.com/u/tomr)\
**Replies:** 1\
**Last updated:** [December 2, 2017, 5:19am UTC](https://forum.ansible.com/t/generate-template-once-for-group-of-hosts/26191 "2017-12-02T05:19:03Z")

</div>

My understanding is that ansible normally generates a file from a template once per host. Is it possible, when I know in advance that a file will be identical for all hosts in a group, to generate it only once? Thanks, …

---

## [hosts\_vars subdirectories](https://forum.ansible.com/t/hosts-vars-subdirectories/26184)

<div class="topic-metadata">

**Author:** [@Vincent\_G](https://forum.ansible.com/u/Vincent_G)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 11:48pm UTC](https://forum.ansible.com/t/hosts-vars-subdirectories/26184 "2017-12-01T23:48:52Z")

</div>

Hi folks, Is there a way to organize the host\_vars directory into subdirectories ? If not, where to ask for it ? We have a large number of hosts (500+) and our usage actually suffer from this flat organization. I wou…

---

## [block with with\_items for bulk DNS registration of hosts?](https://forum.ansible.com/t/block-with-with-items-for-bulk-dns-registration-of-hosts/26189)

<div class="topic-metadata">

**Author:** [@burton](https://forum.ansible.com/u/burton)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 9:25pm UTC](https://forum.ansible.com/t/block-with-with-items-for-bulk-dns-registration-of-hosts/26189 "2017-12-01T21:25:01Z")

</div>

I have a dictionary of DNS host names that I need to register. They’re higher level than just a host as I need to do cleanup too of older DNS names. My idea was to have a block with a look which first tests via ‘dig’ t…

---

## [Ansible check directory](https://forum.ansible.com/t/ansible-check-directory/26187)

<div class="topic-metadata">

**Author:** [@Bhautik\_K](https://forum.ansible.com/u/Bhautik_K)\
**Replies:** 0\
**Last updated:** [December 1, 2017, 7:45pm UTC](https://forum.ansible.com/t/ansible-check-directory/26187 "2017-12-01T19:45:51Z")

</div>

I have try below task to check if directory is exist but not able to run.

---

## [Compare files on two different remote hosts](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26179)

<div class="topic-metadata">

**Author:** [@jasontapp](https://forum.ansible.com/u/jasontapp)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 4:30pm UTC](https://forum.ansible.com/t/compare-files-on-two-different-remote-hosts/26179 "2017-12-01T16:30:03Z")

</div>

Does anyone know of a way to compare a file that resides on two separate hosts before and/or after a deployment? Meaning, I want to compare foo.conf on host1 against foo.conf on host2. If there are disparities, then list…

---

## [post\_tasks did not run for all hosts after 1 host failed block in role](https://forum.ansible.com/t/post-tasks-did-not-run-for-all-hosts-after-1-host-failed-block-in-role/26162)

<div class="topic-metadata">

**Author:** [@Daniel\_Leonard](https://forum.ansible.com/u/Daniel_Leonard)\
**Replies:** 1\
**Last updated:** [December 1, 2017, 12:04am UTC](https://forum.ansible.com/t/post-tasks-did-not-run-for-all-hosts-after-1-host-failed-block-in-role/26162 "2017-12-01T00:04:02Z")

</div>

Hi guys, Ran a playbook against 2 hosts: host1 and host2 Extract of playbook: roles: role: a role: b role: c post\_tasks: name: Post Task 1 :::::::::::::::::::::::::: name: Post Task 2 ::::::::::::::::::::::::…

---

## [ansible - index counter with "with\_item"](https://forum.ansible.com/t/ansible-index-counter-with-with-item/26177)

<div class="topic-metadata">

**Author:** [@Moris\_Amar](https://forum.ansible.com/u/Moris_Amar)\
**Replies:** 1\
**Last updated:** [November 30, 2017, 7:51pm UTC](https://forum.ansible.com/t/ansible-index-counter-with-with-item/26177 "2017-11-30T19:51:12Z")

</div>

Hi, I want to have a counter (incrementation) in “with\_items” in order to look over a list (index). ec2\_metric\_alarm: … description: ‘{{ item.ec2\_alarm\_description }}’ dimensions: ‘{{item.ec2\_alarm\_dimensions }}’ a…

---

## [how to get all the details](https://forum.ansible.com/t/how-to-get-all-the-details/26148)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 8\
**Last updated:** [November 30, 2017, 5:09pm UTC](https://forum.ansible.com/t/how-to-get-all-the-details/26148 "2017-11-30T17:09:48Z")

</div>

IS there is a way that we can get the name of all network interfaces as we have ansible\_default\_ipv4.interface gives only the primary one . Need to get all the interface name so that a parameter can be modified for it.

---

## [Help on vmware\_vm\_shell module](https://forum.ansible.com/t/help-on-vmware-vm-shell-module/26176)

<div class="topic-metadata">

**Author:** [@A.PRADEEP\_ANNAMALAI](https://forum.ansible.com/u/A.PRADEEP_ANNAMALAI)\
**Replies:** 0\
**Last updated:** [November 30, 2017, 12:44pm UTC](https://forum.ansible.com/t/help-on-vmware-vm-shell-module/26176 "2017-11-30T12:44:26Z")

</div>

Hi I am using vmware\_vm\_shell module as below to execute commands in VMs in ESXI hosts . if it is a matter of 2 or 3 esxi servers , it is easier to prepare a yaml list or dictionary as a vars file and use it in the modu…

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

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