# Ansible Project

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

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

**Page:** 174

---

## [Importing a yaml file in ansible-playbook](https://forum.ansible.com/t/importing-a-yaml-file-in-ansible-playbook/30986)

<div class="topic-metadata">

**Author:** [@PranavBarve](https://forum.ansible.com/u/PranavBarve)\
**Replies:** 0\
**Last updated:** [August 8, 2019, 7:18am UTC](https://forum.ansible.com/t/importing-a-yaml-file-in-ansible-playbook/30986 "2019-08-08T07:18:09Z")

</div>

I am running ansilbe-playbooks using the ansible-runner in python. I have a configuration yaml file. I want my playbooks to import that configuration file in order to use the variables from that file. I am using jinja2…

---

## [callback plugin in tower](https://forum.ansible.com/t/callback-plugin-in-tower/30985)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [August 8, 2019, 7:13am UTC](https://forum.ansible.com/t/callback-plugin-in-tower/30985 "2019-08-08T07:13:54Z")

</div>

Hi team, Call back pluglin (yaml ) not working in Ansible tower. Can anyone help me how to configure below settings in Ansible tower . STDOUT\_CALLBACK = yaml bin\_ansible\_callbacks = True callback\_whitelist = yaml, ti…

---

## [problem copy/template module with edgerouter](https://forum.ansible.com/t/problem-copy-template-module-with-edgerouter/30968)

<div class="topic-metadata">

**Author:** [@cch](https://forum.ansible.com/u/cch)\
**Replies:** 2\
**Last updated:** [August 8, 2019, 5:16am UTC](https://forum.ansible.com/t/problem-copy-template-module-with-edgerouter/30968 "2019-08-08T05:16:24Z")

</div>

I want to configure some of edgerouters with ansible one of the tasks is send a user\`s public key then config authenticate with that key the task is quite simple but I found although the tasks runs successfully , but …

---

## [Folder Permission for Multiple directories at once](https://forum.ansible.com/t/folder-permission-for-multiple-directories-at-once/30983)

<div class="topic-metadata">

**Author:** [@Sandip\_Bhattacharya](https://forum.ansible.com/u/Sandip_Bhattacharya)\
**Replies:** 0\
**Last updated:** [August 8, 2019, 1:43am UTC](https://forum.ansible.com/t/folder-permission-for-multiple-directories-at-once/30983 "2019-08-08T01:43:40Z")

</div>

Please always share your actual error message to help people helping you.

---

## [Typo in hard link example for file module?](https://forum.ansible.com/t/typo-in-hard-link-example-for-file-module/30981)

<div class="topic-metadata">

**Author:** [@Sandip\_Bhattacharya](https://forum.ansible.com/u/Sandip_Bhattacharya)\
**Replies:** 2\
**Last updated:** [August 8, 2019, 12:49am UTC](https://forum.ansible.com/t/typo-in-hard-link-example-for-file-module/30981 "2019-08-08T00:49:00Z")

</div>

\[my third attempt to send this message got lost somehow. Trying again.\] In the documentation for the file module at: https://docs.ansible.com/ansible/latest/modules/file\_module.html An example for creating hard links i…

---

## [How can I return a list from a dict based on a sub items value?](https://forum.ansible.com/t/how-can-i-return-a-list-from-a-dict-based-on-a-sub-items-value/30980)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 8:59pm UTC](https://forum.ansible.com/t/how-can-i-return-a-list-from-a-dict-based-on-a-sub-items-value/30980 "2019-08-07T20:59:34Z")

</div>

How can I return a list from a dict based on a sub items value? If I have a dictionary like this: ospackages: fail2ban: state: “present” Ubuntu: 1604: “fail2ban” 1804: “fail2ban” Debian: 9: “fail2ban” CentOS: …

---

## [delegate\_to /one member/ of a group](https://forum.ansible.com/t/delegate-to-one-member-of-a-group/19702)

<div class="topic-metadata">

**Author:** [@Elliott\_Barrere](https://forum.ansible.com/u/Elliott_Barrere)\
**Replies:** 5\
**Last updated:** [August 7, 2019, 6:42pm UTC](https://forum.ansible.com/t/delegate-to-one-member-of-a-group/19702 "2019-08-07T18:42:06Z")

</div>

Hi there - I’m trying to do something I think should be fairly easy, but I can’t seem to find the right magic. I’d like to run a set of commands on behalf of my server, against any one of another group of servers. Basic…

---

## [playbooks with no gatherfacts and using fqdn](https://forum.ansible.com/t/playbooks-with-no-gatherfacts-and-using-fqdn/30978)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [August 7, 2019, 5:39pm UTC](https://forum.ansible.com/t/playbooks-with-no-gatherfacts-and-using-fqdn/30978 "2019-08-07T17:39:26Z")

</div>

{{ inventory\_hostname }} or {{ ansible\_host }} depending on how your inventory.

---

## [Server application Widlfly in Ansible](https://forum.ansible.com/t/server-application-widlfly-in-ansible/30959)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 4:32pm UTC](https://forum.ansible.com/t/server-application-widlfly-in-ansible/30959 "2019-08-07T16:32:27Z")

</div>

Hey, I have on problem, i deploy application on server wildfly. I want to know if possible to find link url of my application who is deploy on this server. I think that it’s this modele but not works : http://{{ inven…

---

## [POWER SHELL QUESTIONS](https://forum.ansible.com/t/power-shell-questions/30976)

<div class="topic-metadata">

**Author:** [@ronny\_saavedra](https://forum.ansible.com/u/ronny_saavedra)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 4:04pm UTC](https://forum.ansible.com/t/power-shell-questions/30976 "2019-08-07T16:04:36Z")

</div>

Good morning, I’m in a vcenter using powershell commands for Linux machines, I’m trying to rename or change (Name for CPU and NumCpu for CPUs) but it doesn’t work out, I hope you can help me. The command used is this: …

---

## [Exposing variables from connection plugin](https://forum.ansible.com/t/exposing-variables-from-connection-plugin/30975)

<div class="topic-metadata">

**Author:** [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Replies:** 2\
**Last updated:** [August 7, 2019, 3:44pm UTC](https://forum.ansible.com/t/exposing-variables-from-connection-plugin/30975 "2019-08-07T15:44:42Z")

</div>

Hello all I have modified the psrp plugin, so when connecting, it also stablishes an SSH connection with a SOCKS proxy in a random port, so psrp connection is stablished using that SOCKS proxy. As this is a random numbe…

---

## [dynamic inventory](https://forum.ansible.com/t/dynamic-inventory/30932)

<div class="topic-metadata">

**Author:** [@Sloan](https://forum.ansible.com/u/Sloan)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 3:09pm UTC](https://forum.ansible.com/t/dynamic-inventory/30932 "2019-08-07T15:09:05Z")

</div>

I am trying to get dynamic inventory working. I have not found much on the internet or in the docs that give a high level overview as to how the configs and files relate. Any tips? Can I get some suggestions on my dynam…

---

## [ecs\_taskdefinition module not creating new revision](https://forum.ansible.com/t/ecs-taskdefinition-module-not-creating-new-revision/21899)

<div class="topic-metadata">

**Author:** [@Niko\_Ruotsalainen](https://forum.ansible.com/u/Niko_Ruotsalainen)\
**Replies:** 4\
**Last updated:** [August 7, 2019, 2:46pm UTC](https://forum.ansible.com/t/ecs-taskdefinition-module-not-creating-new-revision/21899 "2019-08-07T14:46:33Z")

</div>

Hi, I’m trying to use ecs\_taskdefinition module to create task definitions to ECS. I’m using example from https://docs.ansible.com/ansible/ecs\_taskdefinition\_module.html \` --- - hosts: localhost tasks: - name:…

---

## [How to escape doublequote and curly braces](https://forum.ansible.com/t/how-to-escape-doublequote-and-curly-braces/30969)

<div class="topic-metadata">

**Author:** [@Rakesh\_Parida](https://forum.ansible.com/u/Rakesh_Parida)\
**Replies:** 4\
**Last updated:** [August 7, 2019, 12:26pm UTC](https://forum.ansible.com/t/how-to-escape-doublequote-and-curly-braces/30969 "2019-08-07T12:26:09Z")

</div>

i want to have an output as follows: ‘{“components”:“my\_variable”}’ from my playbook. name: Review the Joined List set\_fact: jetty\_c: “{{ ''{"\\components”:“' + my\_joined\_list + '”}‘’ }}" Its giving me error. Can y…

---

## [using variable from another file](https://forum.ansible.com/t/using-variable-from-another-file/30966)

<div class="topic-metadata">

**Author:** [@Noctis\_Geek](https://forum.ansible.com/u/Noctis_Geek)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 12:10pm UTC](https://forum.ansible.com/t/using-variable-from-another-file/30966 "2019-08-07T12:10:30Z")

</div>

Hello, I would like to know the syntax that would allow me to retrieve the contents of a file and use it to make a variable in a new file in my example I have my YAML configuration file and I have a VARIABLE file and I d…

---

## [Error in ansible Python API](https://forum.ansible.com/t/error-in-ansible-python-api/30974)

<div class="topic-metadata">

**Author:** [@PranavBarve](https://forum.ansible.com/u/PranavBarve)\
**Replies:** 1\
**Last updated:** [August 7, 2019, 10:58am UTC](https://forum.ansible.com/t/error-in-ansible-python-api/30974 "2019-08-07T10:58:00Z")

</div>

I have encountered an error while working with ansible Python API. Error : “the connection plugin ‘\<class ‘ansible.utils.sentinel.Sentinel’\>’ was not found” I googled this error and found this answer : https://github.c…

---

## [yum: Installroot to empty directory](https://forum.ansible.com/t/yum-installroot-to-empty-directory/30972)

<div class="topic-metadata">

**Author:** [@Oleg\_Kotsar](https://forum.ansible.com/u/Oleg_Kotsar)\
**Replies:** 0\
**Last updated:** [August 7, 2019, 9:23am UTC](https://forum.ansible.com/t/yum-installroot-to-empty-directory/30972 "2019-08-07T09:23:21Z")

</div>

Hello. I would like to install the base CentOS to a specify directory, example to /var/centos. The directory is empty. I usage the next command in yum: \` yum --disablerepo=‘\*’ --enablerepo=‘base,updates’ --releasever=…

---

## [Help for variable defination](https://forum.ansible.com/t/help-for-variable-defination/30930)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 3\
**Last updated:** [August 7, 2019, 8:23am UTC](https://forum.ansible.com/t/help-for-variable-defination/30930 "2019-08-07T08:23:06Z")

</div>

HI Ansible Gurus, I have a specific snippet of code which i defined in default/main.yaml of a role xyz. sw\_yum\_repositories: name: sw description: Dangerous sw file: sw-gw baseurl: “” enabled: no gpgcheck: “{{gp…

---

## [Check attempt count in runtime](https://forum.ansible.com/t/check-attempt-count-in-runtime/30967)

<div class="topic-metadata">

**Author:** [@Zolvaring](https://forum.ansible.com/u/Zolvaring)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 7:32pm UTC](https://forum.ansible.com/t/check-attempt-count-in-runtime/30967 "2019-08-06T19:32:51Z")

</div>

I’m trying to work with an API in an idempotent and DRY fashion and cannot find a way to do this for the life of me. What I want to do is hit an endpoint with POST, detect if the response indicates the resource already e…

---

## [Variable encapsulation](https://forum.ansible.com/t/variable-encapsulation/30965)

<div class="topic-metadata">

**Author:** [@sivel](https://forum.ansible.com/u/sivel)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 2:31pm UTC](https://forum.ansible.com/t/variable-encapsulation/30965 "2019-08-06T14:31:46Z")

</div>

You want to use the vars lookup: when: item.value != lookup(‘vars’, item.label)

---

## [import\_tasks: vs include: when using when: conditional](https://forum.ansible.com/t/import-tasks-vs-include-when-using-when-conditional/30958)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 2\
**Last updated:** [August 6, 2019, 2:25pm UTC](https://forum.ansible.com/t/import-tasks-vs-include-when-using-when-conditional/30958 "2019-08-06T14:25:31Z")

</div>

Simple tasks, where I want the “Remote git configuration” task to only be run when apache2\_configuration == ‘git’ debug: msg: “DEBUG: {{ apache2\_configuration }}” tags: apache2-servers name: Remote git configurat…

---

## [Regex pattern for selecting an inverted word on a list of strings](https://forum.ansible.com/t/regex-pattern-for-selecting-an-inverted-word-on-a-list-of-strings/30964)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 1:12pm UTC](https://forum.ansible.com/t/regex-pattern-for-selecting-an-inverted-word-on-a-list-of-strings/30964 "2019-08-06T13:12:58Z")

</div>

The goal is to select all the lines of a list which do NOT contain a specific word. For instance, “{{ files }}” contains a list of filenames. We need to select all the filenames which do not include the word ‘all’. So …

---

## [New Ansible release 2.8.0](https://forum.ansible.com/t/new-ansible-release-2-8-0/30353)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 2\
**Last updated:** [August 6, 2019, 12:55pm UTC](https://forum.ansible.com/t/new-ansible-release-2-8-0/30353 "2019-08-06T12:55:17Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.8.0 is now available! How do you get it?

---

## [Ansible any\_errors\_fatal does not work as expected. Need Fix](https://forum.ansible.com/t/ansible-any-errors-fatal-does-not-work-as-expected-need-fix/30957)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 3\
**Last updated:** [August 6, 2019, 9:31am UTC](https://forum.ansible.com/t/ansible-any-errors-fatal-does-not-work-as-expected-need-fix/30957 "2019-08-06T09:31:38Z")

</div>

I’m on the latest version of ansible while the python version is 2.7.5 Hi, Ansible any\_errors\_fatal module does not work as expected. Below is my ansible playbook which is expected to terminate execution as soon as it …

---

## [MANAGE LOGICMONITOR VIA ANSIBLE](https://forum.ansible.com/t/manage-logicmonitor-via-ansible/30950)

<div class="topic-metadata">

**Author:** [@Pramod\_Thombare](https://forum.ansible.com/u/Pramod_Thombare)\
**Replies:** 7\
**Last updated:** [August 6, 2019, 8:06am UTC](https://forum.ansible.com/t/manage-logicmonitor-via-ansible/30950 "2019-08-06T08:06:43Z")

</div>

Hello Team , i want to SDT logic monitor devices and device group via ansible , using the ansible doc i created playbook for same . but it shows module error , any one here can help me out of these issue . Regards, Pr…

---

## [Ansible VMWare Dynamic inventory script pulling Cluster IP instead of server IP](https://forum.ansible.com/t/ansible-vmware-dynamic-inventory-script-pulling-cluster-ip-instead-of-server-ip/30952)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 1\
**Last updated:** [August 6, 2019, 6:13am UTC](https://forum.ansible.com/t/ansible-vmware-dynamic-inventory-script-pulling-cluster-ip-instead-of-server-ip/30952 "2019-08-06T06:13:24Z")

</div>

I have been testing VMWare Dynamic inventory script (which ships with AWX 4.0.0.0) and recently noticed an issue where the sync results in the dynamic inventory script pulling and updating the IP address for the server a…

---

## [Ansible \[Errno 13\] Permission denied](https://forum.ansible.com/t/ansible-errno-13-permission-denied/30946)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 7\
**Last updated:** [August 6, 2019, 1:37am UTC](https://forum.ansible.com/t/ansible-errno-13-permission-denied/30946 "2019-08-06T01:37:03Z")

</div>

Hello All, Can I please get some help on this issue I have been trying to figure out for hours now. When I run the below command: I am trying to run the below command from my: Mac and connect to an amazon linux 2 serv…

---

## [Variable within variable](https://forum.ansible.com/t/variable-within-variable/30956)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 1\
**Last updated:** [August 5, 2019, 5:18pm UTC](https://forum.ansible.com/t/variable-within-variable/30956 "2019-08-05T17:18:45Z")

</div>

I have the following and there may be several vlans per switch. “cisco\_ios.vlans”: { “35”: { “id”: “35”, “mtu”: “1500”, “name”: “CC\_internal\_subnet\_35”, “ports”: \[ “GigabitEthernet1/0/1”, “GigabitEthernet1/0/2”, …

---

## [Ansible callback](https://forum.ansible.com/t/ansible-callback/30948)

<div class="topic-metadata">

**Author:** [@jegansignup](https://forum.ansible.com/u/jegansignup)\
**Replies:** 1\
**Last updated:** [August 5, 2019, 8:58am UTC](https://forum.ansible.com/t/ansible-callback/30948 "2019-08-05T08:58:09Z")

</div>

Hello All, Can anyone help me on this. I have requirement that send notify to LogicMonitor if any unexpected results are returned by ansible. I have checked supported callback module there I couldn’t find any module for…

---

## [Ansible for openstack](https://forum.ansible.com/t/ansible-for-openstack/30949)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 4\
**Last updated:** [August 5, 2019, 8:32am UTC](https://forum.ansible.com/t/ansible-for-openstack/30949 "2019-08-05T08:32:03Z")

</div>

Hi All, I have provisoned one instance with following order in openstack using Ansible: Download cloud image upload cloud image in Openstack created key pair created network created subnet created router created secur…

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

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