# Archives

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

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

**Page:** 263

---

## [Ansible-playbook Stuck randomly: Empty ansible-tmp-% gets created on remote device.](https://forum.ansible.com/t/ansible-playbook-stuck-randomly-empty-ansible-tmp-gets-created-on-remote-device/31152)

<div class="topic-metadata">

**Author:** [@Sumanyu\_Nandwani](https://forum.ansible.com/u/Sumanyu_Nandwani)\
**Replies:** 0\
**Last updated:** [August 28, 2019, 12:45pm UTC](https://forum.ansible.com/t/ansible-playbook-stuck-randomly-empty-ansible-tmp-gets-created-on-remote-device/31152 "2019-08-28T12:45:11Z")

</div>

Go to this: https://github.com/ansible/ansible/issues/60087 Kindly revert back as soon as possible

---

## [playbook errors when run through Ansible tower](https://forum.ansible.com/t/playbook-errors-when-run-through-ansible-tower/31151)

<div class="topic-metadata">

**Author:** [@Shashank\_Dutt\_Jha](https://forum.ansible.com/u/Shashank_Dutt_Jha)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 12:37pm UTC](https://forum.ansible.com/t/playbook-errors-when-run-through-ansible-tower/31151 "2019-08-28T12:37:15Z")

</div>

I have a task like below: name: start the service. shell: “run some command” become: yes become\_method: sudo become\_user: “usera” args: chdir: “/opt/ABC” And it works fine when I run using command ansible-playbo…

---

## [bets way to rotate ansible logs?](https://forum.ansible.com/t/bets-way-to-rotate-ansible-logs/14185)

<div class="topic-metadata">

**Author:** [@Dimon](https://forum.ansible.com/u/Dimon)\
**Replies:** 3\
**Last updated:** [August 28, 2019, 12:13pm UTC](https://forum.ansible.com/t/bets-way-to-rotate-ansible-logs/14185 "2019-08-28T12:13:25Z")

</div>

I like the fact that sticking log\_path = ./my-log.log into ansible.cfg gives me nice history of actions I can \[re\]visit later. However with larger playbooks and increased number of actions (and with increased verbosity…

---

## [ANSIBLE randomly fails to connect to hosts behind bastion](https://forum.ansible.com/t/ansible-randomly-fails-to-connect-to-hosts-behind-bastion/31150)

<div class="topic-metadata">

**Author:** [@Alberto\_Jimenez\_Loza](https://forum.ansible.com/u/Alberto_Jimenez_Loza)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 11:03am UTC](https://forum.ansible.com/t/ansible-randomly-fails-to-connect-to-hosts-behind-bastion/31150 "2019-08-28T11:03:53Z")

</div>

I use a proxy to connect to some machines and therefore I use the variable ansible\_ssh\_common\_args. vars: ansible\_ssh\_common\_args: ‘-o ProxyCommand=“/usr/bin/nc --proxy-type socks5 --proxy xxxxxxxxxx:1080 %h %p”’ I fo…

---

## [Isolated nodes](https://forum.ansible.com/t/isolated-nodes/31144)

<div class="topic-metadata">

**Author:** [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 8:44am UTC](https://forum.ansible.com/t/isolated-nodes/31144 "2019-08-28T08:44:29Z")

</div>

Hi all, are there any news about isolated nodes? I was trying to implement them some months ago, but the feature wasn’t available, although announced, and no documentation or tutorials. Thanks!

---

## [How to incorporate awk command in ansible shell module](https://forum.ansible.com/t/how-to-incorporate-awk-command-in-ansible-shell-module/31148)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 5\
**Last updated:** [August 28, 2019, 7:41am UTC](https://forum.ansible.com/t/how-to-incorporate-awk-command-in-ansible-shell-module/31148 "2019-08-28T07:41:07Z")

</div>

Below is my playbook: \` name: “Collecting File details” shell: “ls -ltr {{ item }} | awk '{$2=$4=$5=”"; print $0}’ | tr ‘\\n’ ‘\\t’ | tr -s " "; with\_fileglob: “{{ playbook\_dir }}/tmpfiles/\*” \` I get syntax error …

---

## [ansible error 'first argument must be string or compiled pattern'](https://forum.ansible.com/t/ansible-error-first-argument-must-be-string-or-compiled-pattern/31132)

<div class="topic-metadata">

**Author:** [@Fae\_Az](https://forum.ansible.com/u/Fae_Az)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 2:25am UTC](https://forum.ansible.com/t/ansible-error-first-argument-must-be-string-or-compiled-pattern/31132 "2019-08-28T02:25:40Z")

</div>

I have this code in my playbook: - hosts: standby remote\_user: root tasks: - name: replace hostname in config replace: path: /opt/agentd.conf regexp: #\\s+Hostname\\= replace: Hostname={{hname}…

---

## [Ansible Windows Custom Modules](https://forum.ansible.com/t/ansible-windows-custom-modules/31027)

<div class="topic-metadata">

**Author:** [@ground7612](https://forum.ansible.com/u/ground7612)\
**Replies:** 3\
**Last updated:** [August 27, 2019, 9:25pm UTC](https://forum.ansible.com/t/ansible-windows-custom-modules/31027 "2019-08-27T21:25:47Z")

</div>

Hi, I have a few short questions around the Windows Module. Is it allowed (as per the GNU license) to also customize the existing Windows Modules or only add new ones? https://github.com/ansible/ansible/tree/devel/li…

---

## [Can I run plays in parallel?](https://forum.ansible.com/t/can-i-run-plays-in-parallel/31145)

<div class="topic-metadata">

**Author:** [@Nick\_Kakouros](https://forum.ansible.com/u/Nick_Kakouros)\
**Replies:** 4\
**Last updated:** [August 27, 2019, 8:38pm UTC](https://forum.ansible.com/t/can-i-run-plays-in-parallel/31145 "2019-08-27T20:38:05Z")

</div>

I have 10 files with a play each. In total these plays provision 4 hosts. I have written a function in bash that takes as an argument the host I want to provision and calls ansible with all 10 playbooks and a -l(limit) p…

---

## [Best practice: Ansible default filename extension for its files](https://forum.ansible.com/t/best-practice-ansible-default-filename-extension-for-its-files/31141)

<div class="topic-metadata">

**Author:** [@Gilson\_Soares\_GM](https://forum.ansible.com/u/Gilson_Soares_GM)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 8:22pm UTC](https://forum.ansible.com/t/best-practice-ansible-default-filename-extension-for-its-files/31141 "2019-08-27T20:22:25Z")

</div>

I’m new using Ansible but I’d like to start using best practices. I know that Ansible uses YAML syntax files, not “Ansible format”. Looking thru the docs, there are several documents using interchangeably YML and YAML. …

---

## [Search for string in stdout for failed\_when](https://forum.ansible.com/t/search-for-string-in-stdout-for-failed-when/31142)

<div class="topic-metadata">

**Author:** [@JP-OKC](https://forum.ansible.com/u/JP-OKC)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 7:54pm UTC](https://forum.ansible.com/t/search-for-string-in-stdout-for-failed-when/31142 "2019-08-27T19:54:33Z")

</div>

how can I pull a string from the stdout and use it for failed\_when? I run a command on a switch and then I want to match a string w/in that output to determine if it failed or not. Here’s what the playbook looks like:

---

## [Rolling out latest Virtualbox via ansible?](https://forum.ansible.com/t/rolling-out-latest-virtualbox-via-ansible/31138)

<div class="topic-metadata">

**Author:** [@scorp123](https://forum.ansible.com/u/scorp123)\
**Replies:** 1\
**Last updated:** [August 27, 2019, 5:44pm UTC](https://forum.ansible.com/t/rolling-out-latest-virtualbox-via-ansible/31138 "2019-08-27T17:44:39Z")

</div>

I want to roll out the latest Virtualbox onto my Ubuntu 18.04 servers via ansible. What I’ve managed so far is an installer-script that gets copied over to any host in the “virtualbox” hosts group (as per ansible hosts c…

---

## [SSh Connection with key instead password](https://forum.ansible.com/t/ssh-connection-with-key-instead-password/31133)

<div class="topic-metadata">

**Author:** [@Andre\_Trindade](https://forum.ansible.com/u/Andre_Trindade)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 5:27pm UTC](https://forum.ansible.com/t/ssh-connection-with-key-instead-password/31133 "2019-08-27T17:27:58Z")

</div>

Good morning awx community. I am getting a little trouble executing job templates with ssh key instead password. Is there something else i have to do? Thank you. Best Regards.

---

## [when: ansible conditional's based on distribution major version](https://forum.ansible.com/t/when-ansible-conditionals-based-on-distribution-major-version/31140)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Agnitsch](https://forum.ansible.com/u/Jeffrey_Agnitsch)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 3:43pm UTC](https://forum.ansible.com/t/when-ansible-conditionals-based-on-distribution-major-version/31140 "2019-08-27T15:43:56Z")

</div>

I am trying to copy over .rpm files based on the major version of the operating system I believe I am referencing the ansible\_facts part incorrectly does anyone have an example of the right way? tasks: name: Copy ker…

---

## [Adding a Fact to a dict for Cisco Interf.](https://forum.ansible.com/t/adding-a-fact-to-a-dict-for-cisco-interf/31139)

<div class="topic-metadata">

**Author:** [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 3:38pm UTC](https://forum.ansible.com/t/adding-a-fact-to-a-dict-for-cisco-interf/31139 "2019-08-27T15:38:55Z")

</div>

I have the following that is not working. \` vars: cmdb: xkjsdflkjsjdl4d cisco\_ios: interfaces: gigabit1/0/1: name: Gigabit1/0/1 status: up gigabit1/0/2: name: Gigabit1/0/2 status: down tasks: name: Test in…

---

## [Can´t execute tasks as sudo](https://forum.ansible.com/t/can-t-execute-tasks-as-sudo/31113)

<div class="topic-metadata">

**Author:** [@Andre\_Trindade](https://forum.ansible.com/u/Andre_Trindade)\
**Replies:** 5\
**Last updated:** [August 27, 2019, 3:30pm UTC](https://forum.ansible.com/t/can-t-execute-tasks-as-sudo/31113 "2019-08-27T15:30:31Z")

</div>

Good afternoon. I am trying to execute tasks with sudo but i am getting troubles, i don´t have root access. I enabled privilege escalation in the jobs and set the sudo password and user name but nothing, does not work. …

---

## [Bypassing no\_log for a specific output (dumps of zabbix modules)](https://forum.ansible.com/t/bypassing-no-log-for-a-specific-output-dumps-of-zabbix-modules/31007)

<div class="topic-metadata">

**Author:** [@Dusan\_Matejka](https://forum.ansible.com/u/Dusan_Matejka)\
**Replies:** 3\
**Last updated:** [August 27, 2019, 2:18pm UTC](https://forum.ansible.com/t/bypassing-no-log-for-a-specific-output-dumps-of-zabbix-modules/31007 "2019-08-27T14:18:38Z")

</div>

Hi, I’ve been searching for ways to bypass no\_log option for specific module output, but with no luck so far. To my understanding, providing no\_log for at least one argument in argument\_spec makes every module output co…

---

## [inventory file for playbooks with only uri calls](https://forum.ansible.com/t/inventory-file-for-playbooks-with-only-uri-calls/31137)

<div class="topic-metadata">

**Author:** [@Nicholas\_Britton](https://forum.ansible.com/u/Nicholas_Britton)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 1:23pm UTC](https://forum.ansible.com/t/inventory-file-for-playbooks-with-only-uri-calls/31137 "2019-08-27T13:23:12Z")

</div>

I am working on a set of playbooks for a hitachi storage automation. They utilize a cmrest server, that manages the connection to each storage array. So all of the tasks are ran on the localhost to the same url base, but…

---

## [Ansible and Windows Project](https://forum.ansible.com/t/ansible-and-windows-project/31098)

<div class="topic-metadata">

**Author:** [@Simon-Pierre\_Diamond](https://forum.ansible.com/u/Simon-Pierre_Diamond)\
**Replies:** 4\
**Last updated:** [August 27, 2019, 1:16pm UTC](https://forum.ansible.com/t/ansible-and-windows-project/31098 "2019-08-27T13:16:49Z")

</div>

Hi Ansible Community, It is my first post here. I am coming to get more information about Windows management with Ansible. I have been using Ansible for about a year now, and I am able to manage Windows with the WinRM …

---

## [Attaching/detaching storage domains](https://forum.ansible.com/t/attaching-detaching-storage-domains/31136)

<div class="topic-metadata">

**Author:** [@harry\_devine](https://forum.ansible.com/u/harry_devine)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 1:06pm UTC](https://forum.ansible.com/t/attaching-detaching-storage-domains/31136 "2019-08-27T13:06:16Z")

</div>

We have a Red Hat RHV setup that uses NFS for its storage. We are moving to a Red Hat Hyperconverged solution that uses GlusterFS for its storage. We have a Data domain called Migrate that we use to move the VM disks fro…

---

## [Loop with hostvars groups](https://forum.ansible.com/t/loop-with-hostvars-groups/31134)

<div class="topic-metadata">

**Author:** [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 12:47pm UTC](https://forum.ansible.com/t/loop-with-hostvars-groups/31134 "2019-08-27T12:47:14Z")

</div>

Hi, I have an inventory with groups this configuration the DB Servers: \[db\] 192.168.0.1 192.168.0.2 192.168.0.3 I want to do loop the groups and get variable ipaddress in template.j2. My loop is: {% for host in gr…

---

## [win\_command](https://forum.ansible.com/t/win-command/31125)

<div class="topic-metadata">

**Author:** [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Replies:** 4\
**Last updated:** [August 27, 2019, 5:31am UTC](https://forum.ansible.com/t/win-command/31125 "2019-08-27T05:31:32Z")

</div>

Dear All, I am able to install notepad in the window server but unable to do it in specific directory like D:\\npp. name: install notepad plus plus playbook hosts: win gather\_facts: no tasks: name: fetch notepad-plu…

---

## [How do I get a PR merged?](https://forum.ansible.com/t/how-do-i-get-a-pr-merged/31131)

<div class="topic-metadata">

**Author:** [@Steven\_Barre](https://forum.ansible.com/u/Steven_Barre)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 4:53am UTC](https://forum.ansible.com/t/how-do-i-get-a-pr-merged/31131 "2019-08-27T04:53:24Z")

</div>

So I opened a PR 59067, responded to questions and input, and got two approvals. But now it appears to just be going stale. Is there a next step I need to take to get it merged? Are PRs only merged during certain times? …

---

## [How to get a PR merged?](https://forum.ansible.com/t/how-to-get-a-pr-merged/31130)

<div class="topic-metadata">

**Author:** [@Steven\_Barre](https://forum.ansible.com/u/Steven_Barre)\
**Replies:** 0\
**Last updated:** [August 27, 2019, 4:50am UTC](https://forum.ansible.com/t/how-to-get-a-pr-merged/31130 "2019-08-27T04:50:17Z")

</div>

So I opened a PR https://github.com/ansible/ansible/pull/59067, responded to questions and input, and got two approvals. But now it appears to just be going stale. Is there a next step I need to take to get it merged? Ar…

---

## [Inventori plugin and vault](https://forum.ansible.com/t/inventori-plugin-and-vault/31120)

<div class="topic-metadata">

**Author:** [@Claudio\_Papa](https://forum.ansible.com/u/Claudio_Papa)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 2:40am UTC](https://forum.ansible.com/t/inventori-plugin-and-vault/31120 "2019-08-27T02:40:28Z")

</div>

Hi, I'm developing an inventory plugin that contain some ansible vaulted data. I don't know how to decode this data, I've tried with dataloader without lucky, what is the most stable way to decode (or encode) yaml data …

---

## [Why is this telling me the variable is undefined?](https://forum.ansible.com/t/why-is-this-telling-me-the-variable-is-undefined/31123)

<div class="topic-metadata">

**Author:** [@Chrono\_7](https://forum.ansible.com/u/Chrono_7)\
**Replies:** 9\
**Last updated:** [August 26, 2019, 10:46pm UTC](https://forum.ansible.com/t/why-is-this-telling-me-the-variable-is-undefined/31123 "2019-08-26T22:46:33Z")

</div>

I tried to follow along with a similar approach to the docs on read\_csv here. I’m not sure why I’m getting this error returned when the value of systems is defined just above the set\_fact: fatal: \[127.0.0.1\]: FAILED! =\> …

---

## [Ansible Module Failure](https://forum.ansible.com/t/ansible-module-failure/31119)

<div class="topic-metadata">

**Author:** [@Andrew\_Morgan](https://forum.ansible.com/u/Andrew_Morgan)\
**Replies:** 7\
**Last updated:** [August 26, 2019, 7:21pm UTC](https://forum.ansible.com/t/ansible-module-failure/31119 "2019-08-26T19:21:12Z")

</div>

Hello All, I am running ansible from a MAC 2018, ansible version 2.8.3 and trying to update servers in AWS (Amazon Linux) . I can successfully ping all the servers, and can run my playbook on ALL server BUT on dev\_FE an…

---

## [Looking for Feedback: Ansible LDAP Inventory Plugin](https://forum.ansible.com/t/looking-for-feedback-ansible-ldap-inventory-plugin/31128)

<div class="topic-metadata">

**Author:** [@Josh\_R](https://forum.ansible.com/u/Josh_R)\
**Replies:** 0\
**Last updated:** [August 26, 2019, 6:07pm UTC](https://forum.ansible.com/t/looking-for-feedback-ansible-ldap-inventory-plugin/31128 "2019-08-26T18:07:01Z")

</div>

I developed an inventory plugin that queries LDAP (Active Directory) to generate a list of hosts and groups base on OU structure. It handles expired AD computer accounts, can ping hosts to see if they are online and var…

---

## [Need to Replace single quote with double quotes in Ansible](https://forum.ansible.com/t/need-to-replace-single-quote-with-double-quotes-in-ansible/31124)

<div class="topic-metadata">

**Author:** [@Easy\_King](https://forum.ansible.com/u/Easy_King)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 4:37pm UTC](https://forum.ansible.com/t/need-to-replace-single-quote-with-double-quotes-in-ansible/31124 "2019-08-26T16:37:09Z")

</div>

I have a multiline variable “filedet” that contains string text having multiple single quotes. I wish to replace the single quote to double quotes so that It can be acceptable for SQL query and below is what I tried. f…

---

## [ansible-playbook inline help](https://forum.ansible.com/t/ansible-playbook-inline-help/31127)

<div class="topic-metadata">

**Author:** [@Emmanuel\_Lacour1](https://forum.ansible.com/u/Emmanuel_Lacour1)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 2:43pm UTC](https://forum.ansible.com/t/ansible-playbook-inline-help/31127 "2019-08-26T14:43:11Z")

</div>

Dear ansible users, is it possible to have some kind of way to write a custom help inside a playbook that would be printed once (not for each host) when you issue a command like: ansible-playbook playbooks/myplay.yml --…

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

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