# Ansible Project

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

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

**Page:** 182

---

## [line break with lookup](https://forum.ansible.com/t/line-break-with-lookup/30682)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 1:32pm UTC](https://forum.ansible.com/t/line-break-with-lookup/30682 "2019-06-28T13:32:49Z")

</div>

Hy all, I have one file my\_file with this content : myfirstparaphrase I have this task : set\_fact: variable1: “{{ lookup(‘file’, ‘/home/ansible/my\_file’) | replace(’ ', ‘\\n’) }}” I want that in the end of my phras…

---

## [Vault in combination with a master-playbook](https://forum.ansible.com/t/vault-in-combination-with-a-master-playbook/30681)

<div class="topic-metadata">

**Author:** [@A\_Meier](https://forum.ansible.com/u/A_Meier)\
**Replies:** 0\
**Last updated:** [June 28, 2019, 8:22am UTC](https://forum.ansible.com/t/vault-in-combination-with-a-master-playbook/30681 "2019-06-28T08:22:08Z")

</div>

Hi, I am new to Ansible and have a questions about Vault in combination with a master-playbook. In the role-initialsetup in the default/main.yml the content is encrypted and the playbook play’s with these settings fine…

---

## [Multiple tomcat service on same server with ports](https://forum.ansible.com/t/multiple-tomcat-service-on-same-server-with-ports/30678)

<div class="topic-metadata">

**Author:** [@Ajay\_Prajapati](https://forum.ansible.com/u/Ajay_Prajapati)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 4:25am UTC](https://forum.ansible.com/t/multiple-tomcat-service-on-same-server-with-ports/30678 "2019-06-28T04:25:33Z")

</div>

Hi, I have multiple applications to run on multiple tomcat on Sami server.. I have playbook to install tomcat, I have to run the same playbook with different variables for ports Like for example var=8080, var=8090, etc …

---

## [Open and Close WinRM shells with each task?](https://forum.ansible.com/t/open-and-close-winrm-shells-with-each-task/30675)

<div class="topic-metadata">

**Author:** [@Tony\_Wyatt](https://forum.ansible.com/u/Tony_Wyatt)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 8:23pm UTC](https://forum.ansible.com/t/open-and-close-winrm-shells-with-each-task/30675 "2019-06-27T20:23:28Z")

</div>

We have noticed as we develop more and more complex plays that our Tower connections to inventory seem to be open/closed per task. Is this “by design”? What, if any, options can we specify to afford fewer WinRM session…

---

## [How can get a ansible output like a report for no technical audience](https://forum.ansible.com/t/how-can-get-a-ansible-output-like-a-report-for-no-technical-audience/30672)

<div class="topic-metadata">

**Author:** [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 7:20pm UTC](https://forum.ansible.com/t/how-can-get-a-ansible-output-like-a-report-for-no-technical-audience/30672 "2019-06-27T19:20:45Z")

</div>

Hi , I would you ask some suggestion how can get a ansible output like a report for no technical audience. I mean , the recap report is too ansible-operators ,the standardoutput is not coherent due to depends what are …

---

## [Issues with Python](https://forum.ansible.com/t/issues-with-python/30670)

<div class="topic-metadata">

**Author:** [@MJP](https://forum.ansible.com/u/MJP)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 5:27pm UTC](https://forum.ansible.com/t/issues-with-python/30670 "2019-06-27T17:27:07Z")

</div>

Hello, I have a playbook that connects to vcenter and enables me to create VM’s using a playbook. I just upgraded Ansible to 2.8 from 2.5 yesterday and now when i run this specific playbook, i get the following error: "…

---

## [How to check when at least one element of a list is not null](https://forum.ansible.com/t/how-to-check-when-at-least-one-element-of-a-list-is-not-null/30660)

<div class="topic-metadata">

**Author:** [@actionmystique](https://forum.ansible.com/u/actionmystique)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 5:06pm UTC](https://forum.ansible.com/t/how-to-check-when-at-least-one-element-of-a-list-is-not-null/30660 "2019-06-27T17:06:43Z")

</div>

The real goal here is to perform an action only when at least one of inventory\_hostname groups from group\_names matches one group from another list of groups (in this example: git|local|ntopng) . This is defined within …

---

## [How to move computer within OU in Active Directory](https://forum.ansible.com/t/how-to-move-computer-within-ou-in-active-directory/30671)

<div class="topic-metadata">

**Author:** [@Stefano\_Leandro](https://forum.ansible.com/u/Stefano_Leandro)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 4:59pm UTC](https://forum.ansible.com/t/how-to-move-computer-within-ou-in-active-directory/30671 "2019-06-27T16:59:42Z")

</div>

Hi, I would to ask how to move computer within OU in Active Directory . Im thinking to use the module win\_domain\_computer like this :

---

## [marker of module blockinfile](https://forum.ansible.com/t/marker-of-module-blockinfile/30669)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 4:10pm UTC](https://forum.ansible.com/t/marker-of-module-blockinfile/30669 "2019-06-27T16:10:48Z")

</div>

Hy, I don’t understand why when i use marker only or marker\_begin or marker\_end, Ansible put all time on marker in the beginning and the end alo … One exemple : name: Inserer clepub dans authorized\_key blockinfile: …

---

## [Ansible .ssh/authorized.key](https://forum.ansible.com/t/ansible-ssh-authorized-key/30668)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 8\
**Last updated:** [June 27, 2019, 3:48pm UTC](https://forum.ansible.com/t/ansible-ssh-authorized-key/30668 "2019-06-27T15:48:14Z")

</div>

Hy all, when i use become\_user: wildfly i have have this message error : path /home/wildfly/.ssh/authorized\_keys does not exist But this path exist in destination host… Someone have idea please ??! Thanks community…

---

## [problem to fetch value from var files](https://forum.ansible.com/t/problem-to-fetch-value-from-var-files/30667)

<div class="topic-metadata">

**Author:** [@Eric\_Chang](https://forum.ansible.com/u/Eric_Chang)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 11:45am UTC](https://forum.ansible.com/t/problem-to-fetch-value-from-var-files/30667 "2019-06-27T11:45:04Z")

</div>

I have a yml file named: client\_hosts.yml it looks like below client\_hosts: abc.com: host: dc021 ipv4: 192.168.11.21 host: dc022 ipv4: 192.168.11.22 host: dc023 ipv4: 192.168.11.23 iuser: True user: john host:…

---

## [Ansible - To limit the execution for the range of hosts](https://forum.ansible.com/t/ansible-to-limit-the-execution-for-the-range-of-hosts/30658)

<div class="topic-metadata">

**Author:** [@Preethi\_Muruganantha](https://forum.ansible.com/u/Preethi_Muruganantha)\
**Replies:** 3\
**Last updated:** [June 27, 2019, 9:01am UTC](https://forum.ansible.com/t/ansible-to-limit-the-execution-for-the-range-of-hosts/30658 "2019-06-27T09:01:08Z")

</div>

Can you give me a suggestion about one more requirement? I need to limit the playbook execution for particular hosts. Eg., From host1 to the host mentioned in site.retry file My inventory file: 192.168.11.1 192.168.…

---

## [Ansible BigFix Patching](https://forum.ansible.com/t/ansible-bigfix-patching/30665)

<div class="topic-metadata">

**Author:** [@Samsir\_Muhammed](https://forum.ansible.com/u/Samsir_Muhammed)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 7:11am UTC](https://forum.ansible.com/t/ansible-bigfix-patching/30665 "2019-06-27T07:11:21Z")

</div>

We use Ansible to build machines and perform the post task. Please share if we can trigger patching with Ansible and use BigFix as a patch repository solution.

---

## [Ansible - overwriting file lineinfile when run in parallel](https://forum.ansible.com/t/ansible-overwriting-file-lineinfile-when-run-in-parallel/30645)

<div class="topic-metadata">

**Author:** [@Josephsimon\_Arokiara](https://forum.ansible.com/u/Josephsimon_Arokiara)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 6:01am UTC](https://forum.ansible.com/t/ansible-overwriting-file-lineinfile-when-run-in-parallel/30645 "2019-06-27T06:01:22Z")

</div>

Hi All, I am running the below code in a playbook which iterates over many hosts. This script writes the value of ver.stdout to a file. I am seeing issue when I run in in parallel. It is overwriting. It works good when …

---

## [win\_find not returning deduplicated files on share](https://forum.ansible.com/t/win-find-not-returning-deduplicated-files-on-share/30657)

<div class="topic-metadata">

**Author:** [@Mark\_Benson](https://forum.ansible.com/u/Mark_Benson)\
**Replies:** 0\
**Last updated:** [June 26, 2019, 9:58am UTC](https://forum.ansible.com/t/win-find-not-returning-deduplicated-files-on-share/30657 "2019-06-26T09:58:55Z")

</div>

Hi all, I’ve been looking at the win\_find module to get a list of .exe files from a Windows share but win\_find is not returning the .exe files. The .exe files are deduplicated and looking at their properties in Windows…

---

## [Syntax for using variable-item-string in when statement](https://forum.ansible.com/t/syntax-for-using-variable-item-string-in-when-statement/30655)

<div class="topic-metadata">

**Author:** [@sahitansar](https://forum.ansible.com/u/sahitansar)\
**Replies:** 1\
**Last updated:** [June 26, 2019, 6:49am UTC](https://forum.ansible.com/t/syntax-for-using-variable-item-string-in-when-statement/30655 "2019-06-26T06:49:12Z")

</div>

What’s the right way of using jinja2 in when statement . I basically have a condition to check if something like below exists in stdout of perious results. When : \_ ’ {{ var1 }}-{{ var2}}-{{ item }}-{{ var3 }} in prev…

---

## [ios\_config: What's error regarding to "Check device is in proper prompt after error"](https://forum.ansible.com/t/ios-config-whats-error-regarding-to-check-device-is-in-proper-prompt-after-error/30654)

<div class="topic-metadata">

**Author:** [@Chiu\_Hsia\_Peng](https://forum.ansible.com/u/Chiu_Hsia_Peng)\
**Replies:** 0\
**Last updated:** [June 26, 2019, 3:30am UTC](https://forum.ansible.com/t/ios-config-whats-error-regarding-to-check-device-is-in-proper-prompt-after-error/30654 "2019-06-26T03:30:58Z")

</div>

Hi, I don’t have IOS device at hand, then I can’t try the command: “mac-address-table notification mac-move” I checked the command on-line, I think it is a valid command on global configuration mode. I wonder why the …

---

## [Help with with\_items and vmware\_guest](https://forum.ansible.com/t/help-with-with-items-and-vmware-guest/30652)

<div class="topic-metadata">

**Author:** [@Simon\_Pole](https://forum.ansible.com/u/Simon_Pole)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 9:06pm UTC](https://forum.ansible.com/t/help-with-with-items-and-vmware-guest/30652 "2019-06-25T21:06:06Z")

</div>

Hi, I’m trying to do something that I thought would be very straghtfoward. I’m deploying 3 vms (VMware) on a DHCP network - I then want to get the IP address of the VM and connect to it, just a simple ping. \` name: …

---

## [Windows Server 2016 and SSH SL3 Environment](https://forum.ansible.com/t/windows-server-2016-and-ssh-sl3-environment/30643)

<div class="topic-metadata">

**Author:** [@ground7612](https://forum.ansible.com/u/ground7612)\
**Replies:** 1\
**Last updated:** [June 25, 2019, 7:37pm UTC](https://forum.ansible.com/t/windows-server-2016-and-ssh-sl3-environment/30643 "2019-06-25T19:37:16Z")

</div>

Hi All Our use case is very specific. We are looking at an isolated, country-wide network that has around 500 workstations and 1300 servers that control highly critical assets. Every Machine runs a hardened Windows Ser…

---

## [win\_domain\_user fails with unexpected error](https://forum.ansible.com/t/win-domain-user-fails-with-unexpected-error/30650)

<div class="topic-metadata">

**Author:** [@IA1](https://forum.ansible.com/u/IA1)\
**Replies:** 1\
**Last updated:** [June 25, 2019, 7:32pm UTC](https://forum.ansible.com/t/win-domain-user-fails-with-unexpected-error/30650 "2019-06-25T19:32:37Z")

</div>

I am currently working on automating the provisioning of the Active Directory servers in our environment. I have completed the majority of steps (Windows Features & Roles, Domain Creation, OUs, Groups, Group Memberships)…

---

## [Projects in Tower](https://forum.ansible.com/t/projects-in-tower/30641)

<div class="topic-metadata">

**Author:** [@Bipin\_Guragain](https://forum.ansible.com/u/Bipin_Guragain)\
**Replies:** 2\
**Last updated:** [June 25, 2019, 3:06pm UTC](https://forum.ansible.com/t/projects-in-tower/30641 "2019-06-25T15:06:01Z")

</div>

Hi All I am new to Ansible and Ansible Tower.I am learning to use it. I am trying to set up the project in my Org in Tower. I have configured all the connection between Tower and Bitbucket repo. In Cred section, I have …

---

## [Migrating playbooks from RHV to vCenter](https://forum.ansible.com/t/migrating-playbooks-from-rhv-to-vcenter/30647)

<div class="topic-metadata">

**Author:** [@Robert2](https://forum.ansible.com/u/Robert2)\
**Replies:** 0\
**Last updated:** [June 25, 2019, 2:47pm UTC](https://forum.ansible.com/t/migrating-playbooks-from-rhv-to-vcenter/30647 "2019-06-25T14:47:23Z")

</div>

One of our roles adds disks to our apache zookeeper machines. This is a task in a role for our RHV enviroment: name: Add zk disks ovirt\_disk: auth: “{{ ovirt\_auth }}” name: “{{ item\[1\] }}” vm\_name: “{{ item\[0\] }}” …

---

## [How to filter ipaddress and hostname and store it to different variable](https://forum.ansible.com/t/how-to-filter-ipaddress-and-hostname-and-store-it-to-different-variable/30629)

<div class="topic-metadata">

**Author:** [@Pandu\_jh](https://forum.ansible.com/u/Pandu_jh)\
**Replies:** 9\
**Last updated:** [June 25, 2019, 11:16am UTC](https://forum.ansible.com/t/how-to-filter-ipaddress-and-hostname-and-store-it-to-different-variable/30629 "2019-06-25T11:16:06Z")

</div>

I have a variable that contains short hostname, FQDN and IP addresses. I need to filter sort hostname/FQDNs and it should store to a variable and also IP addresses should store to an another variable(this am able to do …

---

## [IOS\_BGP Cisco issue](https://forum.ansible.com/t/ios-bgp-cisco-issue/30642)

<div class="topic-metadata">

**Author:** [@Michael\_Ikram](https://forum.ansible.com/u/Michael_Ikram)\
**Replies:** 1\
**Last updated:** [June 25, 2019, 6:23am UTC](https://forum.ansible.com/t/ios-bgp-cisco-issue/30642 "2019-06-25T06:23:21Z")

</div>

Hi There, I have a problem when I try to use ios\_bgp module below is the details: Ansible Version ansible 2.8.1 config file = /etc/ansible/ansible.cfg configured module search path = \[u’/root/.ansible/plugins/module…

---

## [Playbook exception error during task execution](https://forum.ansible.com/t/playbook-exception-error-during-task-execution/30635)

<div class="topic-metadata">

**Author:** [@Hitesh\_Kumar](https://forum.ansible.com/u/Hitesh_Kumar)\
**Replies:** 2\
**Last updated:** [June 24, 2019, 3:17pm UTC](https://forum.ansible.com/t/playbook-exception-error-during-task-execution/30635 "2019-06-24T15:17:56Z")

</div>

Hi All I am trying to run a playbook to configure vlan to and interface configuration to the devices in gns3 hosts. I am getting error while running the playbook. Below yml plabook and error message.Please help to sol…

---

## [How to use variables set in inventory file for the hostname /group](https://forum.ansible.com/t/how-to-use-variables-set-in-inventory-file-for-the-hostname-group/30640)

<div class="topic-metadata">

**Author:** [@VS1](https://forum.ansible.com/u/VS1)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 2:23pm UTC](https://forum.ansible.com/t/how-to-use-variables-set-in-inventory-file-for-the-hostname-group/30640 "2019-06-24T14:23:37Z")

</div>

Hello I have this inventory file: /etc/ansible/inventory/inventory-file \` \[my-group\] myhost.com project=my group=group \[my-group:vars\] project=my group=my-group \` and this is my playbook \` hosts: ‘{{ host }}…

---

## [jenkins\_plugins mdule : error when playing again a playbook](https://forum.ansible.com/t/jenkins-plugins-mdule-error-when-playing-again-a-playbook/30639)

<div class="topic-metadata">

**Author:** [@JiElPe-Fr381](https://forum.ansible.com/u/JiElPe-Fr381)\
**Replies:** 1\
**Last updated:** [June 24, 2019, 1:38pm UTC](https://forum.ansible.com/t/jenkins-plugins-mdule-error-when-playing-again-a-playbook/30639 "2019-06-24T13:38:20Z")

</div>

Dear all, I have a problem with the jenkins\_plugins module. Within a playbook that pull a jenkins docker image (jenkins/jenkins:lts-alpine) and runs it to install the instance and configure it, I have a task that insta…

---

## [Ansible revert back operation](https://forum.ansible.com/t/ansible-revert-back-operation/30626)

<div class="topic-metadata">

**Author:** [@Preethi\_Muruganantha](https://forum.ansible.com/u/Preethi_Muruganantha)\
**Replies:** 3\
**Last updated:** [June 24, 2019, 10:36am UTC](https://forum.ansible.com/t/ansible-revert-back-operation/30626 "2019-06-24T10:36:39Z")

</div>

I have three IPs (machines) listed in the inventory file. I have to run the playbook in all the 3 mchines. For eg., Lets consider I am deploying the application in all the 3 machines. When the deployment fails in any …

---

## [Put request to update only one attribute from API GET](https://forum.ansible.com/t/put-request-to-update-only-one-attribute-from-api-get/30611)

<div class="topic-metadata">

**Author:** [@abhijith.devaraju](https://forum.ansible.com/u/abhijith.devaraju)\
**Replies:** 6\
**Last updated:** [June 24, 2019, 10:06am UTC](https://forum.ansible.com/t/put-request-to-update-only-one-attribute-from-api-get/30611 "2019-06-24T10:06:49Z")

</div>

Hello, I’m trying to update an attribute from a GET API JSON result and do a PUT request along with the entire API data with only one attribute change. Please advice on the format for PUT Req Task ? Get Request for a …

---

## [ansible behavior to specific sudo commands on managed nodes](https://forum.ansible.com/t/ansible-behavior-to-specific-sudo-commands-on-managed-nodes/30634)

<div class="topic-metadata">

**Author:** [@Raman\_Kathpalia](https://forum.ansible.com/u/Raman_Kathpalia)\
**Replies:** 2\
**Last updated:** [June 24, 2019, 2:31am UTC](https://forum.ansible.com/t/ansible-behavior-to-specific-sudo-commands-on-managed-nodes/30634 "2019-06-24T02:31:32Z")

</div>

Here to discuss the ansible behavior when user at managed nodes is given sudo privileges to specific commands. I have sudo privileges on remote managed host \[rm-host.company.com\] to specific commands. Two of them are: …

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

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