# Ansible Project

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

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

**Page:** 167

---

## [Access clients through a proxy](https://forum.ansible.com/t/access-clients-through-a-proxy/31262)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 1\
**Last updated:** [September 11, 2019, 3:30pm UTC](https://forum.ansible.com/t/access-clients-through-a-proxy/31262 "2019-09-11T15:30:38Z")

</div>

I have a number of machines that can only be reached by logging in through a proxy, but I would like to use ansible to manage them. Is there a way to send playbooks through a proxy to remote machines? Thanks, Dave

---

## [Is there a better way to restructure playbook without “include\_tasks” and run task simultaneously?](https://forum.ansible.com/t/is-there-a-better-way-to-restructure-playbook-without-include-tasks-and-run-task-simultaneously/31257)

<div class="topic-metadata">

**Author:** [@Larry\_Bakun](https://forum.ansible.com/u/Larry_Bakun)\
**Replies:** 0\
**Last updated:** [September 11, 2019, 12:40pm UTC](https://forum.ansible.com/t/is-there-a-better-way-to-restructure-playbook-without-include-tasks-and-run-task-simultaneously/31257 "2019-09-11T12:40:29Z")

</div>

I need a way to speed up my playbook, maybe better logical structuring. It’s running sequentially now. The task is simple – run playbook from AWX that will backup list of VMs. I’m supplying list of VMs in AWX extra vari…

---

## [AWX](https://forum.ansible.com/t/awx/31255)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 1\
**Last updated:** [September 11, 2019, 12:24pm UTC](https://forum.ansible.com/t/awx/31255 "2019-09-11T12:24:48Z")

</div>

Dear All, I am unable to login AWX webpage with admin and password . What could be other default credentials which can be tried ? Any initial method which needs to be performed like user-Admin and secret keyword like j…

---

## [Host Unreachable.](https://forum.ansible.com/t/host-unreachable/31236)

<div class="topic-metadata">

**Author:** [@Naeem\_Khan](https://forum.ansible.com/u/Naeem_Khan)\
**Replies:** 5\
**Last updated:** [September 11, 2019, 9:33am UTC](https://forum.ansible.com/t/host-unreachable/31236 "2019-09-11T09:33:38Z")

</div>

Hi Everyone, I am getting the Connection issue with the given host using ansible, but direct ssh is working fine with the host 172.19.54.163. can some one guide me where do i have to look the issue. on running the com…

---

## [Issue with first playbook](https://forum.ansible.com/t/issue-with-first-playbook/31220)

<div class="topic-metadata">

**Author:** [@elogateumsato](https://forum.ansible.com/u/elogateumsato)\
**Replies:** 3\
**Last updated:** [September 11, 2019, 8:06am UTC](https://forum.ansible.com/t/issue-with-first-playbook/31220 "2019-09-11T08:06:09Z")

</div>

I have a Ubiquiti Edge Router X on my network and was playing around with running playbooks on it. i’m trying to run the following playbook: name: show current configuration hosts: routers tasks: name: get fac…

---

## [When condition 'or' structure question](https://forum.ansible.com/t/when-condition-or-structure-question/31251)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 8:54pm UTC](https://forum.ansible.com/t/when-condition-or-structure-question/31251 "2019-09-10T20:54:15Z")

</div>

It’s possible to define a series of ‘and’ conditions for a task as follows: when: foo == true bar == true As far as I’m aware, the only way to define ‘or’ conditions is in-line, as such: when: foo == true or bar == …

---

## [Variable Not Recognized as Integer](https://forum.ansible.com/t/variable-not-recognized-as-integer/31249)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 5:18pm UTC](https://forum.ansible.com/t/variable-not-recognized-as-integer/31249 "2019-09-10T17:18:33Z")

</div>

I’m attempting to use the Tower API to remove a host from an inventory. Here’s the tasks in my playbook: \` name: Get host ID uri: url: https://satellite/api/v2/inventories/18/hosts/ method: GET body\_format: json …

---

## [Administrate 3com switchs with Ansible](https://forum.ansible.com/t/administrate-3com-switchs-with-ansible/31250)

<div class="topic-metadata">

**Author:** [@Vamberto\_Junior](https://forum.ansible.com/u/Vamberto_Junior)\
**Replies:** 0\
**Last updated:** [September 10, 2019, 2:12pm UTC](https://forum.ansible.com/t/administrate-3com-switchs-with-ansible/31250 "2019-09-10T14:12:12Z")

</div>

Hello everyone, Someone administrate switchs 3com (4210 and 5500) using Ansible ? I would like to automate the backup of these switchs Regards

---

## [Ansible problem when i use --check](https://forum.ansible.com/t/ansible-problem-when-i-use-check/31208)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 5\
**Last updated:** [September 10, 2019, 9:01am UTC](https://forum.ansible.com/t/ansible-problem-when-i-use-check/31208 "2019-09-10T09:01:23Z")

</div>

Hey ! I have problem when i use this command ansible-playbook playbook.yml --check All works normaly without –check but when there is one task who create repertory, the second task is mistake. Exemple : name: “Crea…

---

## [Running Ansible in Packer Windows\_Update Error](https://forum.ansible.com/t/running-ansible-in-packer-windows-update-error/31248)

<div class="topic-metadata">

**Author:** [@Staggerlee011](https://forum.ansible.com/u/Staggerlee011)\
**Replies:** 0\
**Last updated:** [September 10, 2019, 8:23am UTC](https://forum.ansible.com/t/running-ansible-in-packer-windows-update-error/31248 "2019-09-10T08:23:57Z")

</div>

Hi, I have ansible doing application installs and everything else (Ie must be running in admin) i want from a packer build, but when it comes to running a ansible win\_update it errors out with: TASK \[Install all securi…

---

## [ansible playbook is failing with windows hosts](https://forum.ansible.com/t/ansible-playbook-is-failing-with-windows-hosts/31246)

<div class="topic-metadata">

**Author:** [@Vivek1](https://forum.ansible.com/u/Vivek1)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 8:10am UTC](https://forum.ansible.com/t/ansible-playbook-is-failing-with-windows-hosts/31246 "2019-09-10T08:10:28Z")

</div>

Hi Experts, My ansible playbook of simple ping module is failing with my windows host. My Playbbok \`

---

## [win\_package](https://forum.ansible.com/t/win-package/31234)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 4\
**Last updated:** [September 10, 2019, 6:21am UTC](https://forum.ansible.com/t/win-package/31234 "2019-09-10T06:21:22Z")

</div>

Dear All, I am getting a very weird result while using win\_package, It is succeeding and no error is visible on ansible command prompt however the package is not installed while checking manually . We are able to insta…

---

## [The best practice of using Ansible to automatically config/deploy application on the vmware vm](https://forum.ansible.com/t/the-best-practice-of-using-ansible-to-automatically-config-deploy-application-on-the-vmware-vm/31228)

<div class="topic-metadata">

**Author:** [@Roy\_luo](https://forum.ansible.com/u/Roy_luo)\
**Replies:** 1\
**Last updated:** [September 10, 2019, 2:59am UTC](https://forum.ansible.com/t/the-best-practice-of-using-ansible-to-automatically-config-deploy-application-on-the-vmware-vm/31228 "2019-09-10T02:59:25Z")

</div>

Hi Experts, I am a new to Ansible and working on the project of automating our application environment management. The goal of the project is to automatically build the new environment when the application release the n…

---

## [How to use hostvars?](https://forum.ansible.com/t/how-to-use-hostvars/31231)

<div class="topic-metadata">

**Author:** [@user48](https://forum.ansible.com/u/user48)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 1:19am UTC](https://forum.ansible.com/t/how-to-use-hostvars/31231 "2019-09-10T01:19:31Z")

</div>

My ansible version is 2.5. In my playbook, one host needs to access other host’s variable which I defined in inventory file. I used {{ hostvars\[‘groupname’\].var\_name }} and get an error, I also tried to use {{ hostvars…

---

## [ansible and windows laptops on corporate and wan networks](https://forum.ansible.com/t/ansible-and-windows-laptops-on-corporate-and-wan-networks/31232)

<div class="topic-metadata">

**Author:** [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Replies:** 6\
**Last updated:** [September 9, 2019, 9:35pm UTC](https://forum.ansible.com/t/ansible-and-windows-laptops-on-corporate-and-wan-networks/31232 "2019-09-09T21:35:06Z")

</div>

We use Ansible to manage a lot of windows servers, which works well. Now we have also some laptops we want to manage. when theay are on the corporate network this works fine. But how can we make connection when they ar…

---

## [\<replace\> not working \<with\_items\> anymore.](https://forum.ansible.com/t/replace-not-working-with-items-anymore/31245)

<div class="topic-metadata">

**Author:** [@Jean\_Roux](https://forum.ansible.com/u/Jean_Roux)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 7:19pm UTC](https://forum.ansible.com/t/replace-not-working-with-items-anymore/31245 "2019-09-09T19:19:00Z")

</div>

Hi, have not been working with Ansible for a yr+, one of my playbooks not working anymore: name: Edit node-RED config.js replace: path: “{{folder.apps}}/{{ iotp\_app }}/data/settings.js” regexp: “{{ item.regexp }}” …

---

## [How can I manage user properties in several groups](https://forum.ansible.com/t/how-can-i-manage-user-properties-in-several-groups/31243)

<div class="topic-metadata">

**Author:** [@Bram\_Mertens](https://forum.ansible.com/u/Bram_Mertens)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 4:35pm UTC](https://forum.ansible.com/t/how-can-i-manage-user-properties-in-several-groups/31243 "2019-09-09T16:35:43Z")

</div>

Hi, I’m trying to manage user accounts for a small company without central authentication system. The goal is to: define default user properties centrally override specific properties on more specific levels like gro…

---

## [Error adding disk with vmware\_guest\_disk](https://forum.ansible.com/t/error-adding-disk-with-vmware-guest-disk/31240)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 3:02pm UTC](https://forum.ansible.com/t/error-adding-disk-with-vmware-guest-disk/31240 "2019-09-09T15:02:14Z")

</div>

I’m trying to use the vmware\_guest\_disk module (Ansible v2.8.2) to add a disk to a VM but am getting an error. This is the relevant section of my playbook: \` name: Add a Disk VM vmware\_guest\_disk: hostname: “{{ vc\_…

---

## [variables for reboot](https://forum.ansible.com/t/variables-for-reboot/31239)

<div class="topic-metadata">

**Author:** [@Michael\_Weiner](https://forum.ansible.com/u/Michael_Weiner)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 2:55pm UTC](https://forum.ansible.com/t/variables-for-reboot/31239 "2019-09-09T14:55:58Z")

</div>

Howdy all I have a playbook that I want to run hourly to check for new hosts and I have a script that returns a variable of new and this host gets the yum update and yum reboot and then come around again this host varia…

---

## [Flatpaks aren't available when using ansible](https://forum.ansible.com/t/flatpaks-arent-available-when-using-ansible/31238)

<div class="topic-metadata">

**Author:** [@zoliky](https://forum.ansible.com/u/zoliky)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 2:11pm UTC](https://forum.ansible.com/t/flatpaks-arent-available-when-using-ansible/31238 "2019-09-09T14:11:27Z")

</div>

Hello, I created a simple playbook for my Fedora workstation. \` TASK \[Flatpak - Installing Cozy\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* changed: \[localhost\] PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Pre-create list of volumes for docker\_container command?](https://forum.ansible.com/t/pre-create-list-of-volumes-for-docker-container-command/31155)

<div class="topic-metadata">

**Author:** [@Koen\_De\_Groote](https://forum.ansible.com/u/Koen_De_Groote)\
**Replies:** 4\
**Last updated:** [September 9, 2019, 1:50pm UTC](https://forum.ansible.com/t/pre-create-list-of-volumes-for-docker-container-command/31155 "2019-09-09T13:50:26Z")

</div>

I’m looking for some help or guidance in trying to create a list of volumes to pass along to docker container, before that actual command. So, the format for this is: volumes: - '{{ dir1 }}:{{ dir1 }}' - '/…

---

## [How to package ansible modules? Can I use setuptools and console\_scripts?](https://forum.ansible.com/t/how-to-package-ansible-modules-can-i-use-setuptools-and-console-scripts/31237)

<div class="topic-metadata">

**Author:** [@Stefan\_Midjich](https://forum.ansible.com/u/Stefan_Midjich)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 1:33pm UTC](https://forum.ansible.com/t/how-to-package-ansible-modules-can-i-use-setuptools-and-console-scripts/31237 "2019-09-09T13:33:16Z")

</div>

Hey I was hoping to package my ansible modules to easier share code between them. So I used setuptools and entry\_points.console\_scripts as you can see here https://gitlab.com/stemid/ansible-siptrack/blob/2eac2c59c9e338…

---

## [Ansible and Satellite 6.4 - Waiting for Promote To Finish](https://forum.ansible.com/t/ansible-and-satellite-6-4-waiting-for-promote-to-finish/31079)

<div class="topic-metadata">

**Author:** [@Cade\_Lambert](https://forum.ansible.com/u/Cade_Lambert)\
**Replies:** 8\
**Last updated:** [September 9, 2019, 1:10pm UTC](https://forum.ansible.com/t/ansible-and-satellite-6-4-waiting-for-promote-to-finish/31079 "2019-09-09T13:10:39Z")

</div>

I created a playbook to connect to Satellite via API, publish new content views, and promote the various lifecycle environments to these new Content View versions, looping through a list of Lifecycle Environments. The is…

---

## [How to iterate over nested list and split it into two groups using add\_host?](https://forum.ansible.com/t/how-to-iterate-over-nested-list-and-split-it-into-two-groups-using-add-host/31227)

<div class="topic-metadata">

**Author:** [@autogun](https://forum.ansible.com/u/autogun)\
**Replies:** 4\
**Last updated:** [September 9, 2019, 12:42pm UTC](https://forum.ansible.com/t/how-to-iterate-over-nested-list-and-split-it-into-two-groups-using-add-host/31227 "2019-09-09T12:42:52Z")

</div>

Hey, Given the following playbook - hosts: localhost gather\_facts: false vars: my\_hosts: \[‘host1’, ‘host2’\] \[‘host3’\] name: Add host add\_host: name: ‘{{ item }}’ groups: “group{{ index }}” loop: “{{ m…

---

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

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 2\
**Last updated:** [September 9, 2019, 11:51am UTC](https://forum.ansible.com/t/shell/31233 "2019-09-09T11:51:32Z")

</div>

Hi, Please help me with this error which I am getting below : play-book:

---

## [Copy files from Local to all Destinations using synchronize module fails.](https://forum.ansible.com/t/copy-files-from-local-to-all-destinations-using-synchronize-module-fails/31230)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 10:40am UTC](https://forum.ansible.com/t/copy-files-from-local-to-all-destinations-using-synchronize-module-fails/31230 "2019-09-09T10:40:57Z")

</div>

I wish to copy all files from localhost IP(10.8.33.44) folder location: /app/tmpfiles/ to multiple destination IPs with user id user2 at location /app/IBM/profiles/backup/54166/ I run the playbook from localhost IP(1…

---

## [Easy way to learn Data Science](https://forum.ansible.com/t/easy-way-to-learn-data-science/31229)

<div class="topic-metadata">

**Author:** [@Nishanth\_Shetty](https://forum.ansible.com/u/Nishanth_Shetty)\
**Replies:** 0\
**Last updated:** [September 9, 2019, 7:46am UTC](https://forum.ansible.com/t/easy-way-to-learn-data-science/31229 "2019-09-09T07:46:01Z")

</div>

Data is the backbone of modern development, and not just in the tech industry. Shaping everything from healthcare to gaming to marketing, developers need to have the skills to excel in a data-driven future. At Packt its…

---

## [win\_domain\_controller "controller for the domain could not be contacted"](https://forum.ansible.com/t/win-domain-controller-controller-for-the-domain-could-not-be-contacted/31224)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 3:13am UTC](https://forum.ansible.com/t/win-domain-controller-controller-for-the-domain-could-not-be-contacted/31224 "2019-09-08T03:13:21Z")

</div>

After making a new domain, and adding a server to it, cant promote that server to domain controller. heres how im trying, \` hosts: domaincontrollers\[1:\] tasks: name: set dns for other domain controllers win\_dns\_cli…

---

## [win\_domain, win\_reboot, what to wait or test\_command for?](https://forum.ansible.com/t/win-domain-win-reboot-what-to-wait-or-test-command-for/31223)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 0\
**Last updated:** [September 8, 2019, 2:53am UTC](https://forum.ansible.com/t/win-domain-win-reboot-what-to-wait-or-test-command-for/31223 "2019-09-08T02:53:04Z")

</div>

When making a domain in ansible, ive been a playbook like this, \` hosts: domaincontrollers\[0\] tasks: name: make the domain win\_domain: dns\_domain\_name: foo.local safe\_mode\_password: A1!vagrant register: check…

---

## [cli\_command executing on localhost](https://forum.ansible.com/t/cli-command-executing-on-localhost/31222)

<div class="topic-metadata">

**Author:** [@JP-OKC](https://forum.ansible.com/u/JP-OKC)\
**Replies:** 0\
**Last updated:** [September 7, 2019, 4:35pm UTC](https://forum.ansible.com/t/cli-command-executing-on-localhost/31222 "2019-09-07T16:35:08Z")

</div>

I have a playbook to harden the NXOS API on Nexus switches. It requires connecting to the Nexus, running the bash shell and executing some commands to configure iptables. Some of the commands execute correctly and others…

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

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