# Ansible Project

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

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

**Page:** 274

---

## [Repeat a task based on a csv string from extra\_var](https://forum.ansible.com/t/repeat-a-task-based-on-a-csv-string-from-extra-var/27033)

<div class="topic-metadata">

**Author:** [@GoFigure](https://forum.ansible.com/u/GoFigure)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 6:03am UTC](https://forum.ansible.com/t/repeat-a-task-based-on-a-csv-string-from-extra-var/27033 "2018-03-19T06:03:36Z")

</div>

Hello All, There is a specific nut I am trying to crack in ansible. We want to dev a job template that add disks to and server instance. The size and number of disk will be provided as an extra\_var csv string, eg. 10,10…

---

## [\[WARNING\]: Error in vault password file loading (default)](https://forum.ansible.com/t/warning-error-in-vault-password-file-loading-default/27030)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 2\
**Last updated:** [March 19, 2018, 5:30am UTC](https://forum.ansible.com/t/warning-error-in-vault-password-file-loading-default/27030 "2018-03-19T05:30:42Z")

</div>

Hi All, Request you help, after upgrade ansible to 2.6 the password vault is not working as expected, and getting the below error, before the upgrade it was working fine without any issues. ansible-playbook /home/ansib…

---

## [reboot via ansible 2.4](https://forum.ansible.com/t/reboot-via-ansible-2-4/27004)

<div class="topic-metadata">

**Author:** [@rraka1002](https://forum.ansible.com/u/rraka1002)\
**Replies:** 4\
**Last updated:** [March 19, 2018, 5:18am UTC](https://forum.ansible.com/t/reboot-via-ansible-2-4/27004 "2018-03-19T05:18:54Z")

</div>

Hello Friends, Does anyone have experience using the reboot playbook on RHEL systems, i’m using below method and it reboots the systems but in between while system is rebooting it breaks the connection and does not wait…

---

## [Openstack instance reconfigure pointers](https://forum.ansible.com/t/openstack-instance-reconfigure-pointers/27034)

<div class="topic-metadata">

**Author:** [@GoFigure](https://forum.ansible.com/u/GoFigure)\
**Replies:** 0\
**Last updated:** [March 19, 2018, 3:30am UTC](https://forum.ansible.com/t/openstack-instance-reconfigure-pointers/27034 "2018-03-19T03:30:37Z")

</div>

Hey, I’ve been asked to look at using ansible to reconfigure openstack instance, eg add disks or change flavour (resize cpu/ram). Has anyone done something similar? looking at the docs http://docs.ansible.com/ansible/l…

---

## [How to handle "inactive" network card](https://forum.ansible.com/t/how-to-handle-inactive-network-card/26999)

<div class="topic-metadata">

**Author:** [@Julien\_Deloubes](https://forum.ansible.com/u/Julien_Deloubes)\
**Replies:** 3\
**Last updated:** [March 18, 2018, 9:20pm UTC](https://forum.ansible.com/t/how-to-handle-inactive-network-card/26999 "2018-03-18T21:20:43Z")

</div>

Hello Ansible users, i have a nice playbook that make a convenient hash table for network card like that: { “192.168.0.1”: “eth0”, “192.168.0.2”: “eth1” } Here is the playbook: set\_fact: ifaces: “{{ ifaces|defau…

---

## [Error connecting: load\_config() got an unexpected keyword argument 'config\_dict'](https://forum.ansible.com/t/error-connecting-load-config-got-an-unexpected-keyword-argument-config-dict/27028)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 0\
**Last updated:** [March 18, 2018, 9:00am UTC](https://forum.ansible.com/t/error-connecting-load-config-got-an-unexpected-keyword-argument-config-dict/27028 "2018-03-18T09:00:30Z")

</div>

Hi All, Trying to install ansible AWX and getting the below error tried to downgrade to 3.1.0 and 3.0.0 but still no luck TASK \[local\_docker : Activate postgres container\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [EC2 pair keys generation failing to show up in AWS AMI info](https://forum.ansible.com/t/ec2-pair-keys-generation-failing-to-show-up-in-aws-ami-info/27026)

<div class="topic-metadata">

**Author:** [@flynn](https://forum.ansible.com/u/flynn)\
**Replies:** 0\
**Last updated:** [March 18, 2018, 7:09am UTC](https://forum.ansible.com/t/ec2-pair-keys-generation-failing-to-show-up-in-aws-ami-info/27026 "2018-03-18T07:09:21Z")

</div>

My code works and returns the ssh fingerprint of my code and returns the keypair name… however, I do not find my created keypair name in the AWS console with newly made aws instance. This means that there’s permission er…

---

## [URI for testing web redirect](https://forum.ansible.com/t/uri-for-testing-web-redirect/27024)

<div class="topic-metadata">

**Author:** [@trg.achilles](https://forum.ansible.com/u/trg.achilles)\
**Replies:** 0\
**Last updated:** [March 17, 2018, 5:57pm UTC](https://forum.ansible.com/t/uri-for-testing-web-redirect/27024 "2018-03-17T17:57:23Z")

</div>

hello, I want to test if web redirect works first without making public. curl equivalent would be curl -LI --header 'Host: www.example.com' 'http://localhost' uri module seems to be perfect for this but struggle with …

---

## [git checkout to new branch and change back to local user](https://forum.ansible.com/t/git-checkout-to-new-branch-and-change-back-to-local-user/26982)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 6\
**Last updated:** [March 17, 2018, 2:50pm UTC](https://forum.ansible.com/t/git-checkout-to-new-branch-and-change-back-to-local-user/26982 "2018-03-17T14:50:50Z")

</div>

Hello All, Please help to find answers for two questions. I am trying to clone a remote git repo which I am able to do with git module but does anyone know how I can achieve to do git checkout -b new branch \<userna…

---

## [Getting a sudo illegal option error](https://forum.ansible.com/t/getting-a-sudo-illegal-option-error/27022)

<div class="topic-metadata">

**Author:** [@Mahendra\_Raghuwanshi](https://forum.ansible.com/u/Mahendra_Raghuwanshi)\
**Replies:** 0\
**Last updated:** [March 17, 2018, 12:45pm UTC](https://forum.ansible.com/t/getting-a-sudo-illegal-option-error/27022 "2018-03-17T12:45:46Z")

</div>

Hello I am getting below error:: fatal: \[10.237.92.134\]: FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 10.237.92.134 closed.\\r\\n”, “module\_stdout”: “sudo: illegal option \`-n’\\r\\nusage: sudo -K | …

---

## [Is it possible to make file lookup based on request from vars\_prompt?](https://forum.ansible.com/t/is-it-possible-to-make-file-lookup-based-on-request-from-vars-prompt/27020)

<div class="topic-metadata">

**Author:** [@Cyberbob](https://forum.ansible.com/u/Cyberbob)\
**Replies:** 2\
**Last updated:** [March 17, 2018, 12:14pm UTC](https://forum.ansible.com/t/is-it-possible-to-make-file-lookup-based-on-request-from-vars-prompt/27020 "2018-03-17T12:14:56Z")

</div>

Hello team, I have some playbook and csv file. Inside of this playbook i have vars\_prompt module and inside os csv file i have a lot of vars items. For example: playbook (just vars\_prompt section) \` vars\_prompt: na…

---

## [yum throws error if you give it a mix of sources](https://forum.ansible.com/t/yum-throws-error-if-you-give-it-a-mix-of-sources/27021)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 0\
**Last updated:** [March 17, 2018, 9:46am UTC](https://forum.ansible.com/t/yum-throws-error-if-you-give-it-a-mix-of-sources/27021 "2018-03-17T09:46:59Z")

</div>

This works: \` name: “Enable repos” yum: name: “{{ item }}” state: present with\_items: https://fedorapeople.org/groups/katello/releases/yum/3.4/katello/el7/x86\_64/katello-repos-latest.rpm https://yum.theforeman.org…

---

## [Ansible Documentation : French Translation](https://forum.ansible.com/t/ansible-documentation-french-translation/27012)

<div class="topic-metadata">

**Author:** [@Kitslap](https://forum.ansible.com/u/Kitslap)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 6:26pm UTC](https://forum.ansible.com/t/ansible-documentation-french-translation/27012 "2018-03-16T18:26:02Z")

</div>

Hello everybody, I’m french, and actually we can’t find many Ansible docs in french. For many days I’m writing a french documentation, and to be sure I’m not telling something stupid in it, I use the official Ansible do…

---

## [Is there custom ansible module registry somewhere similar to galaxy.ansible.com for ansible role?](https://forum.ansible.com/t/is-there-custom-ansible-module-registry-somewhere-similar-to-galaxy-ansible-com-for-ansible-role/27007)

<div class="topic-metadata">

**Author:** [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 2:43pm UTC](https://forum.ansible.com/t/is-there-custom-ansible-module-registry-somewhere-similar-to-galaxy-ansible-com-for-ansible-role/27007 "2018-03-16T14:43:11Z")

</div>

I was wondering if anyone know a place similar to galaxy.ansible.com where I can find custom ansible modules that people have written that is not part of the ansible core or extra modules.

---

## [Ansible win\_copy or win\_file error "The given path's format is not supported"](https://forum.ansible.com/t/ansible-win-copy-or-win-file-error-the-given-paths-format-is-not-supported/27000)

<div class="topic-metadata">

**Author:** [@Augusto\_Canessa](https://forum.ansible.com/u/Augusto_Canessa)\
**Replies:** 8\
**Last updated:** [March 16, 2018, 2:37pm UTC](https://forum.ansible.com/t/ansible-win-copy-or-win-file-error-the-given-paths-format-is-not-supported/27000 "2018-03-16T14:37:26Z")

</div>

I’m having a problem creating or copying files from my Ansible box to windows. Commands like reboot work fine. But any command that involves a PATH gives me this error. My command (C&P from Ansible’s site) name: Touch…

---

## [ESXi cluster utilization using ansible](https://forum.ansible.com/t/esxi-cluster-utilization-using-ansible/27001)

<div class="topic-metadata">

**Author:** [@Prashant\_Zanwar](https://forum.ansible.com/u/Prashant_Zanwar)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 10:10am UTC](https://forum.ansible.com/t/esxi-cluster-utilization-using-ansible/27001 "2018-03-16T10:10:53Z")

</div>

I am looking for a way to get ESXi cluster capacity utilization. My use case is to upgrade VM CPU/RAM + also disk addition. First I want to look at ESXi cluster used capacity and how much is left to be allocated. I hav…

---

## [Are there Ansible modules available for Nutanix and Hyper-V?](https://forum.ansible.com/t/are-there-ansible-modules-available-for-nutanix-and-hyper-v/27015)

<div class="topic-metadata">

**Author:** [@Dinesh\_Vashisht](https://forum.ansible.com/u/Dinesh_Vashisht)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 9:44am UTC](https://forum.ansible.com/t/are-there-ansible-modules-available-for-nutanix-and-hyper-v/27015 "2018-03-16T09:44:58Z")

</div>

Team, Are there Ansible modules available for Nutanix and Hyper-V? For example, can we use Ansible for creating and deleting snapshots on Nutanix and Hyper-V? Thank you, Dinesh Vashisht

---

## [The network mapping disk generated by win\_mapped\_drive is not available](https://forum.ansible.com/t/the-network-mapping-disk-generated-by-win-mapped-drive-is-not-available/27014)

<div class="topic-metadata">

**Author:** [@12177589](https://forum.ansible.com/u/12177589)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 9:07am UTC](https://forum.ansible.com/t/the-network-mapping-disk-generated-by-win-mapped-drive-is-not-available/27014 "2018-03-16T09:07:02Z")

</div>

My Syntax is here tasks: - name: create a mapped drive under Z win\_mapped\_drive: letter: Z path: \\192.168.227.181.0.0\\pys username: administrator password: Test123456 - name: cop…

---

## [Help with conditional](https://forum.ansible.com/t/help-with-conditional/27011)

<div class="topic-metadata">

**Author:** [@Marc\_Herren](https://forum.ansible.com/u/Marc_Herren)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 8:13am UTC](https://forum.ansible.com/t/help-with-conditional/27011 "2018-03-16T08:13:04Z")

</div>

Hi all, I’m struggling with the following conditional check: \` set\_fact: url: “{{ url | default(‘www.search.ch’) }}” url\_points\_to: “‘{{ lookup(‘dig’, ‘{{ url }}’) }}’” block: name: “Check if {{ url }} point…

---

## [Is there any Ansible master / Slave concept.](https://forum.ansible.com/t/is-there-any-ansible-master-slave-concept/26970)

<div class="topic-metadata">

**Author:** [@rraka1002](https://forum.ansible.com/u/rraka1002)\
**Replies:** 6\
**Last updated:** [March 16, 2018, 5:18am UTC](https://forum.ansible.com/t/is-there-any-ansible-master-slave-concept/26970 "2018-03-16T05:18:35Z")

</div>

Is there any Ansible master / Slave concept.

---

## [Ansible 2.5.0 Release Candidate 3 is available](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-3-is-available/27010)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [March 16, 2018, 1:33am UTC](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-3-is-available/27010 "2018-03-16T01:33:01Z")

</div>

Hi all- we’re happy to announce that Release Candidate 3 of Ansible 2.5.0 is now available! How do you get it?

---

## [Import/Include a Single task from one play book to another play book.](https://forum.ansible.com/t/import-include-a-single-task-from-one-play-book-to-another-play-book/26990)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 4\
**Last updated:** [March 15, 2018, 10:44pm UTC](https://forum.ansible.com/t/import-include-a-single-task-from-one-play-book-to-another-play-book/26990 "2018-03-15T22:44:54Z")

</div>

Hi All, Not sure whether it is possible, but let me raise the question, it is possible to import/include a single task for one play book to another play book rather than importing the entire play book.e.g common.yml …

---

## [need help for the module cyberarkpassword - get secrets from CyberArk AIM](https://forum.ansible.com/t/need-help-for-the-module-cyberarkpassword-get-secrets-from-cyberark-aim/27008)

<div class="topic-metadata">

**Author:** [@nitin\_kansal](https://forum.ansible.com/u/nitin_kansal)\
**Replies:** 0\
**Last updated:** [March 15, 2018, 8:55pm UTC](https://forum.ansible.com/t/need-help-for-the-module-cyberarkpassword-get-secrets-from-cyberark-aim/27008 "2018-03-15T20:55:26Z")

</div>

This module says requirements as: https://docs.ansible.com/ansible/devel/plugins/lookup/cyberarkpassword.html The below requirements are needed on the local master node that executes this lookup. CyberArk AIM tool in…

---

## [Register and print stdout\_lines output while running a loop \[code help\]](https://forum.ansible.com/t/register-and-print-stdout-lines-output-while-running-a-loop-code-help/27006)

<div class="topic-metadata">

**Author:** [@Raj5](https://forum.ansible.com/u/Raj5)\
**Replies:** 0\
**Last updated:** [March 15, 2018, 4:47pm UTC](https://forum.ansible.com/t/register-and-print-stdout-lines-output-while-running-a-loop-code-help/27006 "2018-03-15T16:47:40Z")

</div>

Hello, I am currently working on a task as below \` name: Client Schema upgrade shell: source ~/.bash\_profile && sqlplus -S ‘{{ username }}/{{ password }}@{{ TNS\_NAME }}’ @“client.sql” {{ item }} with\_items: “{{ sc…

---

## [Error while running bigip\_node module](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002)

<div class="topic-metadata">

**Author:** [@eric\_landers](https://forum.ansible.com/u/eric_landers)\
**Replies:** 2\
**Last updated:** [March 15, 2018, 2:34pm UTC](https://forum.ansible.com/t/error-while-running-bigip-node-module/27002 "2018-03-15T14:34:01Z")

</div>

I’m trying to run the bigip\_node playbook and am receiving the below error. I’ve also upgraded to python 2.7 which is now running alongside of python 2.6. How do I make the f5 modules now point to python 2.7 instead of 2…

---

## [Expect Module Help](https://forum.ansible.com/t/expect-module-help/26966)

<div class="topic-metadata">

**Author:** [@Samuel\_Sutton](https://forum.ansible.com/u/Samuel_Sutton)\
**Replies:** 4\
**Last updated:** [March 15, 2018, 2:06pm UTC](https://forum.ansible.com/t/expect-module-help/26966 "2018-03-15T14:06:54Z")

</div>

Hello everyone, I’m messing around with expect and I can’t seem to get a match to get the ping command to fire again a second time. I’m assuming that I’m making a very common matching mistake that is alluding me. Any he…

---

## [How to get winrm log from ansible?](https://forum.ansible.com/t/how-to-get-winrm-log-from-ansible/27003)

<div class="topic-metadata">

**Author:** [@user92](https://forum.ansible.com/u/user92)\
**Replies:** 0\
**Last updated:** [March 15, 2018, 12:53pm UTC](https://forum.ansible.com/t/how-to-get-winrm-log-from-ansible/27003 "2018-03-15T12:53:05Z")

</div>

Hello. I’m trying to debug an issue with transfering file to windows host by ansible. Is there any way to get log detailed log of winrm operations and errors from ansible?

---

## [Complex fact setting in Ansible playbooks](https://forum.ansible.com/t/complex-fact-setting-in-ansible-playbooks/26992)

<div class="topic-metadata">

**Author:** [@Giulio\_Vito\_de\_Musso](https://forum.ansible.com/u/Giulio_Vito_de_Musso)\
**Replies:** 1\
**Last updated:** [March 15, 2018, 10:52am UTC](https://forum.ansible.com/t/complex-fact-setting-in-ansible-playbooks/26992 "2018-03-15T10:52:36Z")

</div>

Hello you all! I’m using Ansible to configure some Linux services on different Linux machines and I need to set the services precedence depending on the host’s group. To be clear, I need to add three Linux services A.s…

---

## [Help Running win\_command or win\_shell for IIS custom log field setting.](https://forum.ansible.com/t/help-running-win-command-or-win-shell-for-iis-custom-log-field-setting/26996)

<div class="topic-metadata">

**Author:** [@Chris\_K](https://forum.ansible.com/u/Chris_K)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 9:07pm UTC](https://forum.ansible.com/t/help-running-win-command-or-win-shell-for-iis-custom-log-field-setting/26996 "2018-03-14T21:07:17Z")

</div>

Greetings everyone! I am beating my head against a wall trying to get this to work, and I know I’m screwing it up but I’m about at the end of my tether trying to get this right. I’m trying to add customFields to IIS site…

---

## [Issue with script not working on Windows/Cygwin](https://forum.ansible.com/t/issue-with-script-not-working-on-windows-cygwin/26988)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 4\
**Last updated:** [March 14, 2018, 8:51pm UTC](https://forum.ansible.com/t/issue-with-script-not-working-on-windows-cygwin/26988 "2018-03-14T20:51:59Z")

</div>

Hi, all. I have an issue with a certain script (permissions) whilst using ansible. First of all, I have one script that does work: #!/bin/bash set -xe chmod 660 /etc/rsyncd.secrets mkpasswd \> /etc/passwd sed -i ‘s…

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

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