# Latest

**URL:** https://forum.ansible.com/latest.md?page=613

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

**Page:** 614

---

## [Loop through items, regsiter var when defined.  Approaching this right?](https://forum.ansible.com/t/loop-through-items-regsiter-var-when-defined-approaching-this-right/25821)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [October 25, 2017, 9:01pm UTC](https://forum.ansible.com/t/loop-through-items-regsiter-var-when-defined-approaching-this-right/25821 "2017-10-25T21:01:23Z")

</div>

Scenario: Server will have no user defined, or user1 or user2 (but not both). \` name: Discover sudo users getent: database: passwd key: “{{item}}” register: username when: result|succeeded with\_items: user1 use…

---

## [ERROR! no action dected in task.  os\_server\_action action: rebuild](https://forum.ansible.com/t/error-no-action-dected-in-task-os-server-action-action-rebuild/25780)

<div class="topic-metadata">

**Author:** [@Pete\_Pedersen](https://forum.ansible.com/u/Pete_Pedersen)\
**Replies:** 1\
**Last updated:** [October 25, 2017, 8:21pm UTC](https://forum.ansible.com/t/error-no-action-dected-in-task-os-server-action-action-rebuild/25780 "2017-10-25T20:21:27Z")

</div>

Hi all, I’m using Ansible Tower, 2.3.1.0, with Python 2.7.5. I wrote the following playbook to automate rebuilding of servers with new images.

---

## [Ansible Module for OpenStack LBaaSv2](https://forum.ansible.com/t/ansible-module-for-openstack-lbaasv2/25823)

<div class="topic-metadata">

**Author:** [@Pete\_Pedersen](https://forum.ansible.com/u/Pete_Pedersen)\
**Replies:** 0\
**Last updated:** [October 25, 2017, 8:14pm UTC](https://forum.ansible.com/t/ansible-module-for-openstack-lbaasv2/25823 "2017-10-25T20:14:12Z")

</div>

I’m using Ansible as the automation to set up different environments in an OpenStack cloud and was wondering if there is a work in progress to develop a module for OpenStack LBaaSv2? Something along the lines of os\_lbaas…

---

## [Etymology of AWX](https://forum.ansible.com/t/etymology-of-awx/25822)

<div class="topic-metadata">

**Author:** [@Musee\_Ullah](https://forum.ansible.com/u/Musee_Ullah)\
**Replies:** 1\
**Last updated:** [October 25, 2017, 8:01pm UTC](https://forum.ansible.com/t/etymology-of-awx/25822 "2017-10-25T20:01:49Z")

</div>

I’m a bit curious and can’t seem to find anything about this, but is AWX an acronym (and if so, what’s it an acronym of?)/how did the name come to be?

---

## [Random var and lenguage reference](https://forum.ansible.com/t/random-var-and-lenguage-reference/25817)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 1\
**Last updated:** [October 25, 2017, 6:25pm UTC](https://forum.ansible.com/t/random-var-and-lenguage-reference/25817 "2017-10-25T18:25:28Z")

</div>

Hi, I would like to get a 3 digit random number, for example 001. I have come to get: tasks: name: We assign a fixed random variable throughout the execution. set\_fact: Random\_Fix: “{{ 100 | random }}” run\_once: …

---

## [Need help with playbook to gather info from inventory and direct to a file](https://forum.ansible.com/t/need-help-with-playbook-to-gather-info-from-inventory-and-direct-to-a-file/25813)

<div class="topic-metadata">

**Author:** [@sri\_pavan\_kumar\_goda](https://forum.ansible.com/u/sri_pavan_kumar_goda)\
**Replies:** 1\
**Last updated:** [October 25, 2017, 6:18pm UTC](https://forum.ansible.com/t/need-help-with-playbook-to-gather-info-from-inventory-and-direct-to-a-file/25813 "2017-10-25T18:18:30Z")

</div>

Hi All, Need some help with creating a playbook to gather hostname, OS and package information from the inventory and output the result to a file in below format. “Hostname, OS, Package” I was able to come up with bel…

---

## [How to setup PATH variable in an Ansible task using the environment module?](https://forum.ansible.com/t/how-to-setup-path-variable-in-an-ansible-task-using-the-environment-module/25819)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 3\
**Last updated:** [October 25, 2017, 5:26pm UTC](https://forum.ansible.com/t/how-to-setup-path-variable-in-an-ansible-task-using-the-environment-module/25819 "2017-10-25T17:26:43Z")

</div>

I’m running Ansble v2.4.0.0 in a RHEL7.2 box. I’m trying to setup the PATH variable with the following simple task, but I’m getting a syntax error. \` tasks/main.yml

---

## [Ansible Tower Inventory clarification](https://forum.ansible.com/t/ansible-tower-inventory-clarification/25816)

<div class="topic-metadata">

**Author:** [@anoop\_vc](https://forum.ansible.com/u/anoop_vc)\
**Replies:** 0\
**Last updated:** [October 25, 2017, 11:34am UTC](https://forum.ansible.com/t/ansible-tower-inventory-clarification/25816 "2017-10-25T11:34:02Z")

</div>

How will I specify the credentials to be used for a group of machines using ansible tower UI. if it is single machine, I can create a credential and select it in template. if it is a group of machine, Do I need to use th…

---

## [scm project commit/push best practice](https://forum.ansible.com/t/scm-project-commit-push-best-practice/25794)

<div class="topic-metadata">

**Author:** [@franck\_labatut](https://forum.ansible.com/u/franck_labatut)\
**Replies:** 4\
**Last updated:** [October 25, 2017, 9:22am UTC](https://forum.ansible.com/t/scm-project-commit-push-best-practice/25794 "2017-10-25T09:22:46Z")

</div>

Hi there, open question if you have time: how do you update an scm project content with awx ? use case scenario: running a job template, included in an scm project, executing a template module, rendering content in…

---

## [restoring old configuation](https://forum.ansible.com/t/restoring-old-configuation/25814)

<div class="topic-metadata">

**Author:** [@id.ssh.2017](https://forum.ansible.com/u/id.ssh.2017)\
**Replies:** 1\
**Last updated:** [October 25, 2017, 7:14am UTC](https://forum.ansible.com/t/restoring-old-configuation/25814 "2017-10-25T07:14:02Z")

</div>

Team, I want to write a playbook where we need to check the samba configuration file and if someone has made any changes accidentally it should restore the old config file. Thanks,

---

## [jinja2 variable substituion](https://forum.ansible.com/t/jinja2-variable-substituion/25809)

<div class="topic-metadata">

**Author:** [@Hudec\_Peter](https://forum.ansible.com/u/Hudec_Peter)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 8:55pm UTC](https://forum.ansible.com/t/jinja2-variable-substituion/25809 "2017-10-24T20:55:39Z")

</div>

Hi, I will try to simplify my problem as much as possible. In my case the auto generated, so I do not know the variable name before. Maybe this is better question to devel, but will try you guys. Consider to have val…

---

## [Manage Windows Remote Servers](https://forum.ansible.com/t/manage-windows-remote-servers/25797)

<div class="topic-metadata">

**Author:** [@Sam\_Cogan](https://forum.ansible.com/u/Sam_Cogan)\
**Replies:** 4\
**Last updated:** [October 24, 2017, 8:28pm UTC](https://forum.ansible.com/t/manage-windows-remote-servers/25797 "2017-10-24T20:28:05Z")

</div>

I’m currently assessing various configuration management systems for managing mostly Windows machines. I’m liking the look of Ansible so far, but I am concerned I have a fairly major blocker. I need the chosen system to …

---

## [Basic nslookup functionality](https://forum.ansible.com/t/basic-nslookup-functionality/25812)

<div class="topic-metadata">

**Author:** [@plavmark](https://forum.ansible.com/u/plavmark)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 8:21pm UTC](https://forum.ansible.com/t/basic-nslookup-functionality/25812 "2017-10-24T20:21:49Z")

</div>

Hi, In my inventory file I have the following content, e.g. \[subnets\] 8.8.4.4 8.8.8.8 Now in the playbook I want to resolve DNS for this IP and save it back into another file (that will be used as input for another …

---

## [Ansible for Windows...](https://forum.ansible.com/t/ansible-for-windows/25811)

<div class="topic-metadata">

**Author:** [@Lalit\_Chawla](https://forum.ansible.com/u/Lalit_Chawla)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 8:17pm UTC](https://forum.ansible.com/t/ansible-for-windows/25811 "2017-10-24T20:17:37Z")

</div>

I am new to Ansible but have powershell and Windows admin experience. Will there be still requirements to learn Linux/unix as I saw it works well with SSH.

---

## [Job Templates' variables & awx arc implementation](https://forum.ansible.com/t/job-templates-variables-awx-arc-implementation/25808)

<div class="topic-metadata">

**Author:** [@nkb11193](https://forum.ansible.com/u/nkb11193)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 7:11pm UTC](https://forum.ansible.com/t/job-templates-variables-awx-arc-implementation/25808 "2017-10-24T19:11:21Z")

</div>

Hi there, I’ve been testing awx for couple of days and I’m trying to integrate it inside my cloud environment (openstack), and I’m trying to use awx and ansible to provision my cloud’s resources, like creating an instan…

---

## [Need help](https://forum.ansible.com/t/need-help/25807)

<div class="topic-metadata">

**Author:** [@KrishnaKumar\_Vinayag](https://forum.ansible.com/u/KrishnaKumar_Vinayag)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 6:10pm UTC](https://forum.ansible.com/t/need-help/25807 "2017-10-24T18:10:00Z")

</div>

Hi All, I want to list or view only changed task in ansible after ran playbook. is it any cmd available? ex: Play Recap: duba-scs-appa01. ok=25 changed=4 ( I want to list only what are all the changes made in this s…

---

## [Help with conditionals syntax](https://forum.ansible.com/t/help-with-conditionals-syntax/25805)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 6\
**Last updated:** [October 24, 2017, 3:29pm UTC](https://forum.ansible.com/t/help-with-conditionals-syntax/25805 "2017-10-24T15:29:43Z")

</div>

I know my syntax is wrong but you can get the gist with the code below. Can someone correct my invalid syntax? Works: when: ansible\_hostname | search("apps") Fails: \` when: ansible\_hostname | search(“apps”) and ans…

---

## [Dynamic playbook](https://forum.ansible.com/t/dynamic-playbook/25810)

<div class="topic-metadata">

**Author:** [@KP1](https://forum.ansible.com/u/KP1)\
**Replies:** 0\
**Last updated:** [October 24, 2017, 3:17pm UTC](https://forum.ansible.com/t/dynamic-playbook/25810 "2017-10-24T15:17:28Z")

</div>

Hi, Is it possible to create dynamic playbook in ansible based on inventory? My requirement is: maintain different inventory files for different applications, which contains sequence/flow of tasks that need to execut…

---

## [Using parted module ..I am unable to create multiple partitions on the disk.](https://forum.ansible.com/t/using-parted-module-i-am-unable-to-create-multiple-partitions-on-the-disk/25759)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 6\
**Last updated:** [October 24, 2017, 11:45am UTC](https://forum.ansible.com/t/using-parted-module-i-am-unable-to-create-multiple-partitions-on-the-disk/25759 "2017-10-24T11:45:35Z")

</div>

Hi, I have a query here and request your help .I am trying to create multiple partition on the disk with parted module , but it only creates one partition. Is parted module creates only one partition of the entire disk …

---

## [Split debug msg on multilines](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806)

<div class="topic-metadata">

**Author:** [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 9:36am UTC](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806 "2017-10-24T09:36:38Z")

</div>

Hi, I have created my debug msg task as such \` name: Print VM Info debug: msg: “VM Info: {{ vm\_created | to\_nice\_yaml(indent=8) }}” \` but the result doesn’t show the text on multilines \` TASK \[Print VM Info\] \*\*…

---

## [list of variables in YAML inventory](https://forum.ansible.com/t/list-of-variables-in-yaml-inventory/25578)

<div class="topic-metadata">

**Author:** [@bundyboyuk](https://forum.ansible.com/u/bundyboyuk)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 5:16am UTC](https://forum.ansible.com/t/list-of-variables-in-yaml-inventory/25578 "2017-10-24T05:16:12Z")

</div>

Hi, I am running Ansible from a python script and I want to iterate over a dynamic list created in the python script. The inventory is also dynamically created in this script. The list is different for each host Ansible…

---

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

<div class="topic-metadata">

**Author:** [@Sreekuttan\_Sree](https://forum.ansible.com/u/Sreekuttan_Sree)\
**Replies:** 1\
**Last updated:** [October 24, 2017, 4:52am UTC](https://forum.ansible.com/t/ansible/25522 "2017-10-24T04:52:39Z")

</div>

Hi, playbook is hosts: servers remote\_user: ubuntu become: yes become\_user: root become\_method: sudo tasks: name: Install tmux apt: name=tmux state=present error:fatal: \[192.168.80.129\]: FAILED! =\> {“changed”: …

---

## [Merge multiple inventories?](https://forum.ansible.com/t/merge-multiple-inventories/25804)

<div class="topic-metadata">

**Author:** [@Tony\_Coffman](https://forum.ansible.com/u/Tony_Coffman)\
**Replies:** 2\
**Last updated:** [October 24, 2017, 1:16am UTC](https://forum.ansible.com/t/merge-multiple-inventories/25804 "2017-10-24T01:16:37Z")

</div>

It seems like if I pull in hosts from two sources (VMware and Foreman), I’ll end up with duplicate hosts - therefore one set of hosts will have to have alternate names generated. Is there a way to pull in inventory from …

---

## [Setting custom advanced configuration parameters in VMware VM when deploying via Ansible](https://forum.ansible.com/t/setting-custom-advanced-configuration-parameters-in-vmware-vm-when-deploying-via-ansible/24686)

<div class="topic-metadata">

**Author:** [@James5](https://forum.ansible.com/u/James5)\
**Replies:** 1\
**Last updated:** [October 23, 2017, 6:57pm UTC](https://forum.ansible.com/t/setting-custom-advanced-configuration-parameters-in-vmware-vm-when-deploying-via-ansible/24686 "2017-10-23T18:57:17Z")

</div>

I am trying to deploy a virtual machine via ansible and vcenter using the vmware\_guest module and I need to pass additional custom parameters to the VM (vmx file). I am using the custom values attribute to do this as it …

---

## [How to force creating a new ssh connection](https://forum.ansible.com/t/how-to-force-creating-a-new-ssh-connection/20923)

<div class="topic-metadata">

**Author:** [@jan.warchol](https://forum.ansible.com/u/jan.warchol)\
**Replies:** 6\
**Last updated:** [October 23, 2017, 4:04pm UTC](https://forum.ansible.com/t/how-to-force-creating-a-new-ssh-connection/20923 "2017-10-23T16:04:06Z")

</div>

Hello, by default Ansible uses SSH’s ControlPersist feature to reuse one ssh connection for running multiple tasks. This is very nice and helpful. However, there is one situation when this is a problem: when I change ss…

---

## [Generating TSIG Keys for Bind server](https://forum.ansible.com/t/generating-tsig-keys-for-bind-server/25801)

<div class="topic-metadata">

**Author:** [@Ken\_Jenney](https://forum.ansible.com/u/Ken_Jenney)\
**Replies:** 5\
**Last updated:** [October 23, 2017, 3:24pm UTC](https://forum.ansible.com/t/generating-tsig-keys-for-bind-server/25801 "2017-10-23T15:24:54Z")

</div>

I need to generate TSIG keys for use by nsupdate. dnssec-keygen creates two files after run: \` name: generate TSIG keys command: “dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 512 -n HOST {{item.name}}” args: chdir:…

---

## [inventory group name variable](https://forum.ansible.com/t/inventory-group-name-variable/25803)

<div class="topic-metadata">

**Author:** [@Mauricio\_Castro](https://forum.ansible.com/u/Mauricio_Castro)\
**Replies:** 3\
**Last updated:** [October 23, 2017, 2:02pm UTC](https://forum.ansible.com/t/inventory-group-name-variable/25803 "2017-10-23T14:02:54Z")

</div>

I am kindda new to Ansible and I’ve been trying to find this information everywhere, but I can’t seen to get what I really need, which is: given a inventory with a group name \[xyz\] for example, while running ansible wit…

---

## [Ansible Tower - Isolated Nodes](https://forum.ansible.com/t/ansible-tower-isolated-nodes/25802)

<div class="topic-metadata">

**Author:** [@joharharkanwal](https://forum.ansible.com/u/joharharkanwal)\
**Replies:** 0\
**Last updated:** [October 23, 2017, 12:04pm UTC](https://forum.ansible.com/t/ansible-tower-isolated-nodes/25802 "2017-10-23T12:04:02Z")

</div>

Hello Need help with new feature Ansible Tower - Isolated Nodes. I am wondering isolated node acts as jump server for executing the configuration or configuration can be synced to isolated node and later executed from …

---

## [Modulo copy argumento dest ( incongruencia al usar variables )](https://forum.ansible.com/t/modulo-copy-argumento-dest-incongruencia-al-usar-variables/25791)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 5\
**Last updated:** [October 23, 2017, 5:06am UTC](https://forum.ansible.com/t/modulo-copy-argumento-dest-incongruencia-al-usar-variables/25791 "2017-10-23T05:06:32Z")

</div>

Hola buenas, ¿por que se dan estas incongruencias al usar variables en el modulo copy en su argumento dest.?

---

## [Issue while executing YAML script](https://forum.ansible.com/t/issue-while-executing-yaml-script/25799)

<div class="topic-metadata">

**Author:** [@Sawant](https://forum.ansible.com/u/Sawant)\
**Replies:** 2\
**Last updated:** [October 23, 2017, 4:09am UTC](https://forum.ansible.com/t/issue-while-executing-yaml-script/25799 "2017-10-23T04:09:37Z")

</div>

\[root@ggnmaster2 jenkins\]# ls hosts site.yml \[root@ggnmaster2 jenkins\]# more site.yml

[Previous page](https://forum.ansible.com/latest.md?page=612)

[Next page](https://forum.ansible.com/latest.md?page=614)
