# Archives

**URL:** https://forum.ansible.com/c/archives/31.md?page=315

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

**Page:** 316

---

## [Calling a variable within a variable within a jinja pipe filter](https://forum.ansible.com/t/calling-a-variable-within-a-variable-within-a-jinja-pipe-filter/29565)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [February 2, 2019, 12:22pm UTC](https://forum.ansible.com/t/calling-a-variable-within-a-variable-within-a-jinja-pipe-filter/29565 "2019-02-02T12:22:59Z")

</div>

I am trying to do two things: Call a variable while trying to set\_fact within a jinja pipe filter Prevent fails when the user isn’t found \` name: “Find the user\_id for {{ user }}” set\_fact: uid: “{{ (userinfo.json…

---

## [Access specific elements using with\_items / with\_subelememts](https://forum.ansible.com/t/access-specific-elements-using-with-items-with-subelememts/29543)

<div class="topic-metadata">

**Author:** [@Saranya\_N](https://forum.ansible.com/u/Saranya_N)\
**Replies:** 4\
**Last updated:** [February 2, 2019, 12:09pm UTC](https://forum.ansible.com/t/access-specific-elements-using-with-items-with-subelememts/29543 "2019-02-02T12:09:36Z")

</div>

I have a variable file with dictionary under a role like below format : Applformat: - Appname : app-main Parameters: - x : a Y : b Z : c - x : d Y : e …

---

## [Issue with vmware\_guest\_snapshot module](https://forum.ansible.com/t/issue-with-vmware-guest-snapshot-module/24494)

<div class="topic-metadata">

**Author:** [@americanoz](https://forum.ansible.com/u/americanoz)\
**Replies:** 12\
**Last updated:** [February 2, 2019, 10:54am UTC](https://forum.ansible.com/t/issue-with-vmware-guest-snapshot-module/24494 "2019-02-02T10:54:02Z")

</div>

Hi all, I have been having an issue with trying to get this module working correctly. I believe it is the way I am laying out the code. I have seen some solutions from Kai and he seems to have a very good handle on it s…

---

## [Help with mongodb\_replicaset PR requested](https://forum.ansible.com/t/help-with-mongodb-replicaset-pr-requested/29601)

<div class="topic-metadata">

**Author:** [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Replies:** 0\
**Last updated:** [February 2, 2019, 9:01am UTC](https://forum.ansible.com/t/help-with-mongodb-replicaset-pr-requested/29601 "2019-02-02T09:01:35Z")

</div>

Hello, I’d like to ask for a little help getting a PR accepted… https://github.com/ansible/ansible/pull/49690 This has already been reviewed and I have made changes based on that feedback. I have already had a PR for …

---

## [Ansible Playbook ssh connectivity fails only on a particular server](https://forum.ansible.com/t/ansible-playbook-ssh-connectivity-fails-only-on-a-particular-server/29600)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 0\
**Last updated:** [February 2, 2019, 6:12am UTC](https://forum.ansible.com/t/ansible-playbook-ssh-connectivity-fails-only-on-a-particular-server/29600 "2019-02-02T06:12:32Z")

</div>

Below ansible-playbook connectivity works fine for all my servers except server2. Below command fails. \` ansible-playbook -vvvv /opt/test/scripts/Auto/site.yml -i /opt/test/scripts/Auto/hosts.txt -e “source\_host=server…

---

## [removing a domain form sssd.conf](https://forum.ansible.com/t/removing-a-domain-form-sssd-conf/29592)

<div class="topic-metadata">

**Author:** [@Lewis\_Carroll](https://forum.ansible.com/u/Lewis_Carroll)\
**Replies:** 3\
**Last updated:** [February 2, 2019, 1:33am UTC](https://forum.ansible.com/t/removing-a-domain-form-sssd-conf/29592 "2019-02-02T01:33:13Z")

</div>

I am trying to figure out how to use replace or lineinfile to remove a domain entry in sssd.conf. Here is example: \[domain/example\] cache\_credentials = false enumerate = true ldap\_schema = rfc2307 ldap\_rfc2307\_fall…

---

## [How to import/load env/ini file that is located in file on the Remote/Target server?](https://forum.ansible.com/t/how-to-import-load-env-ini-file-that-is-located-in-file-on-the-remote-target-server/29416)

<div class="topic-metadata">

**Author:** [@Chaz\_E](https://forum.ansible.com/u/Chaz_E)\
**Replies:** 7\
**Last updated:** [February 2, 2019, 12:29am UTC](https://forum.ansible.com/t/how-to-import-load-env-ini-file-that-is-located-in-file-on-the-remote-target-server/29416 "2019-02-02T00:29:49Z")

</div>

QUESTION: How can we load or import an env/ini file that is located in a file on the Remote/Target server? GOAL: We have an env/ini file on the remote/target server. We want to read in that file and use the values as …

---

## [Cisco Show Power Inline command with Ansible](https://forum.ansible.com/t/cisco-show-power-inline-command-with-ansible/29584)

<div class="topic-metadata">

**Author:** [@Michael\_Ikram](https://forum.ansible.com/u/Michael_Ikram)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 10:00pm UTC](https://forum.ansible.com/t/cisco-show-power-inline-command-with-ansible/29584 "2019-02-01T22:00:01Z")

</div>

Hi There, I have a request to match a specific line in output of show power inline command below, mainly I need to extract line number 4 from below: DP-M-R4-C9K#sh power inline Module Available Used Remaining (Watts)…

---

## [Updating Ansible hosts inventory dynamically](https://forum.ansible.com/t/updating-ansible-hosts-inventory-dynamically/29596)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 3\
**Last updated:** [February 1, 2019, 8:51pm UTC](https://forum.ansible.com/t/updating-ansible-hosts-inventory-dynamically/29596 "2019-02-01T20:51:46Z")

</div>

We have our hosts inventory organized by environments. We tend to have alpha versions of software deployed in our test environment. Are there any thoughts on keeping the inventory dynamically updated if we decide to move…

---

## [Ansible Inventory file](https://forum.ansible.com/t/ansible-inventory-file/29588)

<div class="topic-metadata">

**Author:** [@Deepak\_Sharma1](https://forum.ansible.com/u/Deepak_Sharma1)\
**Replies:** 6\
**Last updated:** [February 1, 2019, 8:07pm UTC](https://forum.ansible.com/t/ansible-inventory-file/29588 "2019-02-01T20:07:09Z")

</div>

Hi Everyone, I am new to Ansible , I have created new inventory yml file with below details . KafkaNonprodservers: hosts: abc.abc.com:2022 abd.abd.com:2022 ansible\_user : abc but I am getting below error ansible…

---

## [win\_task\_scheduler - setting memory and io priority](https://forum.ansible.com/t/win-task-scheduler-setting-memory-and-io-priority/29595)

<div class="topic-metadata">

**Author:** [@Subhi\_Andrews](https://forum.ansible.com/u/Subhi_Andrews)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 7:03pm UTC](https://forum.ansible.com/t/win-task-scheduler-setting-memory-and-io-priority/29595 "2019-02-01T19:03:14Z")

</div>

Is there a way to do this via win\_task\_scheduler or otherwise? Priority setting in win\_task\_scheduler only affects process priority and not IO/mem priorities. Anyone has any suggestions?

---

## [Groups in Tower](https://forum.ansible.com/t/groups-in-tower/29591)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 3\
**Last updated:** [February 1, 2019, 6:25pm UTC](https://forum.ansible.com/t/groups-in-tower/29591 "2019-02-01T18:25:22Z")

</div>

Hi, When I’m running Ansible Engine (CLI), I can have multiple groups in the inventory file. \[switch\] … \[router\] … Each of these groups uses different credentials. In CLI, I can have a different variable file under…

---

## [become\_flags for specific inventory host](https://forum.ansible.com/t/become-flags-for-specific-inventory-host/29582)

<div class="topic-metadata">

**Author:** [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Replies:** 2\
**Last updated:** [February 1, 2019, 12:09pm UTC](https://forum.ansible.com/t/become-flags-for-specific-inventory-host/29582 "2019-02-01T12:09:37Z")

</div>

Hi, I have the need to configure become\_flags var for some of my inventory hosts (because of old sudo versions not accepting " -H -S -n"). I was trying to do this on my dynamic inventory with hostvars for that host, bu…

---

## [Confused about architecture: awx-web, aws-task, rabbitmq and memcached](https://forum.ansible.com/t/confused-about-architecture-awx-web-aws-task-rabbitmq-and-memcached/29589)

<div class="topic-metadata">

**Author:** [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 11:21am UTC](https://forum.ansible.com/t/confused-about-architecture-awx-web-aws-task-rabbitmq-and-memcached/29589 "2019-02-01T11:21:19Z")

</div>

Hi all, after some local docker testing, using the docker-compose file located in https://github.com/geerlingguy/awx-container, I am going to deploy a “real” environment, but I have some questions about the installation,…

---

## [build an older version of awx](https://forum.ansible.com/t/build-an-older-version-of-awx/29406)

<div class="topic-metadata">

**Author:** [@Me\_Mo](https://forum.ansible.com/u/Me_Mo)\
**Replies:** 8\
**Last updated:** [February 1, 2019, 9:23am UTC](https://forum.ansible.com/t/build-an-older-version-of-awx/29406 "2019-02-01T09:23:50Z")

</div>

hi i don want to build the actual awx version. (2.1.2) i want e.g. 2.1.0. is it possible to set the version number in the inventory? this sounds like it is possible, but there is no variable Remove these lines if y…

---

## [Ansible play to check if port is up on windows target host](https://forum.ansible.com/t/ansible-play-to-check-if-port-is-up-on-windows-target-host/29587)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 5:03am UTC](https://forum.ansible.com/t/ansible-play-to-check-if-port-is-up-on-windows-target-host/29587 "2019-02-01T05:03:33Z")

</div>

Maybe https://docs.ansible.com/ansible/latest/modules/win\_wait\_for\_module.html instead?

---

## [Network, vars, and role housecleaning](https://forum.ansible.com/t/network-vars-and-role-housecleaning/29586)

<div class="topic-metadata">

**Author:** [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 4:32am UTC](https://forum.ansible.com/t/network-vars-and-role-housecleaning/29586 "2019-02-01T04:32:26Z")

</div>

So I need to define lots of variables for a specific host because I am configuring its network (turning more interfaces on and whatnot). So I created a host\_vars/oddhost.yml that have lines like this: home\_nic: "eth0" …

---

## [import task in loop](https://forum.ansible.com/t/import-task-in-loop/29585)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Trubov](https://forum.ansible.com/u/Dmitriy_Trubov)\
**Replies:** 0\
**Last updated:** [February 1, 2019, 12:50am UTC](https://forum.ansible.com/t/import-task-in-loop/29585 "2019-02-01T00:50:31Z")

</div>

Hi, I want to execute certain tasks in loop until some condition satisfied. Here is main module: name: Wait MainStatus Playbook vars: cosId: “{{realCosId}}” jsonStatus: {“status”:‘in-progress’} hosts: all tasks: …

---

## [Conditional Statements help](https://forum.ansible.com/t/conditional-statements-help/29583)

<div class="topic-metadata">

**Author:** [@Alan\_Harkleroad](https://forum.ansible.com/u/Alan_Harkleroad)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 8:34pm UTC](https://forum.ansible.com/t/conditional-statements-help/29583 "2019-01-31T20:34:23Z")

</div>

Right now I am trying to have a role execute a function if the condition is host a or b, and before that only complete the previous task if its not a or b. The problem I am having with the below is that is never reads t…

---

## [Override a role's templates?](https://forum.ansible.com/t/override-a-roles-templates/29579)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 2\
**Last updated:** [January 31, 2019, 4:57pm UTC](https://forum.ansible.com/t/override-a-roles-templates/29579 "2019-01-31T16:57:10Z")

</div>

Hi I'm using roles extensively to separate functionality, and I'm trying to keep the roles as general as possible. The resulting playbooks are very minimal, containing not more than a set of include\_role tasks. Many …

---

## [RabbitMQ Hostname Mismatch](https://forum.ansible.com/t/rabbitmq-hostname-mismatch/27825)

<div class="topic-metadata">

**Author:** [@muhammed](https://forum.ansible.com/u/muhammed)\
**Replies:** 3\
**Last updated:** [January 31, 2019, 11:33am UTC](https://forum.ansible.com/t/rabbitmq-hostname-mismatch/27825 "2019-01-31T11:33:02Z")

</div>

Farily new to ansible, so apologies if I’m missing something obvious. Ansible version: 2.5.5 Issue: My task throws a hostname mismatch error when adding a new vhost on a server that contains a fresh installation of rab…

---

## [Callback with grafana](https://forum.ansible.com/t/callback-with-grafana/29578)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 1\
**Last updated:** [January 31, 2019, 2:03am UTC](https://forum.ansible.com/t/callback-with-grafana/29578 "2019-01-31T02:03:45Z")

</div>

Hello guys, I’m trying to set up callback not available from the ‘https://blog.octo.com/en/walkthrough-watch-your-ansible-deployments-in-grafana/’ link, but it is not working and displays the following message: \[DEPREC…

---

## [How to use variable in "when" statement in ansible?](https://forum.ansible.com/t/how-to-use-variable-in-when-statement-in-ansible/29484)

<div class="topic-metadata">

**Author:** [@Sahar](https://forum.ansible.com/u/Sahar)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 12:34am UTC](https://forum.ansible.com/t/how-to-use-variable-in-when-statement-in-ansible/29484 "2019-01-31T00:34:38Z")

</div>

Any idea how can I fix the below error? tasks: name: check the state (primary/secondary/standalone) asa\_command: commands: ‘show version | i “{{ OldImage }}”’ register: state include: reboot.yml when: ‘“{{ …

---

## [Overridden variable leaking out of dependency declared in role meta?](https://forum.ansible.com/t/overridden-variable-leaking-out-of-dependency-declared-in-role-meta/29576)

<div class="topic-metadata">

**Author:** [@moreati](https://forum.ansible.com/u/moreati)\
**Replies:** 0\
**Last updated:** [January 30, 2019, 9:08pm UTC](https://forum.ansible.com/t/overridden-variable-leaking-out-of-dependency-declared-in-role-meta/29576 "2019-01-30T21:08:11Z")

</div>

I have 2 roles (r1 and r2), r2 depends on r1 and the dependency overrides a variable (x). I would expect the overridden value to only apply while r1 is run as a dependency. However the overridden value gets applied throu…

---

## [Jenkins, Ansible, when conditional](https://forum.ansible.com/t/jenkins-ansible-when-conditional/29575)

<div class="topic-metadata">

**Author:** [@eric.dunn](https://forum.ansible.com/u/eric.dunn)\
**Replies:** 0\
**Last updated:** [January 30, 2019, 7:56pm UTC](https://forum.ansible.com/t/jenkins-ansible-when-conditional/29575 "2019-01-30T19:56:54Z")

</div>

I am running an ansible job that distributes apps and configurations to various servers. I have a when condition on one of my roles. It seems to slow down the process during the installation when it does not meet the c…

---

## [Logging into my local system w/ ansible](https://forum.ansible.com/t/logging-into-my-local-system-w-ansible/29574)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 7:43pm UTC](https://forum.ansible.com/t/logging-into-my-local-system-w-ansible/29574 "2019-01-30T19:43:05Z")

</div>

Hey all, So I’ve got a playbook that runs and in my hosts list is the system running the checks themselves…it can’t seem to login to itself. I get this error: fatal: \[ansible-lx\]: UNREACHABLE! =\> {“changed”: false, “ms…

---

## [issue with running inventory with gcp\_compute plugin filters](https://forum.ansible.com/t/issue-with-running-inventory-with-gcp-compute-plugin-filters/29573)

<div class="topic-metadata">

**Author:** [@zach.delano](https://forum.ansible.com/u/zach.delano)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 6:53pm UTC](https://forum.ansible.com/t/issue-with-running-inventory-with-gcp-compute-plugin-filters/29573 "2019-01-30T18:53:59Z")

</div>

I’m trying to get a list of Ubuntu instances from a GCE project. This is what my inventory file looks like. plugin: gcp\_compute projects: filters: disks.licenses:ubuntu auth\_kind: serviceaccount service\_acco…

---

## [New module being not merged since monthes, a year now... PR #3483](https://forum.ansible.com/t/new-module-being-not-merged-since-monthes-a-year-now-pr-3483/29498)

<div class="topic-metadata">

**Author:** [@pascalheraud73](https://forum.ansible.com/u/pascalheraud73)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 5:13pm UTC](https://forum.ansible.com/t/new-module-being-not-merged-since-monthes-a-year-now-pr-3483/29498 "2019-01-30T17:13:46Z")

</div>

Hello, I’m still looking for a mean to get this PR merged : https://github.com/ansible/ansible/pull/34837 It has been submitted one year ago now. We are using the module in production, all checks passed. I read Ansi…

---

## [My ansible playbook is very slow since couple of days and hangs alot while execution.](https://forum.ansible.com/t/my-ansible-playbook-is-very-slow-since-couple-of-days-and-hangs-alot-while-execution/29553)

<div class="topic-metadata">

**Author:** [@neelam\_poonawala](https://forum.ansible.com/u/neelam_poonawala)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 5:05pm UTC](https://forum.ansible.com/t/my-ansible-playbook-is-very-slow-since-couple-of-days-and-hangs-alot-while-execution/29553 "2019-01-30T17:05:38Z")

</div>

Any suggestions how do I fix it? I do have this in my ansible.cfg file \[defaults\] roles\_path = ./roles host\_key\_checking = False \[ssh\_connection\] pipelining = True control\_path = /tmp/ansible-ssh-%%h-%%p-%%r

---

## [Instance group precedence](https://forum.ansible.com/t/instance-group-precedence/29572)

<div class="topic-metadata">

**Author:** [@Sindhuja\_Koneru](https://forum.ansible.com/u/Sindhuja_Koneru)\
**Replies:** 0\
**Last updated:** [January 30, 2019, 4:04pm UTC](https://forum.ansible.com/t/instance-group-precedence/29572 "2019-01-30T16:04:57Z")

</div>

Ansible docs say instance group selected in template has higher precedence than instance group in inventory. Instance group in inventory has hugest precedence than instance group in organization. Template \> Inventory \>…

[Previous page](https://forum.ansible.com/c/archives/31.md?page=314)

[Next page](https://forum.ansible.com/c/archives/31.md?page=316)
