# Ansible Project

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

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

**Page:** 239

---

## [Ansible and distributed nodes managent](https://forum.ansible.com/t/ansible-and-distributed-nodes-managent/28406)

<div class="topic-metadata">

**Author:** [@Kernel\_Panic](https://forum.ansible.com/u/Kernel_Panic)\
**Replies:** 2\
**Last updated:** [August 23, 2018, 6:48pm UTC](https://forum.ansible.com/t/ansible-and-distributed-nodes-managent/28406 "2018-08-23T18:48:36Z")

</div>

Hello guys Im new to Ansible and Im engaged on a project to administer nodes on different providers, lets say, some hosts are on AWS, other on Azure, do you have any experience on this? based on your experience what wo…

---

## [vmware\_guest Centos 7 vs Ubuntu 18](https://forum.ansible.com/t/vmware-guest-centos-7-vs-ubuntu-18/28407)

<div class="topic-metadata">

**Author:** [@Alexsey\_S](https://forum.ansible.com/u/Alexsey_S)\
**Replies:** 0\
**Last updated:** [August 23, 2018, 4:27pm UTC](https://forum.ansible.com/t/vmware-guest-centos-7-vs-ubuntu-18/28407 "2018-08-23T16:27:55Z")

</div>

I have working solution for Centos 7. It clones vm from template, gets network going, assigns hostname, gets dhcp ip, and process vm with puppet etc… Same playbook fails on Ubuntu: It creates clone but does not change…

---

## [which tags are being used in runtime?](https://forum.ansible.com/t/which-tags-are-being-used-in-runtime/28385)

<div class="topic-metadata">

**Author:** [@Mauricio\_Castro](https://forum.ansible.com/u/Mauricio_Castro)\
**Replies:** 10\
**Last updated:** [August 23, 2018, 1:48pm UTC](https://forum.ansible.com/t/which-tags-are-being-used-in-runtime/28385 "2018-08-23T13:48:33Z")

</div>

Hello all, is there a way to know during playbook execution which tags it was called with in command line with -t ? I mean given ansible-playbook -t x,y,z how do I know inside the playbook I am only executing tasks with…

---

## [looking for optimizations](https://forum.ansible.com/t/looking-for-optimizations/28404)

<div class="topic-metadata">

**Author:** [@Paul3](https://forum.ansible.com/u/Paul3)\
**Replies:** 0\
**Last updated:** [August 23, 2018, 1:04pm UTC](https://forum.ansible.com/t/looking-for-optimizations/28404 "2018-08-23T13:04:44Z")

</div>

Hey all, I am currently on the older 1.7 (looking to upgrade shortly). I have a question in regards to optimization of tasks. I have a role where I collect some output from other task actions and im trying to use them i…

---

## [ansible-pull: what does \`fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “one of the following is required: name, list”}\` mean?](https://forum.ansible.com/t/ansible-pull-what-does-fatal-localhost-failed-changed-false-msg-one-of-the-following-is-required-name-list-mean/28400)

<div class="topic-metadata">

**Author:** [@Ron\_Barak](https://forum.ansible.com/u/Ron_Barak)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 11:37am UTC](https://forum.ansible.com/t/ansible-pull-what-does-fatal-localhost-failed-changed-false-msg-one-of-the-following-is-required-name-list-mean/28400 "2018-08-23T11:37:45Z")

</div>

What does the following message mean? fatal: \[localhost\]: FAILED! =\> {“changed”: false, “msg”: “one of the following is required: name, list”}

---

## [Ansible integratión with Jenkins: hudson.AbortException: Ansible playbook execution failed](https://forum.ansible.com/t/ansible-integration-with-jenkins-hudson-abortexception-ansible-playbook-execution-failed/28403)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 0\
**Last updated:** [August 23, 2018, 7:41am UTC](https://forum.ansible.com/t/ansible-integration-with-jenkins-hudson-abortexception-ansible-playbook-execution-failed/28403 "2018-08-23T07:41:24Z")

</div>

Hi, I have a problem with all playbooks executed from Plugin Ansible in Jenkins. Jenkins Group, say that this is an ansible runtime issue when running that playbook rather than a Jenkins issue. All jobs, finish with: …

---

## [Request immediate help - Need to execute playbook on hosts based on the host status from the previous playbooks.](https://forum.ansible.com/t/request-immediate-help-need-to-execute-playbook-on-hosts-based-on-the-host-status-from-the-previous-playbooks/28358)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 4:08am UTC](https://forum.ansible.com/t/request-immediate-help-need-to-execute-playbook-on-hosts-based-on-the-host-status-from-the-previous-playbooks/28358 "2018-08-23T04:08:50Z")

</div>

I have 3 playbooks in workflow template and these playbooks would execute on multiple hosts. If 1st playbook fails on few hosts and the 3rd playbook should get execute only on the failed hosts. And whatever hosts passe…

---

## [Unable to run ansible command using aws ec2 dynamic inventory](https://forum.ansible.com/t/unable-to-run-ansible-command-using-aws-ec2-dynamic-inventory/28402)

<div class="topic-metadata">

**Author:** [@Ravi\_Tiwary](https://forum.ansible.com/u/Ravi_Tiwary)\
**Replies:** 1\
**Last updated:** [August 22, 2018, 10:08pm UTC](https://forum.ansible.com/t/unable-to-run-ansible-command-using-aws-ec2-dynamic-inventory/28402 "2018-08-22T22:08:44Z")

</div>

I am trying to run ansible command sudo ansible -i ./dynamic-inventory/ec2.py tag\_Name\_aws\_test\_win -m win\_ping using module win\_ping from ansible server to remote node and it is throwing error aws\_test\_win | UNREACHAB…

---

## [Finding a VM on VCenters](https://forum.ansible.com/t/finding-a-vm-on-vcenters/28398)

<div class="topic-metadata">

**Author:** [@Carter\_Stephen](https://forum.ansible.com/u/Carter_Stephen)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 8:23pm UTC](https://forum.ansible.com/t/finding-a-vm-on-vcenters/28398 "2018-08-22T20:23:03Z")

</div>

Hello, I was curious if anyone has come up with a decent way of accomplishing this. I have an inventory file with a bunch of VM’s I manage currently. When we do maintenances we like to take a snapshot just before we p…

---

## [Refactor Playbook to loop over hosts individually](https://forum.ansible.com/t/refactor-playbook-to-loop-over-hosts-individually/28396)

<div class="topic-metadata">

**Author:** [@Caleb\_Guerrero](https://forum.ansible.com/u/Caleb_Guerrero)\
**Replies:** 10\
**Last updated:** [August 22, 2018, 7:15pm UTC](https://forum.ansible.com/t/refactor-playbook-to-loop-over-hosts-individually/28396 "2018-08-22T19:15:50Z")

</div>

All, I am trying to refactor my playbook to run an ios command across a group of hosts… My challenge is that the command is specific to individual hosts in the group. As it stands, my playbook initial task is ran agains…

---

## [Configure rhn\_channel module for Spacewalk](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399)

<div class="topic-metadata">

**Author:** [@Rashard](https://forum.ansible.com/u/Rashard)\
**Replies:** 2\
**Last updated:** [August 22, 2018, 6:04pm UTC](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399 "2018-08-22T18:04:08Z")

</div>

Hi! Im trying to get ansible to talk to our local spacewalk server but its not working. If I use the epl repo it works fine with this block ‘’‘’ - name: Add repository yum\_repository: name: epel description: EPEL YUM …

---

## [Specific sort](https://forum.ansible.com/t/specific-sort/28392)

<div class="topic-metadata">

**Author:** [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Replies:** 2\
**Last updated:** [August 22, 2018, 4:39pm UTC](https://forum.ansible.com/t/specific-sort/28392 "2018-08-22T16:39:41Z")

</div>

Hi, I have some patch to apply in order, so I have to sort my list which came from an RPM... By default my list is sorted like this : /update/v902002.5\_p05.0\_00\_0 /update/v902002.5\_p05.1\_08\_0 /update/v902002.5\_p05.1…

---

## [docker connection over remote host tcp no tls](https://forum.ansible.com/t/docker-connection-over-remote-host-tcp-no-tls/26078)

<div class="topic-metadata">

**Author:** [@Esteban\_Mirizio](https://forum.ansible.com/u/Esteban_Mirizio)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 2:22pm UTC](https://forum.ansible.com/t/docker-connection-over-remote-host-tcp-no-tls/26078 "2018-08-22T14:22:27Z")

</div>

Hi everyone! I’m Having a hard time trying to a remote docker connection over non tls. What I’m trying to achieve is to execute an ansible playbook inside a docker located in host A to another docker located in host B, …

---

## [How to escape single quote in regex\_replace expression?](https://forum.ansible.com/t/how-to-escape-single-quote-in-regex-replace-expression/28394)

<div class="topic-metadata">

**Author:** [@Veena](https://forum.ansible.com/u/Veena)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 2:11pm UTC](https://forum.ansible.com/t/how-to-escape-single-quote-in-regex-replace-expression/28394 "2018-08-22T14:11:48Z")

</div>

Hi, I’m using Ansible 2.5 and trying to escape single quote in a string. This string will be passed as argument to shell command. regex\_replace(“'”, “'”) is giving error. set\_fact: default\_passphrase: “{{ Secrete123…

---

## [Variable expansion/replacement in strings read from file lookup?](https://forum.ansible.com/t/variable-expansion-replacement-in-strings-read-from-file-lookup/28391)

<div class="topic-metadata">

**Author:** [@Steve\_Kersley](https://forum.ansible.com/u/Steve_Kersley)\
**Replies:** 1\
**Last updated:** [August 22, 2018, 9:37am UTC](https://forum.ansible.com/t/variable-expansion-replacement-in-strings-read-from-file-lookup/28391 "2018-08-22T09:37:26Z")

</div>

Good morning, Is there a way to perform variable replacement in text read from an external file via the file lookup into a list, in the same way that it would be if the list was specified in the playbook task? I want t…

---

## [Jenkins - Ansible integration](https://forum.ansible.com/t/jenkins-ansible-integration/28363)

<div class="topic-metadata">

**Author:** [@Vamsi\_Krishna](https://forum.ansible.com/u/Vamsi_Krishna)\
**Replies:** 7\
**Last updated:** [August 22, 2018, 3:57am UTC](https://forum.ansible.com/t/jenkins-ansible-integration/28363 "2018-08-22T03:57:33Z")

</div>

HI All, I am newbie for both Ansible and Jenkins and I looking for step by step approach for running ansible playbook for Jenkins. From Jenkins, I have installed Ansible plugin and in Global Tool Configuration I have s…

---

## [location of \`group\_vars/\` for included playbooks changed in 2.4+ ?](https://forum.ansible.com/t/location-of-group-vars-for-included-playbooks-changed-in-2-4/28378)

<div class="topic-metadata">

**Author:** [@Riccardo\_Murri](https://forum.ansible.com/u/Riccardo_Murri)\
**Replies:** 2\
**Last updated:** [August 21, 2018, 9:19pm UTC](https://forum.ansible.com/t/location-of-group-vars-for-included-playbooks-changed-in-2-4/28378 "2018-08-21T21:19:31Z")

</div>

Hello, I am updating some playbooks written initially for Ansible 2.2. and 2.3 to remove the features that were deprecated in Ansible 2.4+ The playbook is divided across multiple files, where main.yml would include: ro…

---

## [template module thinks validation succeeded when it should have failed.](https://forum.ansible.com/t/template-module-thinks-validation-succeeded-when-it-should-have-failed/28376)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 2\
**Last updated:** [August 21, 2018, 7:52pm UTC](https://forum.ansible.com/t/template-module-thinks-validation-succeeded-when-it-should-have-failed/28376 "2018-08-21T19:52:54Z")

</div>

Can anyone clarify how the validate option of the template module works? I have deliberately configured apache with invalid configuration. On the command line apache2 -t -f /etc/apache2/apache2.conf fails with a syntax e…

---

## [azure fileservices in ansible 2.6](https://forum.ansible.com/t/azure-fileservices-in-ansible-2-6/28389)

<div class="topic-metadata">

**Author:** [@Alexei\_Vasiliev](https://forum.ansible.com/u/Alexei_Vasiliev)\
**Replies:** 0\
**Last updated:** [August 21, 2018, 7:07pm UTC](https://forum.ansible.com/t/azure-fileservices-in-ansible-2-6/28389 "2018-08-21T19:07:40Z")

</div>

Hi, Can someone say if it is possible to create an azure file share (azure storage/files) via new Ansible 2.6 There was mentioned that it can deploy various resources via REST APi, but no examples about shares. Does a…

---

## [Solution for add keys mutual](https://forum.ansible.com/t/solution-for-add-keys-mutual/28381)

<div class="topic-metadata">

**Author:** [@Henrik\_Schuetze](https://forum.ansible.com/u/Henrik_Schuetze)\
**Replies:** 7\
**Last updated:** [August 21, 2018, 5:44pm UTC](https://forum.ansible.com/t/solution-for-add-keys-mutual/28381 "2018-08-21T17:44:22Z")

</div>

Hi, i want to enable ssh between two linux hosts. i generate the ssh key on both hosts. and then i need to add the keys on the other servers respectively Does anyone has a ready solution for that? greetings Henri…

---

## [ansible on docker installation](https://forum.ansible.com/t/ansible-on-docker-installation/28380)

<div class="topic-metadata">

**Author:** [@nbctcp](https://forum.ansible.com/u/nbctcp)\
**Replies:** 1\
**Last updated:** [August 21, 2018, 5:01pm UTC](https://forum.ansible.com/t/ansible-on-docker-installation/28380 "2018-08-21T17:01:42Z")

</div>

Hi, I am trying to install ansible on docker on Ubuntu Desktop 18.04LTS PROBLEMS: error when try to docker run whether docker hub ansible/ansible already has ssh client/server inside it If doesn’t then how to instal…

---

## [Ansible set\_fact sets fact even when another fact is undefined?](https://forum.ansible.com/t/ansible-set-fact-sets-fact-even-when-another-fact-is-undefined/28384)

<div class="topic-metadata">

**Author:** [@Ford\_FasteRR](https://forum.ansible.com/u/Ford_FasteRR)\
**Replies:** 3\
**Last updated:** [August 21, 2018, 4:07pm UTC](https://forum.ansible.com/t/ansible-set-fact-sets-fact-even-when-another-fact-is-undefined/28384 "2018-08-21T16:07:14Z")

</div>

0down votefavorite I’m seeing strange behavior in ansible 2.5.5 (on centos 6.10)

---

## [Galaxy Release 3.0.8](https://forum.ansible.com/t/galaxy-release-3-0-8/28382)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 0\
**Last updated:** [August 21, 2018, 1:25pm UTC](https://forum.ansible.com/t/galaxy-release-3-0-8/28382 "2018-08-21T13:25:50Z")

</div>

Galaxy bug fix release 3.0.8 will be deployed tomorrow morning, 22 August, at 4:00 AM Eastern. This release includes the following: Bug Fixes- Made the help link more obvious, and added a link to the Galaxy project iss…

---

## [How to assign virtual network to sqlserver on Azure](https://forum.ansible.com/t/how-to-assign-virtual-network-to-sqlserver-on-azure/28379)

<div class="topic-metadata">

**Author:** [@Michael\_Wild](https://forum.ansible.com/u/Michael_Wild)\
**Replies:** 0\
**Last updated:** [August 21, 2018, 11:06am UTC](https://forum.ansible.com/t/how-to-assign-virtual-network-to-sqlserver-on-azure/28379 "2018-08-21T11:06:56Z")

</div>

Dear all I successfully created an SQL Server instance with the azure\_rm\_sqlserver module. However, for it to be useful, I need to connect it with a “vnet rule” to a virtual network. How can I do this? I would expect so…

---

## [ansible.vault not working anymore?](https://forum.ansible.com/t/ansible-vault-not-working-anymore/28328)

<div class="topic-metadata">

**Author:** [@vid.jelen1](https://forum.ansible.com/u/vid.jelen1)\
**Replies:** 8\
**Last updated:** [August 21, 2018, 7:53am UTC](https://forum.ansible.com/t/ansible-vault-not-working-anymore/28328 "2018-08-21T07:53:58Z")

</div>

Had a functional ansible-vault setup up until today. With each run now I get the following: ERROR! Unexpected Exception, this is probably a bug: from\_buffer() cannot return the address of the raw string within a str or…

---

## [ansible exadata module](https://forum.ansible.com/t/ansible-exadata-module/28377)

<div class="topic-metadata">

**Author:** [@bennet\_samuel](https://forum.ansible.com/u/bennet_samuel)\
**Replies:** 0\
**Last updated:** [August 21, 2018, 7:21am UTC](https://forum.ansible.com/t/ansible-exadata-module/28377 "2018-08-21T07:21:43Z")

</div>

Just to know if ansible has any exadata/dcli/ module. If not, is the best practice to use shell command?

---

## [How to setup variable files to contain multiple versions of vaulted variables](https://forum.ansible.com/t/how-to-setup-variable-files-to-contain-multiple-versions-of-vaulted-variables/28375)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 0\
**Last updated:** [August 20, 2018, 8:49pm UTC](https://forum.ansible.com/t/how-to-setup-variable-files-to-contain-multiple-versions-of-vaulted-variables/28375 "2018-08-20T20:49:04Z")

</div>

I’m running Ansible 2.6.2 and trying to wrap my head around the –vault-id and multiple vault passwords. As I understand it, the usefulness it is bringing is that different users can have their playbook decrypt their tea…

---

## [move messages from error queue to parent queue in Redhat Active MQ](https://forum.ansible.com/t/move-messages-from-error-queue-to-parent-queue-in-redhat-active-mq/28368)

<div class="topic-metadata">

**Author:** [@Pradeep\_Drall](https://forum.ansible.com/u/Pradeep_Drall)\
**Replies:** 1\
**Last updated:** [August 20, 2018, 8:35pm UTC](https://forum.ansible.com/t/move-messages-from-error-queue-to-parent-queue-in-redhat-active-mq/28368 "2018-08-20T20:35:29Z")

</div>

Hi, I would like to move messages from error queue to parent queue in Redhat Active MQ. I want to automate Jolokia REST Url moveMessages(int,java.lang.String,java.lang.String,boolean) concept through ansible uri module…

---

## [azure\_rm\_virtualmachine error when using zeros...](https://forum.ansible.com/t/azure-rm-virtualmachine-error-when-using-zeros/28374)

<div class="topic-metadata">

**Author:** [@Eric\_Rousse](https://forum.ansible.com/u/Eric_Rousse)\
**Replies:** 2\
**Last updated:** [August 20, 2018, 7:18pm UTC](https://forum.ansible.com/t/azure-rm-virtualmachine-error-when-using-zeros/28374 "2018-08-20T19:18:05Z")

</div>

Hello, I have a case here were I need to create VMs with a name based on a sequence and that sequence will generate numbers from 01 to 05 for example. When I use the same sequence with azure\_rm\_networkinterface and azu…

---

## [How to pass different executable files in ansible / pass run the script using source and expect?](https://forum.ansible.com/t/how-to-pass-different-executable-files-in-ansible-pass-run-the-script-using-source-and-expect/28373)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 1\
**Last updated:** [August 20, 2018, 6:36pm UTC](https://forum.ansible.com/t/how-to-pass-different-executable-files-in-ansible-pass-run-the-script-using-source-and-expect/28373 "2018-08-20T18:36:36Z")

</div>

I am trying to pass a prompt y in ansible when it executes command. When i do manually on server it asks for a prompt. The issue is for command to run i need to pass the executable /bin/bash command: source /etc/profi…

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

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