# Latest

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

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

**Page:** 537

---

## [Multiple linux commands using command module](https://forum.ansible.com/t/multiple-linux-commands-using-command-module/28125)

<div class="topic-metadata">

**Author:** [@Vamsi\_Krishna](https://forum.ansible.com/u/Vamsi_Krishna)\
**Replies:** 4\
**Last updated:** [July 23, 2018, 5:32pm UTC](https://forum.ansible.com/t/multiple-linux-commands-using-command-module/28125 "2018-07-23T17:32:22Z")

</div>

HI All, I have written yaml script to get pre-checks from Linux systems before patching them. Can any one suggest on how can I re-write using command module in the ansible play book.

---

## [Win\_get\_url ie first launch](https://forum.ansible.com/t/win-get-url-ie-first-launch/28105)

<div class="topic-metadata">

**Author:** [@tommy.lin](https://forum.ansible.com/u/tommy.lin)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 12:33pm UTC](https://forum.ansible.com/t/win-get-url-ie-first-launch/28105 "2018-07-23T12:33:41Z")

</div>

Hi Everyone, May I know is there any method to escape the ie first launch windows so that I can start using ansible once I created the account. I prefer to do it by command line. Thanks so much

---

## [Ansible logging to get playbook name](https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 7:44am UTC](https://forum.ansible.com/t/ansible-logging-to-get-playbook-name/28106 "2018-07-23T07:44:23Z")

</div>

is there way to write playbook information in logging file with other data like tasks status etc. Important thing is where to get playbook information… I want logs like: Playbook name : below that logs corresponding t…

---

## [Cleaning up manual RDS snapshots](https://forum.ansible.com/t/cleaning-up-manual-rds-snapshots/28121)

<div class="topic-metadata">

**Author:** [@tharun.kumarc09](https://forum.ansible.com/u/tharun.kumarc09)\
**Replies:** 2\
**Last updated:** [July 22, 2018, 11:54pm UTC](https://forum.ansible.com/t/cleaning-up-manual-rds-snapshots/28121 "2018-07-22T23:54:54Z")

</div>

I am trying to cleanup the rds snapshots that are expired. We have expiration tag set with the 14 days from the day the snapshot created. These snapshots are created manually not automated snapshots. Is there way we can…

---

## [AWX with Jenkins Tower plugin](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120)

<div class="topic-metadata">

**Author:** [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Replies:** 2\
**Last updated:** [July 22, 2018, 5:02pm UTC](https://forum.ansible.com/t/awx-with-jenkins-tower-plugin/28120 "2018-07-22T17:02:43Z")

</div>

Hi All, Any one out there managed to get AWX working with Jenkins Ansible Tower plugin? I run Ansible AWX with pure http (not https),an I get a 502 when I try to add the AWX host to jenkins. Any thoughts how we can do t…

---

## [Unable to fetch multiple files from source](https://forum.ansible.com/t/unable-to-fetch-multiple-files-from-source/28119)

<div class="topic-metadata">

**Author:** [@bhargav\_bhargavan](https://forum.ansible.com/u/bhargav_bhargavan)\
**Replies:** 0\
**Last updated:** [July 22, 2018, 1:16pm UTC](https://forum.ansible.com/t/unable-to-fetch-multiple-files-from-source/28119 "2018-07-22T13:16:15Z")

</div>

I can able to fetch file but unable to fetch multiple files . Hi i have one request to automate things with the shell script any 1 hell me for below scenario. 1: I want to copy the files from source server with date an…

---

## [how to iterate line by line from csv file and use awk command to separate the comma , field](https://forum.ansible.com/t/how-to-iterate-line-by-line-from-csv-file-and-use-awk-command-to-separate-the-comma-field/28112)

<div class="topic-metadata">

**Author:** [@Atul\_Sharma](https://forum.ansible.com/u/Atul_Sharma)\
**Replies:** 2\
**Last updated:** [July 21, 2018, 6:46pm UTC](https://forum.ansible.com/t/how-to-iterate-line-by-line-from-csv-file-and-use-awk-command-to-separate-the-comma-field/28112 "2018-07-21T18:46:04Z")

</div>

i want to loop in file to read line by line and in same line seperate the comma, with awk for example i have file called gpc.csv which contain comma separated value , I want to read leach line and separate feild 3 and 4 …

---

## [Cleaning up RDS Snapshots](https://forum.ansible.com/t/cleaning-up-rds-snapshots/28117)

<div class="topic-metadata">

**Author:** [@tharun.kumarc09](https://forum.ansible.com/u/tharun.kumarc09)\
**Replies:** 0\
**Last updated:** [July 21, 2018, 5:29pm UTC](https://forum.ansible.com/t/cleaning-up-rds-snapshots/28117 "2018-07-21T17:29:19Z")

</div>

I am trying to cleanup the rds snapshots that are expired. We have expiration tag set with the 14 days from the day the snapshot created. These snapshots are created manually not automated snapshots. Is there way we can…

---

## [Saving output of commands passed through 'with\_items' into a single file](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28107)

<div class="topic-metadata">

**Author:** [@Soham\_Chakraborty](https://forum.ansible.com/u/Soham_Chakraborty)\
**Replies:** 5\
**Last updated:** [July 21, 2018, 4:35pm UTC](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28107 "2018-07-21T16:35:31Z")

</div>

Hi all, I am trying to run few commands and save output of those commands into a single file for checking later. So far, I have come up with the following playbook:

---

## [Trying to reset root password by using .yml playbook from jenkins, but its failed with permission denied error and same .yml playbook is working via terminal.](https://forum.ansible.com/t/trying-to-reset-root-password-by-using-yml-playbook-from-jenkins-but-its-failed-with-permission-denied-error-and-same-yml-playbook-is-working-via-terminal/28115)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 0\
**Last updated:** [July 21, 2018, 2:31pm UTC](https://forum.ansible.com/t/trying-to-reset-root-password-by-using-yml-playbook-from-jenkins-but-its-failed-with-permission-denied-error-and-same-yml-playbook-is-working-via-terminal/28115 "2018-07-21T14:31:12Z")

</div>

Can you someone please read below error and suggest what needs to be done! Error:-

---

## [efficient way to get email notification about failed task in a playbook or role](https://forum.ansible.com/t/efficient-way-to-get-email-notification-about-failed-task-in-a-playbook-or-role/28104)

<div class="topic-metadata">

**Author:** [@Sandeep\_Panchal1](https://forum.ansible.com/u/Sandeep_Panchal1)\
**Replies:** 2\
**Last updated:** [July 21, 2018, 10:18am UTC](https://forum.ansible.com/t/efficient-way-to-get-email-notification-about-failed-task-in-a-playbook-or-role/28104 "2018-07-21T10:18:57Z")

</div>

Dear All, is there any way to get failed task name captured in rescue section which can be email notified or submitted to slack system ? looking for something which can be placed on “any\_variable\_for\_failed\_task” in be…

---

## [please help me to create a swap partition using ansible](https://forum.ansible.com/t/please-help-me-to-create-a-swap-partition-using-ansible/28090)

<div class="topic-metadata">

**Author:** [@Jobin\_A\_T\_A\_T](https://forum.ansible.com/u/Jobin_A_T_A_T)\
**Replies:** 2\
**Last updated:** [July 21, 2018, 10:09am UTC](https://forum.ansible.com/t/please-help-me-to-create-a-swap-partition-using-ansible/28090 "2018-07-21T10:09:39Z")

</div>

hello all iam trying to create the swap partition using name: creating lvm partition parted: device: /dev/sdb number: 1 flags: \[ swap \] state: present part\_end: 1GiB but i didn’t get the exact flag name is that …

---

## [Conditional message not working correctly](https://forum.ansible.com/t/conditional-message-not-working-correctly/28114)

<div class="topic-metadata">

**Author:** [@email](https://forum.ansible.com/u/email)\
**Replies:** 3\
**Last updated:** [July 21, 2018, 8:50am UTC](https://forum.ansible.com/t/conditional-message-not-working-correctly/28114 "2018-07-21T08:50:24Z")

</div>

Hi all, I’m scratching my head on this one. I am attempting to make a conditional message based on whether a variable value is 0 or not. Here’s what I have: debug: msg: “{{ ‘User is root’ if (user\_id.stdout\_lines == …

---

## [this was worked before,  "No package matching 'atop' found available, installed or updated", "No package matching 'htop' found available, installed or updated"](https://forum.ansible.com/t/this-was-worked-before-no-package-matching-atop-found-available-installed-or-updated-no-package-matching-htop-found-available-installed-or-updated/28113)

<div class="topic-metadata">

**Author:** [@John\_Roh](https://forum.ansible.com/u/John_Roh)\
**Replies:** 0\
**Last updated:** [July 21, 2018, 6:27am UTC](https://forum.ansible.com/t/this-was-worked-before-no-package-matching-atop-found-available-installed-or-updated-no-package-matching-htop-found-available-installed-or-updated/28113 "2018-07-21T06:27:36Z")

</div>

Hi, I’m on packer v1.2.3 and Ansible 2.4.1.0 that I didn’t have this error a month ago that my playbook install all these on centos7. My pip version is v9.0.3 and python 2.7. failed: \[default\] (item=\[u’epel-release’, u…

---

## [Kerberos winrm ansible tower cloudforms dynamic inventory](https://forum.ansible.com/t/kerberos-winrm-ansible-tower-cloudforms-dynamic-inventory/28111)

<div class="topic-metadata">

**Author:** [@neal\_pally](https://forum.ansible.com/u/neal_pally)\
**Replies:** 0\
**Last updated:** [July 20, 2018, 11:50pm UTC](https://forum.ansible.com/t/kerberos-winrm-ansible-tower-cloudforms-dynamic-inventory/28111 "2018-07-20T23:50:52Z")

</div>

Hi Folks.. we are using cloudform for provisioning the VMs with dynamic inventory with cloudforms provider. I see below error while running the ansible tower job template. It failing because ansible\_ssh\_hostname is IP…

---

## [Ansible Jinja2 template - inventory\_hostname as variable in if statement?](https://forum.ansible.com/t/ansible-jinja2-template-inventory-hostname-as-variable-in-if-statement/28109)

<div class="topic-metadata">

**Author:** [@chrisjx](https://forum.ansible.com/u/chrisjx)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 8:11pm UTC](https://forum.ansible.com/t/ansible-jinja2-template-inventory-hostname-as-variable-in-if-statement/28109 "2018-07-20T20:11:19Z")

</div>

Still trying to understand the way to work jinja2 templates… I’m looking for a way to alter the definition of a gateway address based on the name of the current inventory\_hostname. eth0gateway and eth0gateway\_gen are v…

---

## [Included playbook from a role can not find it's template files](https://forum.ansible.com/t/included-playbook-from-a-role-can-not-find-its-template-files/28102)

<div class="topic-metadata">

**Author:** [@igorc](https://forum.ansible.com/u/igorc)\
**Replies:** 2\
**Last updated:** [July 20, 2018, 6:54pm UTC](https://forum.ansible.com/t/included-playbook-from-a-role-can-not-find-its-template-files/28102 "2018-07-20T18:54:21Z")

</div>

Hi, Consider I have the following structure under a current directory: \` . playbook.yml ├── roles │ ├── common │ │ ├── defaults │ │ ├── files │ │ ├── handlers │ │ ├── tasks │ │ ├── templates │ │ └── vars \` …

---

## [Saving output of commands passed through 'with\_items' into a single file](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28108)

<div class="topic-metadata">

**Author:** [@Soham\_Chakraborty](https://forum.ansible.com/u/Soham_Chakraborty)\
**Replies:** 0\
**Last updated:** [July 20, 2018, 6:48pm UTC](https://forum.ansible.com/t/saving-output-of-commands-passed-through-with-items-into-a-single-file/28108 "2018-07-20T18:48:53Z")

</div>

\*\* I sent this email to another group and then checked that it is ansible-devel and not ansible project. So here goes again \*\* Hi all, I am trying to run few commands and save output of those commands into a single fil…

---

## [Ansible galaxy ssh private repository dependency not downloaded](https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095)

<div class="topic-metadata">

**Author:** [@ansible-quest](https://forum.ansible.com/u/ansible-quest)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 6:44pm UTC](https://forum.ansible.com/t/ansible-galaxy-ssh-private-repository-dependency-not-downloaded/28095 "2018-07-20T18:44:19Z")

</div>

Hello, I have a private repository allowing ssh access with access key. I have a requirements.yml with the following content: name: molecule scr: ssh://git@myprivate.repo.com/test/ansible-role-molecule.git scm: git …

---

## [Filtering unpartitioned devices on a host](https://forum.ansible.com/t/filtering-unpartitioned-devices-on-a-host/28089)

<div class="topic-metadata">

**Author:** [@vid.jelen1](https://forum.ansible.com/u/vid.jelen1)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 8:00am UTC](https://forum.ansible.com/t/filtering-unpartitioned-devices-on-a-host/28089 "2018-07-20T08:00:30Z")

</div>

Hi, I’d like to automatically check all available disk devices if they are partitioned and filter out the ones that aren’t. Later I’d also like to use that list to decide which ones to partition. I’m trying to achieve …

---

## [get\_url fails to download](https://forum.ansible.com/t/get-url-fails-to-download/28086)

<div class="topic-metadata">

**Author:** [@Brian\_Peavey](https://forum.ansible.com/u/Brian_Peavey)\
**Replies:** 5\
**Last updated:** [July 19, 2018, 8:21pm UTC](https://forum.ansible.com/t/get-url-fails-to-download/28086 "2018-07-19T20:21:15Z")

</div>

Hi, I’m trying to download and install Segger JLink tools in an Ubuntu VM. The relevant portion of my ansible playbook is - hosts: fw\_dev vars: username: “vagrant” download\_dir: “/home/{{username}}/Downloads” jlink…

---

## [Galaxy Release v3.0.3](https://forum.ansible.com/t/galaxy-release-v3-0-3/28100)

<div class="topic-metadata">

**Author:** [@chousekn](https://forum.ansible.com/u/chousekn)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 7:56pm UTC](https://forum.ansible.com/t/galaxy-release-v3-0-3/28100 "2018-07-19T19:56:57Z")

</div>

Tomorrow morning, 20 July, at 5:00 AM Eastern, Galaxy v3.0.3 will be deployed. We don’t anticipate any downtime or service interruptions. This bug fix release includes the following updates: Bug Fixes- Improve mobile v…

---

## [Via Jenkins, I'm trying to run ansible playbook.yml, but its failing due to below error](https://forum.ansible.com/t/via-jenkins-im-trying-to-run-ansible-playbook-yml-but-its-failing-due-to-below-error/28085)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 7\
**Last updated:** [July 19, 2018, 7:06pm UTC](https://forum.ansible.com/t/via-jenkins-im-trying-to-run-ansible-playbook-yml-but-its-failing-due-to-below-error/28085 "2018-07-19T19:06:37Z")

</div>

UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\\r\\n”, “unreachable”: true} I have added the key, even though its say …

---

## [Error while adding the Cloud forms inventory to ansible tower](https://forum.ansible.com/t/error-while-adding-the-cloud-forms-inventory-to-ansible-tower/28096)

<div class="topic-metadata">

**Author:** [@venesh0709](https://forum.ansible.com/u/venesh0709)\
**Replies:** 1\
**Last updated:** [July 19, 2018, 7:01pm UTC](https://forum.ansible.com/t/error-while-adding-the-cloud-forms-inventory-to-ansible-tower/28096 "2018-07-19T19:01:37Z")

</div>

I created a normal inventory and added the source as the Cloudforms. I got the below error. Error Standard Output too large to display (2688173 bytes), only download supported for sizes over 1048576 bytes //I was aske…

---

## [ansible-playbook error \[Juniper 220SRX\]](https://forum.ansible.com/t/ansible-playbook-error-juniper-220srx/28097)

<div class="topic-metadata">

**Author:** [@Jongwon\_Kim](https://forum.ansible.com/u/Jongwon_Kim)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 6:18pm UTC](https://forum.ansible.com/t/ansible-playbook-error-juniper-220srx/28097 "2018-07-19T18:18:33Z")

</div>

Hi One of our Juniper SRX220 doesn’t work with ansible-playbook. the system info is as follow. kim3@MRAC-BH-RTR\> show version Hostname: MRAC-BH-RTR Model: srx220h2 JUNOS Software Release \[12.1X44-D35.5\] When I run…

---

## [Unable to start JBoss EAP using ansible](https://forum.ansible.com/t/unable-to-start-jboss-eap-using-ansible/28075)

<div class="topic-metadata">

**Author:** [@Shankar\_Shiva](https://forum.ansible.com/u/Shankar_Shiva)\
**Replies:** 6\
**Last updated:** [July 19, 2018, 2:13pm UTC](https://forum.ansible.com/t/unable-to-start-jboss-eap-using-ansible/28075 "2018-07-19T14:13:27Z")

</div>

Hi, I had created below ansible structure : -rw-rw-r-- 1 packt packt 1841 Jun 3 18:36 README.md -rw-rw-r-- 1 packt packt 217 Jun 3 18:36 LICENSE.md -rw-rw-r-- 1 packt packt 123 Jul 12 17:57 ansible.cfg -rw-rw-r-- 1 pac…

---

## [how to deploy vmware from template with ansible: changing the local user, expanding the disk and identifying when sysprep is completed.](https://forum.ansible.com/t/how-to-deploy-vmware-from-template-with-ansible-changing-the-local-user-expanding-the-disk-and-identifying-when-sysprep-is-completed/27601)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 2\
**Last updated:** [July 19, 2018, 2:00pm UTC](https://forum.ansible.com/t/how-to-deploy-vmware-from-template-with-ansible-changing-the-local-user-expanding-the-disk-and-identifying-when-sysprep-is-completed/27601 "2018-07-19T14:00:41Z")

</div>

After several weeks searching for information and getting it, I give you the playbook. Feel free to answer to improve it or show me the faults After several weeks searching for information and getting it, I give you th…

---

## [Is it possible to use variables of "list" type from inventory within Jinja templates (typecast)?](https://forum.ansible.com/t/is-it-possible-to-use-variables-of-list-type-from-inventory-within-jinja-templates-typecast/28093)

<div class="topic-metadata">

**Author:** [@Frank\_Thommen](https://forum.ansible.com/u/Frank_Thommen)\
**Replies:** 1\
**Last updated:** [July 19, 2018, 1:47pm UTC](https://forum.ansible.com/t/is-it-possible-to-use-variables-of-list-type-from-inventory-within-jinja-templates-typecast/28093 "2018-07-19T13:47:50Z")

</div>

Hi, in our inventory we use variables of type "list" like userlist = "\['alice', 'bob', 'mallory'\]" which - e.g. - we use in loops within tasks to roll out public SSH keys: - name: Roll out SSH keys for someothe…

---

## [Template lookup formatting JSON to be passed on to shell module](https://forum.ansible.com/t/template-lookup-formatting-json-to-be-passed-on-to-shell-module/28092)

<div class="topic-metadata">

**Author:** [@bozho](https://forum.ansible.com/u/bozho)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 1:08pm UTC](https://forum.ansible.com/t/template-lookup-formatting-json-to-be-passed-on-to-shell-module/28092 "2018-07-19T13:08:14Z")

</div>

Hi all, I've lost the entire day on this and got nowhere... I have a JSON file parameter that needs to be passed to aws CLI utility as a file, and I'm trying to avoid creating temp files using bash here files. Basica…

---

## [Ansible error while evaluting condition with two group vars](https://forum.ansible.com/t/ansible-error-while-evaluting-condition-with-two-group-vars/28091)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 1:07pm UTC](https://forum.ansible.com/t/ansible-error-while-evaluting-condition-with-two-group-vars/28091 "2018-07-19T13:07:23Z")

</div>

abd,cde are two groups in inventory files. Getting error while running the playbook: hosts: abc,cde tasks: - name: Check shell: ls -ltrh /tmp/test1/ | wc -l register : something\_result when: "'abc' in group\_na…

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

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