# Ansible Project

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

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

**Page:** 285

---

## [Running yml inside a playbook but different inventories](https://forum.ansible.com/t/running-yml-inside-a-playbook-but-different-inventories/26624)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 5:03pm UTC](https://forum.ansible.com/t/running-yml-inside-a-playbook-but-different-inventories/26624 "2018-02-01T17:03:13Z")

</div>

Hi All, I’ve a requirement where i want to run a playbook inside the main playbook, however inventory(host) for inside playbook will be different For example : main.ini will be having hosts a, b, c, d whereas inside.…

---

## [Item name in task name.](https://forum.ansible.com/t/item-name-in-task-name/26588)

<div class="topic-metadata">

**Author:** [@Varun\_Chopra](https://forum.ansible.com/u/Varun_Chopra)\
**Replies:** 5\
**Last updated:** [February 1, 2018, 3:21pm UTC](https://forum.ansible.com/t/item-name-in-task-name/26588 "2018-02-01T15:21:29Z")

</div>

Hi, I’m trying to display the item name in the name of the task but it doesn’t work as intended. Here’s part of my play: tasks: name: Installing {{ item }} yum: name: “{{ item }}” state: latest with\_items: httpd …

---

## [Create AWS RDS with Ansible script](https://forum.ansible.com/t/create-aws-rds-with-ansible-script/26619)

<div class="topic-metadata">

**Author:** [@Reddy\_Myyb](https://forum.ansible.com/u/Reddy_Myyb)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 8:10am UTC](https://forum.ansible.com/t/create-aws-rds-with-ansible-script/26619 "2018-02-01T08:10:27Z")

</div>

I have a requirement to create AWS RDS for Oracle Standard Edition 2. I have created the script and gave values as available in the AWS RDS console. The problem is Ansible is not accepting the Engine version available in…

---

## [Ansible 2.4.3 has been released](https://forum.ansible.com/t/ansible-2-4-3-has-been-released/26618)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 1:29am UTC](https://forum.ansible.com/t/ansible-2-4-3-has-been-released/26618 "2018-02-01T01:29:31Z")

</div>

On behalf of the entire Ansible open source community, we are very happy to announce that Ansible 2.4.3 has been released! This release includes many bugfixes to the 2.4 codebase. For full details, please see the Cha…

---

## [Using Ansible module asa\_config system context saving](https://forum.ansible.com/t/using-ansible-module-asa-config-system-context-saving/26617)

<div class="topic-metadata">

**Author:** [@Rob\_Harp](https://forum.ansible.com/u/Rob_Harp)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 6:42pm UTC](https://forum.ansible.com/t/using-ansible-module-asa-config-system-context-saving/26617 "2018-01-31T18:42:25Z")

</div>

\#This play will log into the admin context and change to the system context to update users. Does it automatically save? There is a save: option i can use under asa\_config: but does it save the admin context, system cont…

---

## [Line too long, need to break over two lines -](https://forum.ansible.com/t/line-too-long-need-to-break-over-two-lines/26616)

<div class="topic-metadata">

**Author:** [@rckd02](https://forum.ansible.com/u/rckd02)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 6:13pm UTC](https://forum.ansible.com/t/line-too-long-need-to-break-over-two-lines/26616 "2018-01-31T18:13:40Z")

</div>

I’m using yamllint to validate my code and its telling me my line is too long - read many posts online, and can’t understand how to fix this. name: copy multiple items into multiple locations copy: src: “{{ item.src …

---

## [Urgent need SQL server (Los Angeles,CA) 06+Months](https://forum.ansible.com/t/urgent-need-sql-server-los-angeles-ca-06-months/26615)

<div class="topic-metadata">

**Author:** [@azeem\_sqldeveloper](https://forum.ansible.com/u/azeem_sqldeveloper)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 4:24pm UTC](https://forum.ansible.com/t/urgent-need-sql-server-los-angeles-ca-06-months/26615 "2018-01-31T16:24:35Z")

</div>

Please share profile on azeem@nestarit.com Direct contact number: (216) 640-7259 Dear IT Professional, Wishes for the Day !!! Hope you are doing great. This is Mohammed Azeem from NESTAR TECHNOLOGIES/ AESPATECH LLC …

---

## [vmware\_guest\_snapshot module unable to find VM with Ansible 2.4.2](https://forum.ansible.com/t/vmware-guest-snapshot-module-unable-to-find-vm-with-ansible-2-4-2/26603)

<div class="topic-metadata">

**Author:** [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 3:07pm UTC](https://forum.ansible.com/t/vmware-guest-snapshot-module-unable-to-find-vm-with-ansible-2-4-2/26603 "2018-01-31T15:07:40Z")

</div>

I have recently updated to Ansible 2.4.2 I have plays that will remove old snapshots from specific VMs and will create new snapshots for those VMs. The remove playbook is as follows: \`

---

## [dns\_settings in azure\_rm\_networkinterface](https://forum.ansible.com/t/dns-settings-in-azure-rm-networkinterface/26612)

<div class="topic-metadata">

**Author:** [@Tim\_Qin](https://forum.ansible.com/u/Tim_Qin)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 11:09am UTC](https://forum.ansible.com/t/dns-settings-in-azure-rm-networkinterface/26612 "2018-01-31T11:09:40Z")

</div>

For the return value in module azure\_rm\_networkinterface we could have dns\_settings as an output: ‘dns\_settings’: {‘dns\_servers’: , ‘internal\_fqdn’: None, ‘internal\_dns\_name\_label’: None, ‘applied\_dns\_servers’: } But h…

---

## [Ansible Copy module error - "Exec format error"](https://forum.ansible.com/t/ansible-copy-module-error-exec-format-error/24804)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 9\
**Last updated:** [January 31, 2018, 8:39am UTC](https://forum.ansible.com/t/ansible-copy-module-error-exec-format-error/24804 "2018-01-31T08:39:44Z")

</div>

I get the error below when trying to copy a directory (from local to local) Anyone know why? (It doesn’t work either with trailing slashes in src and destination, also destination does exist)

---

## [callback plugin log\_plays double output in logs](https://forum.ansible.com/t/callback-plugin-log-plays-double-output-in-logs/26432)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 7\
**Last updated:** [January 31, 2018, 7:07am UTC](https://forum.ansible.com/t/callback-plugin-log-plays-double-output-in-logs/26432 "2018-01-31T07:07:42Z")

</div>

Ansible log\_plays plugin is logging double output in logs Jan 06 2018 10:20:29 - OK - omitted Jan 06 2018 10:20:29 - OK - omitted Jan 06 2018 10:20:29 - OK - {"msg": "hello", "changed": false, "\_ansible\_verbose\_al…

---

## [Simple cisco IOS show version](https://forum.ansible.com/t/simple-cisco-ios-show-version/22264)

<div class="topic-metadata">

**Author:** [@Bharath\_Bharadwaj](https://forum.ansible.com/u/Bharath_Bharadwaj)\
**Replies:** 20\
**Last updated:** [January 31, 2018, 6:52am UTC](https://forum.ansible.com/t/simple-cisco-ios-show-version/22264 "2018-01-31T06:52:12Z")

</div>

Hi All, I’m new to Ansible and yml, my goal is to automate a part of network operation, I just want to start with a very simple output, copied below is my playbook, I’m trying to run a show version, but i’m getting erro…

---

## [Linux Compare Two hosts operating system versions and applications versions](https://forum.ansible.com/t/linux-compare-two-hosts-operating-system-versions-and-applications-versions/26608)

<div class="topic-metadata">

**Author:** [@srikanthgali187](https://forum.ansible.com/u/srikanthgali187)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 9:19pm UTC](https://forum.ansible.com/t/linux-compare-two-hosts-operating-system-versions-and-applications-versions/26608 "2018-01-30T21:19:53Z")

</div>

This is to check Disaster recovery hosts are having same configuration/OS levels/application versions as DC hosts. Any idea how to auto mate this with ansible?

---

## [How to compare two Directories/sub directories in 2 hosts with ansible](https://forum.ansible.com/t/how-to-compare-two-directories-sub-directories-in-2-hosts-with-ansible/26607)

<div class="topic-metadata">

**Author:** [@srikanthgali187](https://forum.ansible.com/u/srikanthgali187)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 9:15pm UTC](https://forum.ansible.com/t/how-to-compare-two-directories-sub-directories-in-2-hosts-with-ansible/26607 "2018-01-30T21:15:37Z")

</div>

We have two linux(RHEL) hosts, I want to compare application directories between two hosts.

---

## [Loops in Ansible](https://forum.ansible.com/t/loops-in-ansible/23975)

<div class="topic-metadata">

**Author:** [@user20](https://forum.ansible.com/u/user20)\
**Replies:** 6\
**Last updated:** [January 30, 2018, 8:26pm UTC](https://forum.ansible.com/t/loops-in-ansible/23975 "2018-01-30T20:26:56Z")

</div>

Hi, everyone. Would it be possible to somehow merge those two tasks in one? As you can see, the only difference is in default: \[yes|no\] key. I have to install both default and non-default ACL on a filesystem object, bu…

---

## [Azure Auth using 'az login' like Terraform does](https://forum.ansible.com/t/azure-auth-using-az-login-like-terraform-does/26601)

<div class="topic-metadata">

**Author:** [@Tim\_Qin](https://forum.ansible.com/u/Tim_Qin)\
**Replies:** 1\
**Last updated:** [January 30, 2018, 7:43pm UTC](https://forum.ansible.com/t/azure-auth-using-az-login-like-terraform-does/26601 "2018-01-30T19:43:29Z")

</div>

I m trying to use ansible azure module, but the auth methods blocked me: Service principles: it is no go as we are auth through enterprise AD on Azure portal AD: simply provide username and password are not working bec…

---

## [Getting latest version in \`.galaxy\_install\_info\`](https://forum.ansible.com/t/getting-latest-version-in-galaxy-install-info/26606)

<div class="topic-metadata">

**Author:** [@jjelinek](https://forum.ansible.com/u/jjelinek)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 5:04pm UTC](https://forum.ansible.com/t/getting-latest-version-in-galaxy-install-info/26606 "2018-01-30T17:04:41Z")

</div>

Hi, If I have a requirements.yml like this: --- - name: abc src: git@github.com:my-super-repo/ansible-abc.git scm: git it will pull in the role and inside meta/.galaxy\_install\_info the contents will look like this: …

---

## [add multiple users](https://forum.ansible.com/t/add-multiple-users/26605)

<div class="topic-metadata">

**Author:** [@Joli\_Martinez](https://forum.ansible.com/u/Joli_Martinez)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 4:28pm UTC](https://forum.ansible.com/t/add-multiple-users/26605 "2018-01-30T16:28:47Z")

</div>

Hello, I am looking for a way to add multiple users to both Redhat and Debian/Ubuntu based systems with the following criteria With either no password and have them create one at first login, or all with the same pass…

---

## [when conditionals syntax](https://forum.ansible.com/t/when-conditionals-syntax/26604)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 4:27pm UTC](https://forum.ansible.com/t/when-conditionals-syntax/26604 "2018-01-30T16:27:37Z")

</div>

Is something wrong with the following? It seems to get executed no matter what. In addition, where can I find more information about this syntax? Is this considered jinja2 syntax? or something else? \` include\_tasks: i…

---

## [Question on hosts and group\_vars setup, and error when running playbook](https://forum.ansible.com/t/question-on-hosts-and-group-vars-setup-and-error-when-running-playbook/26602)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 4:02pm UTC](https://forum.ansible.com/t/question-on-hosts-and-group-vars-setup-and-error-when-running-playbook/26602 "2018-01-30T16:02:29Z")

</div>

I’m following the guidelines discussed in Laying out roles, inventories and playbooks, and I have segregated my development vs. productions files this way \` /path\_to\_playbooks/inventories/development/host\_vars/git /pa…

---

## [Access Denied Error while installing SQLServer using Ansible on remote Windows host.](https://forum.ansible.com/t/access-denied-error-while-installing-sqlserver-using-ansible-on-remote-windows-host/26599)

<div class="topic-metadata">

**Author:** [@suresh\_sargar](https://forum.ansible.com/u/suresh_sargar)\
**Replies:** 1\
**Last updated:** [January 30, 2018, 1:03pm UTC](https://forum.ansible.com/t/access-denied-error-while-installing-sqlserver-using-ansible-on-remote-windows-host/26599 "2018-01-30T13:03:00Z")

</div>

Hi All, i am trying to install SQLServer in silent mode on remote windows machine using ansible. in middle of execution its failed with below error. my target host is Azure Windows. 2018-01-30 12:27:47,300 \[StandardOut…

---

## [How Ansible Works?](https://forum.ansible.com/t/how-ansible-works/26598)

<div class="topic-metadata">

**Author:** [@gracy\_layla](https://forum.ansible.com/u/gracy_layla)\
**Replies:** 0\
**Last updated:** [January 30, 2018, 12:33pm UTC](https://forum.ansible.com/t/how-ansible-works/26598 "2018-01-30T12:33:46Z")

</div>

There are many similar automation tools available like Puppet, Capistrano, Chef, Salt, Space Walk etc, but Ansible categorize into two types of server: controlling machines and nodes. The controlling machine, where Ansi…

---

## [how to disable paramiko log in ansible.log](https://forum.ansible.com/t/how-to-disable-paramiko-log-in-ansible-log/26595)

<div class="topic-metadata">

**Author:** [@Leon\_Xie](https://forum.ansible.com/u/Leon_Xie)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 8:16am UTC](https://forum.ansible.com/t/how-to-disable-paramiko-log-in-ansible-log/26595 "2018-01-30T08:16:35Z")

</div>

Hi all, I am using ansible 2.4.2 as below:

---

## [Docker module for \`docker-compose run\`?](https://forum.ansible.com/t/docker-module-for-docker-compose-run/26591)

<div class="topic-metadata">

**Author:** [@Brandon\_Schlueter](https://forum.ansible.com/u/Brandon_Schlueter)\
**Replies:** 2\
**Last updated:** [January 29, 2018, 9:27pm UTC](https://forum.ansible.com/t/docker-module-for-docker-compose-run/26591 "2018-01-29T21:27:11Z")

</div>

In writing a playbook to bring up sentry according to its docs with docker-compose, I ended up with a task list including: name: run database migrations command: docker-compose run --rm web upgr…

---

## [How to make Ansible use certain Python libs?](https://forum.ansible.com/t/how-to-make-ansible-use-certain-python-libs/26592)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 2\
**Last updated:** [January 29, 2018, 9:12pm UTC](https://forum.ansible.com/t/how-to-make-ansible-use-certain-python-libs/26592 "2018-01-29T21:12:22Z")

</div>

I have \` $ which ansible /usr/bin/ansible user@hostname$ /usr/bin/ansible --version ansible 2.4.0.0 config file = /users/user/.ansible.cfg configured module search path = \[u’/users/user/.ansible/plugins/modules’, …

---

## [Ansible -  loop through multiple files when with\_items defined](https://forum.ansible.com/t/ansible-loop-through-multiple-files-when-with-items-defined/26590)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 4\
**Last updated:** [January 29, 2018, 6:33pm UTC](https://forum.ansible.com/t/ansible-loop-through-multiple-files-when-with-items-defined/26590 "2018-01-29T18:33:03Z")

</div>

This is similar to another question I posed a few days ago, but different enough I thought it deserved its own topic. I have a variable of ifcfg-list.stdout\_lines that contains a list of ifcfg-\* file names (exlcuding loo…

---

## [Installation of jar files fail on or complain about setting permissions on files and directories.](https://forum.ansible.com/t/installation-of-jar-files-fail-on-or-complain-about-setting-permissions-on-files-and-directories/26585)

<div class="topic-metadata">

**Author:** [@Arend\_Stam](https://forum.ansible.com/u/Arend_Stam)\
**Replies:** 2\
**Last updated:** [January 29, 2018, 6:28pm UTC](https://forum.ansible.com/t/installation-of-jar-files-fail-on-or-complain-about-setting-permissions-on-files-and-directories/26585 "2018-01-29T18:28:35Z")

</div>

Hi, I am trying, for the first time, to install some applications with Ansible and are stuck. If I try to install a jar file it either failes or it complains about permissions on files/dirs. When I try to install weblo…

---

## [redhat 7 files truncated / 0 length post ansible build and reboot](https://forum.ansible.com/t/redhat-7-files-truncated-0-length-post-ansible-build-and-reboot/26589)

<div class="topic-metadata">

**Author:** [@sterlij1](https://forum.ansible.com/u/sterlij1)\
**Replies:** 1\
**Last updated:** [January 29, 2018, 6:11pm UTC](https://forum.ansible.com/t/redhat-7-files-truncated-0-length-post-ansible-build-and-reboot/26589 "2018-01-29T18:11:45Z")

</div>

Hi, version: ansible 2.2.1.0 ansible build server OS - Centos 6.7 ansible client servers OS - Redhat 7.2. (esxi vm) Physical Host machine: ESXi 6.0 Hardware: Dell R730 with PERC H730 Mini Embedded controller. (Write…

---

## [Documentation Tool for Ansible Role](https://forum.ansible.com/t/documentation-tool-for-ansible-role/26580)

<div class="topic-metadata">

**Author:** [@Mohit\_Dhingra](https://forum.ansible.com/u/Mohit_Dhingra)\
**Replies:** 2\
**Last updated:** [January 29, 2018, 4:44pm UTC](https://forum.ansible.com/t/documentation-tool-for-ansible-role/26580 "2018-01-29T16:44:05Z")

</div>

Hi Ansible Users, Is there any documentation tool for available for Ansible role. I have created a role and i want to document it.

---

## [Replace module not replacing all matched words in a file](https://forum.ansible.com/t/replace-module-not-replacing-all-matched-words-in-a-file/26587)

<div class="topic-metadata">

**Author:** [@Dave](https://forum.ansible.com/u/Dave)\
**Replies:** 0\
**Last updated:** [January 29, 2018, 3:26pm UTC](https://forum.ansible.com/t/replace-module-not-replacing-all-matched-words-in-a-file/26587 "2018-01-29T15:26:18Z")

</div>

I’m running into an issue with the replace module that I’m not sure how to resolve. When I run the below Ansible code, it generates a config file, but misses the first regexp in my first blockinfile call. All the other l…

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

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