# Latest

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

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

**Page:** 480

---

## [Can network\_cli or expect run tasks via SSH on simple embedded devices?](https://forum.ansible.com/t/can-network-cli-or-expect-run-tasks-via-ssh-on-simple-embedded-devices/29767)

<div class="topic-metadata">

**Author:** [@CodeWaffle](https://forum.ansible.com/u/CodeWaffle)\
**Replies:** 3\
**Last updated:** [February 28, 2019, 6:29am UTC](https://forum.ansible.com/t/can-network-cli-or-expect-run-tasks-via-ssh-on-simple-embedded-devices/29767 "2019-02-28T06:29:28Z")

</div>

Hi all: Not sure if I’m going about this the right way since I’m pretty new to Ansible. Bu, can something like “network\_cli” be used to drive simple to simple embedded devices over SSH in an expect-like manner? I’ve g…

---

## [blockinfile & lineinfile both are not working in RHEL 7.6](https://forum.ansible.com/t/blockinfile-lineinfile-both-are-not-working-in-rhel-7-6/29777)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 19\
**Last updated:** [February 28, 2019, 12:48am UTC](https://forum.ansible.com/t/blockinfile-lineinfile-both-are-not-working-in-rhel-7-6/29777 "2019-02-28T00:48:09Z")

</div>

Hello Guys, Can someone please help me to resolve this issue. below playbook i have created to remove dns entries from resolv.conf and its working perfect on rhel 6 but not in rhel 7.6, is there any bug or i need to ad…

---

## [skip\_unreachable ?](https://forum.ansible.com/t/skip-unreachable/29446)

<div class="topic-metadata">

**Author:** [@Adam\_E](https://forum.ansible.com/u/Adam_E)\
**Replies:** 4\
**Last updated:** [February 28, 2019, 12:26am UTC](https://forum.ansible.com/t/skip-unreachable/29446 "2019-02-28T00:26:56Z")

</div>

Hi there. My scenario is that I have a hundreds of locations on various different networks that I want to run some plays against. In almost all circumstances I will have 2-3% of these sites that I cannot connect to due …

---

## [Ansible at command usage](https://forum.ansible.com/t/ansible-at-command-usage/29789)

<div class="topic-metadata">

**Author:** [@Sreenivas\_Reddy](https://forum.ansible.com/u/Sreenivas_Reddy)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 8:55pm UTC](https://forum.ansible.com/t/ansible-at-command-usage/29789 "2019-02-27T20:55:26Z")

</div>

I want to execute my playbooks on scheduled basis. i used ansible at module for this. below is the sample playbook running git version for testing purpose.

---

## [Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/29794)

<div class="topic-metadata">

**Author:** [@Kasem\_A](https://forum.ansible.com/u/Kasem_A)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 8:54pm UTC](https://forum.ansible.com/t/us-congress-hearing-of-maan-alsaan-money-laundry/29794 "2019-02-27T20:54:38Z")

</div>

YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with bank of America and The owner of Saad Hospital and Schools in the Eastern Province in Saudi Arabia and the Chairm…

---

## [Request for Feedback (UI): Expand/Collapse of Jobs List, Templates List, and Projects List](https://forum.ansible.com/t/request-for-feedback-ui-expand-collapse-of-jobs-list-templates-list-and-projects-list/29594)

<div class="topic-metadata">

**Author:** [@kilam](https://forum.ansible.com/u/kilam)\
**Replies:** 7\
**Last updated:** [February 27, 2019, 7:46pm UTC](https://forum.ansible.com/t/request-for-feedback-ui-expand-collapse-of-jobs-list-templates-list-and-projects-list/29594 "2019-02-27T19:46:09Z")

</div>

Hello all, We’ve added a new feature to the UI that allows for the expansion and collapse of certain lists in AWX, namely the Jobs List, Templates List, and Projects List. The decision to implement this feature was base…

---

## [tower-cli auth token?](https://forum.ansible.com/t/tower-cli-auth-token/29778)

<div class="topic-metadata">

**Author:** [@dmakovey](https://forum.ansible.com/u/dmakovey)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 4:31pm UTC](https://forum.ansible.com/t/tower-cli-auth-token/29778 "2019-02-27T16:31:43Z")

</div>

I am building a CI job that is supposed to call tower-cli, and have noticed that: $ tower-cli config .... use\_token: false ... which leads me to believe there is a token-based authentication (vs user-based authent…

---

## [API call to get hosts that had failures](https://forum.ansible.com/t/api-call-to-get-hosts-that-had-failures/29791)

<div class="topic-metadata">

**Author:** [@Andy\_Wang](https://forum.ansible.com/u/Andy_Wang)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 4:28pm UTC](https://forum.ansible.com/t/api-call-to-get-hosts-that-had-failures/29791 "2019-02-27T16:28:39Z")

</div>

Does anyone know an API query to get the hosts that failed for a job? I’ve been looking at the job\_events API but I’m having trouble to come up with a query. Thank you.

---

## [lineinfile creating line when regexp not found](https://forum.ansible.com/t/lineinfile-creating-line-when-regexp-not-found/29779)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [February 27, 2019, 4:11pm UTC](https://forum.ansible.com/t/lineinfile-creating-line-when-regexp-not-found/29779 "2019-02-27T16:11:06Z")

</div>

Consider the following: \` name: Change sshd\_config settings lineinfile: path: /etc/ssh/sshd\_config regexp: “{{ item.regexp }}” line: “{{ item.line }}” with\_items: {regexp: “^#.ClientAliveInterval.$”, line: “Clien…

---

## [Ansible unable to winrm to Windows Server 2012](https://forum.ansible.com/t/ansible-unable-to-winrm-to-windows-server-2012/29782)

<div class="topic-metadata">

**Author:** [@Eric\_Tan](https://forum.ansible.com/u/Eric_Tan)\
**Replies:** 7\
**Last updated:** [February 27, 2019, 6:02am UTC](https://forum.ansible.com/t/ansible-unable-to-winrm-to-windows-server-2012/29782 "2019-02-27T06:02:10Z")

</div>

SUMMARY Using Python 2.7 in RHEL7 Executed powershell script in windows machine ConfigureRemotingForAnsible.ps1 Configured yml file to the below: name: hit windows test instance hosts: “tag\_class\_windows\_{{ env }}\_{…

---

## [Memory  Usage for past 10 days](https://forum.ansible.com/t/memory-usage-for-past-10-days/29730)

<div class="topic-metadata">

**Author:** [@Vinu\_Vajravel](https://forum.ansible.com/u/Vinu_Vajravel)\
**Replies:** 6\
**Last updated:** [February 27, 2019, 5:49am UTC](https://forum.ansible.com/t/memory-usage-for-past-10-days/29730 "2019-02-27T05:49:37Z")

</div>

Hello all , does any one using Ansible task which gives us a memory usage information about past 10 days ? Thanks

---

## [Copy template as non root user fails](https://forum.ansible.com/t/copy-template-as-non-root-user-fails/29784)

<div class="topic-metadata">

**Author:** [@Govind\_C](https://forum.ansible.com/u/Govind_C)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 4:28am UTC](https://forum.ansible.com/t/copy-template-as-non-root-user-fails/29784 "2019-02-27T04:28:56Z")

</div>

A regular user(gov1) wants to install an application (app1) owned by the app1:app1 under the directory where app1 has permission. The /app\_mnt and its folders are all owned by app1:app1. (gov2) is part of app1 group as …

---

## [Ansible Dynamic Inventory for Azure does not work on Ubuntu 16.04 Agent](https://forum.ansible.com/t/ansible-dynamic-inventory-for-azure-does-not-work-on-ubuntu-16-04-agent/29783)

<div class="topic-metadata">

**Author:** [@Ameya\_Agashe](https://forum.ansible.com/u/Ameya_Agashe)\
**Replies:** 0\
**Last updated:** [February 27, 2019, 2:49am UTC](https://forum.ansible.com/t/ansible-dynamic-inventory-for-azure-does-not-work-on-ubuntu-16-04-agent/29783 "2019-02-27T02:49:21Z")

</div>

Hi Guys, I’m getting the below error when I try to run Ansible Dynamic inventory on Ubuntu 16.04, the source of python script is here: wget https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/azur…

---

## [Post Request using uri module to update the parameter flags/values](https://forum.ansible.com/t/post-request-using-uri-module-to-update-the-parameter-flags-values/29781)

<div class="topic-metadata">

**Author:** [@abhijith.devaraju](https://forum.ansible.com/u/abhijith.devaraju)\
**Replies:** 1\
**Last updated:** [February 27, 2019, 2:26am UTC](https://forum.ansible.com/t/post-request-using-uri-module-to-update-the-parameter-flags-values/29781 "2019-02-27T02:26:25Z")

</div>

Hello There, I have the below GET response for a feature API request. I would like to update the values for the corresponding parameters as follows in the json object: “paramValue”: 15 “configState”: “ENABLE” GET Res…

---

## [setting variable in a playbook from a jinjia2 snippet](https://forum.ansible.com/t/setting-variable-in-a-playbook-from-a-jinjia2-snippet/29742)

<div class="topic-metadata">

**Author:** [@Luca\_Cazzaniga](https://forum.ansible.com/u/Luca_Cazzaniga)\
**Replies:** 4\
**Last updated:** [February 26, 2019, 3:46pm UTC](https://forum.ansible.com/t/setting-variable-in-a-playbook-from-a-jinjia2-snippet/29742 "2019-02-26T15:46:35Z")

</div>

Hi all is it possible assign variable built from jingia2 fragment to other variable in the playbook: name: “list files in an archive” unarchive: src: /root/mybundle.zip dest: /opt list\_files: yes remote\_src: yes …

---

## [supply dict as parameter to role](https://forum.ansible.com/t/supply-dict-as-parameter-to-role/29776)

<div class="topic-metadata">

**Author:** [@andybourges](https://forum.ansible.com/u/andybourges)\
**Replies:** 0\
**Last updated:** [February 26, 2019, 2:08pm UTC](https://forum.ansible.com/t/supply-dict-as-parameter-to-role/29776 "2019-02-26T14:08:54Z")

</div>

Hi, …I#m having a problem supplying a dictionary as parameter to a role. Seems it’s converted to Unicode and don’t know how to proceed. The basic idea is to have a task separated in a role and call it with different inp…

---

## [move host between inventory](https://forum.ansible.com/t/move-host-between-inventory/29775)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 0\
**Last updated:** [February 26, 2019, 2:01pm UTC](https://forum.ansible.com/t/move-host-between-inventory/29775 "2019-02-26T14:01:09Z")

</div>

I need to move my host between tho different inventory eith all the variable associated thanks

---

## [The customization\_spec feature of the vmware\_guest module appears to be ignored](https://forum.ansible.com/t/the-customization-spec-feature-of-the-vmware-guest-module-appears-to-be-ignored/28476)

<div class="topic-metadata">

**Author:** [@Matt\_Smith](https://forum.ansible.com/u/Matt_Smith)\
**Replies:** 1\
**Last updated:** [February 26, 2019, 1:02pm UTC](https://forum.ansible.com/t/the-customization-spec-feature-of-the-vmware-guest-module-appears-to-be-ignored/28476 "2019-02-26T13:02:40Z")

</div>

Hi all, I’m trying to set up a playbook that creates VMs on a vSphere server based on a template. I’ve created a playbook that uses the vmware\_guest module, I’ve created a template in vSphere, and I’ve also created an O…

---

## [How to delete a duplicate in file ?](https://forum.ansible.com/t/how-to-delete-a-duplicate-in-file/29774)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 0\
**Last updated:** [February 26, 2019, 12:23pm UTC](https://forum.ansible.com/t/how-to-delete-a-duplicate-in-file/29774 "2019-02-26T12:23:16Z")

</div>

Hy all, how to delete a duplicate in a file? Exemple, in my file1 there is : user1 user2 user3 user1 user1 user1 I want that my task delete all duplicate for get this file : user1 user2 user3 Thanks Regards …

---

## [how to skip a line in a file](https://forum.ansible.com/t/how-to-skip-a-line-in-a-file/29773)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 12:03pm UTC](https://forum.ansible.com/t/how-to-skip-a-line-in-a-file/29773 "2019-02-26T12:03:56Z")

</div>

Hy all, I have a file called “file1.csv”, the contents of this file is: word1 word2 word3 word4 I want him to jump in line with every word, i want this result : word1 word2 word3 word4 I use this task for test bu…

---

## [write multiple user in a column in file](https://forum.ansible.com/t/write-multiple-user-in-a-column-in-file/29772)

<div class="topic-metadata">

**Author:** [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Replies:** 0\
**Last updated:** [February 26, 2019, 9:41am UTC](https://forum.ansible.com/t/write-multiple-user-in-a-column-in-file/29772 "2019-02-26T09:41:08Z")

</div>

Hy all, I have a file called “file1.csv” I want this file to have two columns (user; hostname) And that ansible fill is two columns from other files. We will obtain in this file: user ; hostname user1 ; hostname1 …

---

## [How to detect AWS instance type](https://forum.ansible.com/t/how-to-detect-aws-instance-type/29770)

<div class="topic-metadata">

**Author:** [@Frank\_Dias](https://forum.ansible.com/u/Frank_Dias)\
**Replies:** 1\
**Last updated:** [February 26, 2019, 9:40am UTC](https://forum.ansible.com/t/how-to-detect-aws-instance-type/29770 "2019-02-26T09:40:34Z")

</div>

I have an old playbook that will add an addition volume and it works fine on t2 instances. With the move to t3 instances we also now have nvme based ebs. The play book uses lvm to setup the second volume we add the volu…

---

## [Appending a line in a file](https://forum.ansible.com/t/appending-a-line-in-a-file/29769)

<div class="topic-metadata">

**Author:** [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Replies:** 8\
**Last updated:** [February 26, 2019, 8:51am UTC](https://forum.ansible.com/t/appending-a-line-in-a-file/29769 "2019-02-26T08:51:35Z")

</div>

Hi, I want to add some stuff to my /etc/hosts file. For instance, if my /etc/hosts says “server.corp”, I want to append that in all my machines to where it says “server.corp.company.com”. Then I want it to save. What …

---

## [error run shell script for start service jboss](https://forum.ansible.com/t/error-run-shell-script-for-start-service-jboss/29748)

<div class="topic-metadata">

**Author:** [@Jhon\_J\_Castro\_H](https://forum.ansible.com/u/Jhon_J_Castro_H)\
**Replies:** 2\
**Last updated:** [February 25, 2019, 8:10pm UTC](https://forum.ansible.com/t/error-run-shell-script-for-start-service-jboss/29748 "2019-02-25T20:10:14Z")

</div>

PLAYBOOK: hosts: all gather\_facts: yes remote\_user: root become: yes tasks: name: Inicializa Servicio JBOSS 1.1 shell: sh /home/jboss/jboss-6.4/bin/standalone.sh ignore\_errors: yes name: Inicializa Servici…

---

## [Help with ansible local\_action with\_items and debug](https://forum.ansible.com/t/help-with-ansible-local-action-with-items-and-debug/29768)

<div class="topic-metadata">

**Author:** [@Rogerio\_Ceni\_Coelho](https://forum.ansible.com/u/Rogerio_Ceni_Coelho)\
**Replies:** 0\
**Last updated:** [February 25, 2019, 7:58pm UTC](https://forum.ansible.com/t/help-with-ansible-local-action-with-items-and-debug/29768 "2019-02-25T19:58:32Z")

</div>

Hi Ansible Jedi´s !!! I need some help with this example running a local\_action. This playbook returns only debug information for the last item on local\_action. What are the right way to print debug for all items ??? …

---

## [Ansible Failed Authentication](https://forum.ansible.com/t/ansible-failed-authentication/29750)

<div class="topic-metadata">

**Author:** [@VeGeTa-X](https://forum.ansible.com/u/VeGeTa-X)\
**Replies:** 7\
**Last updated:** [February 25, 2019, 7:22pm UTC](https://forum.ansible.com/t/ansible-failed-authentication/29750 "2019-02-25T19:22:30Z")

</div>

I am starting out at ansible with a basic playbook to learn ansible I am getting the error message below I know the user and creds are correct I have logged into that switch from ansible server can someone please let me…

---

## [How can I loop over all hosts in a group in this playbook?](https://forum.ansible.com/t/how-can-i-loop-over-all-hosts-in-a-group-in-this-playbook/15950)

<div class="topic-metadata">

**Author:** [@Abe\_Voelker](https://forum.ansible.com/u/Abe_Voelker)\
**Replies:** 6\
**Last updated:** [February 25, 2019, 5:32pm UTC](https://forum.ansible.com/t/how-can-i-loop-over-all-hosts-in-a-group-in-this-playbook/15950 "2019-02-25T17:32:29Z")

</div>

I have an inventory file like this: \` \[webservers\] 10.0.0.1 10.0.0.2 10.0.0.3 \[postgresservers\] 10.0.0.4 \` And I’m trying to run this playbook against my Postgres host: \`

---

## [Unable to connect via jump-server. Do not understand why control socket is missing](https://forum.ansible.com/t/unable-to-connect-via-jump-server-do-not-understand-why-control-socket-is-missing/29766)

<div class="topic-metadata">

**Author:** [@myprogramingnotes](https://forum.ansible.com/u/myprogramingnotes)\
**Replies:** 0\
**Last updated:** [February 25, 2019, 4:26pm UTC](https://forum.ansible.com/t/unable-to-connect-via-jump-server-do-not-understand-why-control-socket-is-missing/29766 "2019-02-25T16:26:26Z")

</div>

According to the docs setting ProxyCommand in ansible\_ssh\_command\_args will enable access to private servers via a jump server. I am attempting to do this but keeping the error Control socket “/Users/pnotes/.ansible/cp/…

---

## [network-engine - parser problem](https://forum.ansible.com/t/network-engine-parser-problem/29740)

<div class="topic-metadata">

**Author:** [@andybourges](https://forum.ansible.com/u/andybourges)\
**Replies:** 3\
**Last updated:** [February 25, 2019, 3:35pm UTC](https://forum.ansible.com/t/network-engine-parser-problem/29740 "2019-02-25T15:35:41Z")

</div>

Hi, …I’m currently having a look at network-engine and so far it looks really promising! Seems like the best solution for network automation there is today :slight\_smile: However, I’m having trouble parsing a certain co…

---

## [with blockinfile module, I'm looking for option to check the entries whether its present or not! if not then entries have to be added by play.](https://forum.ansible.com/t/with-blockinfile-module-im-looking-for-option-to-check-the-entries-whether-its-present-or-not-if-not-then-entries-have-to-be-added-by-play/29762)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 2\
**Last updated:** [February 25, 2019, 3:19pm UTC](https://forum.ansible.com/t/with-blockinfile-module-im-looking-for-option-to-check-the-entries-whether-its-present-or-not-if-not-then-entries-have-to-be-added-by-play/29762 "2019-02-25T15:19:02Z")

</div>

Hello, Can someone please help to solve my request? with blockinfile module, I’m looking for option to check the entries whether its present or not! if not then entries have to be added by play. As per below my playbo…

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

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