# Latest

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

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

**Page:** 478

---

## [Ansible Playbook output to local file](https://forum.ansible.com/t/ansible-playbook-output-to-local-file/29850)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 2\
**Last updated:** [March 8, 2019, 6:23pm UTC](https://forum.ansible.com/t/ansible-playbook-output-to-local-file/29850 "2019-03-08T18:23:08Z")

</div>

Hi all, So I’ve got this playbook that is getting information from all of my hosts in my inventory and outputting that data to a local file. However, it’s not outputting on EVERY inventory host. It’s going through the l…

---

## [remplace: "{{ mon\_groupe | replace('&', '\\&') }}"](https://forum.ansible.com/t/remplace-mon-groupe-replace/29847)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 6\
**Last updated:** [March 8, 2019, 6:05pm UTC](https://forum.ansible.com/t/remplace-mon-groupe-replace/29847 "2019-03-08T18:05:18Z")

</div>

hi all, I want replace all caracter " & " by " & " set\_fact: remplace: “{{ mon\_groupe | replace(‘&’, ‘&’) }}” but when i use this task it’s not work. It’s works only i skip " \\ " Someone have an idea please !! …

---

## [Inventory sync and parallel jobs](https://forum.ansible.com/t/inventory-sync-and-parallel-jobs/29844)

<div class="topic-metadata">

**Author:** [@Benjamin\_Bertrand](https://forum.ansible.com/u/Benjamin_Bertrand)\
**Replies:** 4\
**Last updated:** [March 8, 2019, 6:03pm UTC](https://forum.ansible.com/t/inventory-sync-and-parallel-jobs/29844 "2019-03-08T18:03:23Z")

</div>

Hi, We use a dynamic inventory for all our job templates. When we trigger a job, it first syncs the inventory before to run a job. If a job (using that inventory) is already running, the “inventory sync” will stay pen…

---

## [Ansible for  Windows node , error using npm module to install packages](https://forum.ansible.com/t/ansible-for-windows-node-error-using-npm-module-to-install-packages/29852)

<div class="topic-metadata">

**Author:** [@Mehedi\_Hashir](https://forum.ansible.com/u/Mehedi_Hashir)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 5:23pm UTC](https://forum.ansible.com/t/ansible-for-windows-node-error-using-npm-module-to-install-packages/29852 "2019-03-08T17:23:09Z")

</div>

The playbook is below. It connects to a windows host and run the installs using Chocolatey successfully. Installing npm packages fail in this playbook. The playbook & error is shown at the end of the post . Any suggest…

---

## [user creating using htpasswd](https://forum.ansible.com/t/user-creating-using-htpasswd/29851)

<div class="topic-metadata">

**Author:** [@Naveen\_kumar\_H\_M](https://forum.ansible.com/u/Naveen_kumar_H_M)\
**Replies:** 0\
**Last updated:** [March 8, 2019, 4:34pm UTC](https://forum.ansible.com/t/user-creating-using-htpasswd/29851 "2019-03-08T16:34:39Z")

</div>

I tried to creating user using Ansible playbook and i got this error FAILED! =\> {“changed”: false, “msg”: “This module requires the passlib Python library”} I have installe passlib ( version 1.7.1) on both local and ta…

---

## [Ansible gather facts](https://forum.ansible.com/t/ansible-gather-facts/29849)

<div class="topic-metadata">

**Author:** [@fahad.riaz1718](https://forum.ansible.com/u/fahad.riaz1718)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 4:25pm UTC](https://forum.ansible.com/t/ansible-gather-facts/29849 "2019-03-08T16:25:44Z")

</div>

Hi All, I wrote the following playbook to gather facts about a particular datastore from vsphere. the playbook worked, however I had to add -vvv flag to see the facts. 2 questions 1- is there a file that gets the out…

---

## [I have a strange result](https://forum.ansible.com/t/i-have-a-strange-result/29848)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [March 8, 2019, 4:22pm UTC](https://forum.ansible.com/t/i-have-a-strange-result/29848 "2019-03-08T16:22:05Z")

</div>

hi all, Why when i run this task : name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz find: paths: /{{ role\_path }}/files/groups/ patterns: ‘&.txt’ register: mes\_fichiers\_spe…

---

## [ansible role meta, templated role dependency.](https://forum.ansible.com/t/ansible-role-meta-templated-role-dependency/29831)

<div class="topic-metadata">

**Author:** [@Lionel\_H](https://forum.ansible.com/u/Lionel_H)\
**Replies:** 2\
**Last updated:** [March 8, 2019, 12:25pm UTC](https://forum.ansible.com/t/ansible-role-meta-templated-role-dependency/29831 "2019-03-08T12:25:16Z")

</div>

Hi all, I have a bunch of nested roles for a specific project. I’m trying to dynamically invoked roles based on variable I have in the inventory. For example, let’s say I have a foo variable that is defined for every …

---

## [Junos/Cisco | Compare outputs](https://forum.ansible.com/t/junos-cisco-compare-outputs/29841)

<div class="topic-metadata">

**Author:** [@intelysmark](https://forum.ansible.com/u/intelysmark)\
**Replies:** 2\
**Last updated:** [March 8, 2019, 7:57am UTC](https://forum.ansible.com/t/junos-cisco-compare-outputs/29841 "2019-03-08T07:57:10Z")

</div>

I would like to add some functionality to my Ansible playbooks that does the following; Before making any changes (at beginning of playbook) it runs a number of commands and stores the output of the commands in files. Th…

---

## [AWX HA](https://forum.ansible.com/t/awx-ha/29112)

<div class="topic-metadata">

**Author:** [@user106](https://forum.ansible.com/u/user106)\
**Replies:** 10\
**Last updated:** [March 8, 2019, 12:46am UTC](https://forum.ansible.com/t/awx-ha/29112 "2019-03-08T00:46:09Z")

</div>

Hello All, Apologies if this should go under a different mailing list. Wanted to know when setting up AWX, is it possible to: Specify the path where AWX will install too? Point to an external RabbitMQ Cluster? We…

---

## [AWX & virtual environment setup to support Python3](https://forum.ansible.com/t/awx-virtual-environment-setup-to-support-python3/29836)

<div class="topic-metadata">

**Author:** [@iamroddo](https://forum.ansible.com/u/iamroddo)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 8:57pm UTC](https://forum.ansible.com/t/awx-virtual-environment-setup-to-support-python3/29836 "2019-03-07T20:57:06Z")

</div>

I’m rather confused about how to setup and configure virtual environments in AWX. In order to support a dynamic inventory script which required Python3.6 (on AWX 3.0.1) I created a virtual environment as below. yum inst…

---

## [Dynamic Inventory on VMWare not working; but works when the script is run directly](https://forum.ansible.com/t/dynamic-inventory-on-vmware-not-working-but-works-when-the-script-is-run-directly/29843)

<div class="topic-metadata">

**Author:** [@computerprosupport](https://forum.ansible.com/u/computerprosupport)\
**Replies:** 0\
**Last updated:** [March 7, 2019, 5:52pm UTC](https://forum.ansible.com/t/dynamic-inventory-on-vmware-not-working-but-works-when-the-script-is-run-directly/29843 "2019-03-07T17:52:17Z")

</div>

I am trying to implement Dynamic Inventory for VMWare with the vmware\_inventory.py script From here : https://github.com/ansible/ansible/blob/devel/contrib/inventory/vmware\_inventory.py I have searched for docs on the…

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/29842)

<div class="topic-metadata">

**Author:** [@intelysmark](https://forum.ansible.com/u/intelysmark)\
**Replies:** 0\
**Last updated:** [March 7, 2019, 5:43pm UTC](https://forum.ansible.com/t/this-topic-needs-a-title/29842 "2019-03-07T17:43:54Z")

</div>

---

## [Combining local\_action and delegate\_to](https://forum.ansible.com/t/combining-local-action-and-delegate-to/29840)

<div class="topic-metadata">

**Author:** [@Amir\_Al-Shourbaji](https://forum.ansible.com/u/Amir_Al-Shourbaji)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 5:22pm UTC](https://forum.ansible.com/t/combining-local-action-and-delegate-to/29840 "2019-03-07T17:22:31Z")

</div>

I want this module to run locally on a host i delegate\_to name: Add Host to dhcp config local\_action: module: lineinfile dest: /etc/dhcp/dhcpd.conf line: “host {{ inventory\_hostname}} {hardware ethernet {{ macaddre…

---

## [awx-manage binary for Debian machines](https://forum.ansible.com/t/awx-manage-binary-for-debian-machines/29839)

<div class="topic-metadata">

**Author:** [@ijunaidsubhani](https://forum.ansible.com/u/ijunaidsubhani)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 3:42pm UTC](https://forum.ansible.com/t/awx-manage-binary-for-debian-machines/29839 "2019-03-07T15:42:44Z")

</div>

I am building a Debian based image that needs to have the awx-manage binary so that I can automate some tasks. Where can I find a compatible binary for Debain based image ?

---

## [How to use facts under ansible\_facts as filter in Smart Inventory?](https://forum.ansible.com/t/how-to-use-facts-under-ansible-facts-as-filter-in-smart-inventory/29698)

<div class="topic-metadata">

**Author:** [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Replies:** 9\
**Last updated:** [March 7, 2019, 10:57am UTC](https://forum.ansible.com/t/how-to-use-facts-under-ansible-facts-as-filter-in-smart-inventory/29698 "2019-03-07T10:57:29Z")

</div>

I have gone through different posts related to this. The API method to set filter for Smart Inventory works on host variables however, i am not able to filter the hosts in smart inventory based on ansible\_facts. I am us…

---

## [Module for control routing table in Linux](https://forum.ansible.com/t/module-for-control-routing-table-in-linux/29827)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 8:17am UTC](https://forum.ansible.com/t/module-for-control-routing-table-in-linux/29827 "2019-03-07T08:17:18Z")

</div>

Hi, I've failed to find a module responsible for controlling routing in Linux. Is there a 'route' module? Maybe I've missed something? Wawrzek

---

## [lineinfile path local and remote path](https://forum.ansible.com/t/lineinfile-path-local-and-remote-path/29823)

<div class="topic-metadata">

**Author:** [@Ryan1](https://forum.ansible.com/u/Ryan1)\
**Replies:** 2\
**Last updated:** [March 7, 2019, 8:09am UTC](https://forum.ansible.com/t/lineinfile-path-local-and-remote-path/29823 "2019-03-07T08:09:05Z")

</div>

I have a playbook that uses the following: set\_fact: logfile=/home/sandbox/playbooks/LOGS/{{ systemSN }} Lower in the playbook I have: lineinfile: line: “{{ item }}” path: “{{ logfile }}” create: yes with\_items: …

---

## [Create custom images, push them to google cloud registry and deploy awx on kubernetes](https://forum.ansible.com/t/create-custom-images-push-them-to-google-cloud-registry-and-deploy-awx-on-kubernetes/29812)

<div class="topic-metadata">

**Author:** [@James\_James](https://forum.ansible.com/u/James_James)\
**Replies:** 9\
**Last updated:** [March 6, 2019, 10:21pm UTC](https://forum.ansible.com/t/create-custom-images-push-them-to-google-cloud-registry-and-deploy-awx-on-kubernetes/29812 "2019-03-06T22:21:01Z")

</div>

Hi, I want to create a custom version of awx\_task (with dnspython and openshift installed) and push this image to gcr. I have modified requirements/requirements\_ansible.txt to add dnspython and openshift. The build is …

---

## [How to transfer a big size file to ansible server from a remote node?](https://forum.ansible.com/t/how-to-transfer-a-big-size-file-to-ansible-server-from-a-remote-node/23160)

<div class="topic-metadata">

**Author:** [@shaolongtan0886](https://forum.ansible.com/u/shaolongtan0886)\
**Replies:** 2\
**Last updated:** [March 6, 2019, 10:02pm UTC](https://forum.ansible.com/t/how-to-transfer-a-big-size-file-to-ansible-server-from-a-remote-node/23160 "2019-03-06T22:02:42Z")

</div>

Hi Everyboby, Currently, I have requirement to transfer file from remote node to ansible server. Ansible fetch module can do it but it can’t transfer big size file. Who could help how to resolve it with ansible module e…

---

## [Loop a play over several group sets](https://forum.ansible.com/t/loop-a-play-over-several-group-sets/29834)

<div class="topic-metadata">

**Author:** [@Doug\_OLeary](https://forum.ansible.com/u/Doug_OLeary)\
**Replies:** 3\
**Last updated:** [March 6, 2019, 7:08pm UTC](https://forum.ansible.com/t/loop-a-play-over-several-group-sets/29834 "2019-03-06T19:08:43Z")

</div>

Hi; I read through the docs on loops and am not seeing what I’m looking for. Basically, loops allow a task to run across a set. From the docs: - name: add several users user: name: "{{ item }}" state: present…

---

## [How to store ansible running log separately without touching log\_path and ANSIBLE\_LOG\_PATH](https://forum.ansible.com/t/how-to-store-ansible-running-log-separately-without-touching-log-path-and-ansible-log-path/29802)

<div class="topic-metadata">

**Author:** [@Qin\_Peter](https://forum.ansible.com/u/Qin_Peter)\
**Replies:** 1\
**Last updated:** [March 6, 2019, 4:26pm UTC](https://forum.ansible.com/t/how-to-store-ansible-running-log-separately-without-touching-log-path-and-ansible-log-path/29802 "2019-03-06T16:26:43Z")

</div>

Hi All, I am new to Ansible and I have requirement about ansible running log. Could anyone help? Thanks. I am talking about running log, not the playbook log. eg: 2019-02-28 01:39:59,819 p=23627 u=peterqi | PLAY \[cre…

---

## [validation command privilege issue](https://forum.ansible.com/t/validation-command-privilege-issue/29826)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 7\
**Last updated:** [March 6, 2019, 10:51am UTC](https://forum.ansible.com/t/validation-command-privilege-issue/29826 "2019-03-06T10:51:44Z")

</div>

Hi all, I’ve a very simple role to copy and validate a monit configuration file cat roles/monit\_install/tasks/main.yml name: copy configuration file template: mode: 0600 dest: /etc/monitrc src: monitrc.j2 validat…

---

## [How to include group\_vars when using python api to run ansible-playbook.](https://forum.ansible.com/t/how-to-include-group-vars-when-using-python-api-to-run-ansible-playbook/29830)

<div class="topic-metadata">

**Author:** [@Jace\_Liang](https://forum.ansible.com/u/Jace_Liang)\
**Replies:** 0\
**Last updated:** [March 6, 2019, 4:53am UTC](https://forum.ansible.com/t/how-to-include-group-vars-when-using-python-api-to-run-ansible-playbook/29830 "2019-03-06T04:53:44Z")

</div>

Hi all, I am trying to write a python script to run kuberspray’s ansible-playbook. Basically, when using kubespray, all I need to do is get into kubespray’s folder and type command. \` ansible-playbook -i inventory/my…

---

## [Determine virtual or physical machine from existing default Ansible facts](https://forum.ansible.com/t/determine-virtual-or-physical-machine-from-existing-default-ansible-facts/23672)

<div class="topic-metadata">

**Author:** [@Simon\_Wydooghe](https://forum.ansible.com/u/Simon_Wydooghe)\
**Replies:** 5\
**Last updated:** [March 5, 2019, 11:57pm UTC](https://forum.ansible.com/t/determine-virtual-or-physical-machine-from-existing-default-ansible-facts/23672 "2019-03-05T23:57:54Z")

</div>

Does anyone have a suggestion on how to detect whether a machine is a bare metal one or a virtual one using the existing Ansible facts? In Puppet there was a ‘physical’ boolean which could be used, but going through the …

---

## [Required Role to Create Inventory Scripts](https://forum.ansible.com/t/required-role-to-create-inventory-scripts/29799)

<div class="topic-metadata">

**Author:** [@Uriel](https://forum.ansible.com/u/Uriel)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 11:16pm UTC](https://forum.ansible.com/t/required-role-to-create-inventory-scripts/29799 "2019-03-05T23:16:13Z")

</div>

Does anyone know what role is required to give users access to creating Inventory Scripts? I’ve tried giving the Inventory Admin role to Org members but they don’t get the option to create IS. I’m not seeing an IS Admin …

---

## [Installing AWX on ECS](https://forum.ansible.com/t/installing-awx-on-ecs/29829)

<div class="topic-metadata">

**Author:** [@CV1](https://forum.ansible.com/u/CV1)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 11:14pm UTC](https://forum.ansible.com/t/installing-awx-on-ecs/29829 "2019-03-05T23:14:33Z")

</div>

Hi, I am trying to get AWX running on ECS. All of the containers say running, but the awx\_task container has an error: … me = instance or Instance.objects.me() File “/var/lib/awx/venv/awx/lib64/python3.6/site-packag…

---

## [How to store ansible running log to separate log file without touch ANSIBLE\_LOG\_PATH or ansible.cfg](https://forum.ansible.com/t/how-to-store-ansible-running-log-to-separate-log-file-without-touch-ansible-log-path-or-ansible-cfg/29785)

<div class="topic-metadata">

**Author:** [@Qin\_Peter](https://forum.ansible.com/u/Qin_Peter)\
**Replies:** 4\
**Last updated:** [March 5, 2019, 9:47pm UTC](https://forum.ansible.com/t/how-to-store-ansible-running-log-to-separate-log-file-without-touch-ansible-log-path-or-ansible-cfg/29785 "2019-03-05T21:47:08Z")

</div>

Hi All, This is Peter and I am newer to Ansible. I am trying to store the ansible running log to a file. And every playbook will have separate ansible running log file. I know I can use ‘export ANSIBLE\_LOG\_PATH=~/shar…

---

## [How get some word in file](https://forum.ansible.com/t/how-get-some-word-in-file/29819)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 10:38am UTC](https://forum.ansible.com/t/how-get-some-word-in-file/29819 "2019-03-05T10:38:04Z")

</div>

Hy all, I’m sorry i ask a lot of question but it’s my last question. I have this file : 2,user2,hostname2,appli1 1,user1,hostname1,appli1,appli2,appli3, … 3,user3,hostname3,appli1 appli1 it’s one application for in…

---

## [Get indice in variable](https://forum.ansible.com/t/get-indice-in-variable/29825)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 10:37am UTC](https://forum.ansible.com/t/get-indice-in-variable/29825 "2019-03-05T10:37:46Z")

</div>

Hy all, I have this task : set\_fact: liste\_appli: “{{ item.split(‘,’)\[3:\] }}” with\_lines: cat /home/ansible/ssh\_manager/clef\_applicatives.csv when: (item.split(‘,’)\[1\] == ansible\_user) and (item.split(‘,’)\[2\] == in…

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

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