# Ansible Project

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

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

**Page:** 177

---

## [Ansible Openstack](https://forum.ansible.com/t/ansible-openstack/30882)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar1](https://forum.ansible.com/u/Rahul_Kumar1)\
**Replies:** 0\
**Last updated:** [July 26, 2019, 3:34pm UTC](https://forum.ansible.com/t/ansible-openstack/30882 "2019-07-26T15:34:45Z")

</div>

Hi Gurus, I am trying to connect to Openstack with Ansible. My question is : Does Ansible provides any thing to connect to Openstack or we have to depend on Openstack Client only.? While installing Openstack client (pi…

---

## [sudo yaml](https://forum.ansible.com/t/sudo-yaml/30880)

<div class="topic-metadata">

**Author:** [@Noctis\_Geek](https://forum.ansible.com/u/Noctis_Geek)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 12:23pm UTC](https://forum.ansible.com/t/sudo-yaml/30880 "2019-07-26T12:23:56Z")

</div>

hi, I would like to create a yml file, that when I run it on my hosts it automatically sets sudo for a user Thanks

---

## [Error in expansible script](https://forum.ansible.com/t/error-in-expansible-script/30877)

<div class="topic-metadata">

**Author:** [@Shahzad\_Adil\_shaikh](https://forum.ansible.com/u/Shahzad_Adil_shaikh)\
**Replies:** 3\
**Last updated:** [July 26, 2019, 10:00am UTC](https://forum.ansible.com/t/error-in-expansible-script/30877 "2019-07-26T10:00:49Z")

</div>

Hello All, I am trying to execute the following yml script but some errors are occurring ,please some help me out this error . Script:-

---

## [Unable to install httpd service in ansible nodes - getting below error.](https://forum.ansible.com/t/unable-to-install-httpd-service-in-ansible-nodes-getting-below-error/30870)

<div class="topic-metadata">

**Author:** [@Ram\_Kumar](https://forum.ansible.com/u/Ram_Kumar)\
**Replies:** 4\
**Last updated:** [July 26, 2019, 7:54am UTC](https://forum.ansible.com/t/unable-to-install-httpd-service-in-ansible-nodes-getting-below-error/30870 "2019-07-26T07:54:09Z")

</div>

\[ansadmin@ip-192-168-0-126 playbooks\]$ ansible-playbook 08\_installhttpd.yml PLAY \[This script is about installing httpd in the web nodes\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Issue Defining hostvars in dynamic inventroy](https://forum.ansible.com/t/issue-defining-hostvars-in-dynamic-inventroy/30878)

<div class="topic-metadata">

**Author:** [@priyansh\_setia](https://forum.ansible.com/u/priyansh_setia)\
**Replies:** 0\
**Last updated:** [July 26, 2019, 7:06am UTC](https://forum.ansible.com/t/issue-defining-hostvars-in-dynamic-inventroy/30878 "2019-07-26T07:06:56Z")

</div>

I have developed a dynamic inventory which is listing the servers and all servers are grouped according to service been run on the a particular server. eg.if abc is the service name on the group of servers then it is gro…

---

## [Send playbook output to Logstash/Elasticsearch](https://forum.ansible.com/t/send-playbook-output-to-logstash-elasticsearch/18696)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 12\
**Last updated:** [July 26, 2019, 3:51am UTC](https://forum.ansible.com/t/send-playbook-output-to-logstash-elasticsearch/18696 "2019-07-26T03:51:04Z")

</div>

I’m starting to run playbooks automatically via a push server. Basically emulating what you can get with Puppet. As part of that, I’d like to send the output of my cronjob playbooks into my ELK stack. Which is hard to do…

---

## [How to install SQL server on Windows  server 2012, by using ansible playbook.](https://forum.ansible.com/t/how-to-install-sql-server-on-windows-server-2012-by-using-ansible-playbook/30831)

<div class="topic-metadata">

**Author:** [@Mohapatra\_Networking](https://forum.ansible.com/u/Mohapatra_Networking)\
**Replies:** 4\
**Last updated:** [July 25, 2019, 8:57pm UTC](https://forum.ansible.com/t/how-to-install-sql-server-on-windows-server-2012-by-using-ansible-playbook/30831 "2019-07-25T20:57:25Z")

</div>

Hi, I want to install sql server on windows server 2012. Sql server application is on my share repository, I want to install that sql application on customize way, like it have to install on “D” drive insteed of “C” dri…

---

## [New Ansible release 2.8.3](https://forum.ansible.com/t/new-ansible-release-2-8-3/30871)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [July 25, 2019, 8:50pm UTC](https://forum.ansible.com/t/new-ansible-release-2-8-3/30871 "2019-07-25T20:50:00Z")

</div>

Hi all- we're happy to announce that the general release of Ansible 2.8.3 is now available! How do you get it?

---

## [Ansible Security query](https://forum.ansible.com/t/ansible-security-query/30741)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 8\
**Last updated:** [July 25, 2019, 3:56pm UTC](https://forum.ansible.com/t/ansible-security-query/30741 "2019-07-25T15:56:25Z")

</div>

Hi, Is there any blog about Ansible security and compliance in ansible official site ? thanks

---

## [Problem change user with become or become\_user](https://forum.ansible.com/t/problem-change-user-with-become-or-become-user/30866)

<div class="topic-metadata">

**Author:** [@Karther](https://forum.ansible.com/u/Karther)\
**Replies:** 4\
**Last updated:** [July 25, 2019, 3:37pm UTC](https://forum.ansible.com/t/problem-change-user-with-become-or-become-user/30866 "2019-07-25T15:37:56Z")

</div>

Hey, Hello every body !! I work on Ansible and i have problem, when i want use become: yes or become\_user: root it’s not works. My task is : name: “Create directory” file: path: /var/apps state: directory become…

---

## [Tasks play-level vs. role-level](https://forum.ansible.com/t/tasks-play-level-vs-role-level/30707)

<div class="topic-metadata">

**Author:** [@kdt](https://forum.ansible.com/u/kdt)\
**Replies:** 7\
**Last updated:** [July 25, 2019, 3:22pm UTC](https://forum.ansible.com/t/tasks-play-level-vs-role-level/30707 "2019-07-25T15:22:10Z")

</div>

Task in some play imports or includes role (for the project here roles used in playbook are grabbed from external repositories, not in one repo along with playbook). Within role each item starting with “-name:” line is …

---

## [Unable to create the user (Weblogic) in the ansible nodes](https://forum.ansible.com/t/unable-to-create-the-user-weblogic-in-the-ansible-nodes/30868)

<div class="topic-metadata">

**Author:** [@Ram\_Kumar](https://forum.ansible.com/u/Ram_Kumar)\
**Replies:** 1\
**Last updated:** [July 25, 2019, 2:16pm UTC](https://forum.ansible.com/t/unable-to-create-the-user-weblogic-in-the-ansible-nodes/30868 "2019-07-25T14:16:20Z")

</div>

Here is the script : name: This play is about creating the user in all nodes and entering passwords hosts: all vars\_prompt: name: passwd prompt: Enter your password become : yes tasks: user: name=“weblogic” passw…

---

## [Ansible on distributed network](https://forum.ansible.com/t/ansible-on-distributed-network/30867)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [July 25, 2019, 2:01pm UTC](https://forum.ansible.com/t/ansible-on-distributed-network/30867 "2019-07-25T14:01:47Z")

</div>

That's a lot of generic terms there. Can you be (a lot) more specific? Dick

---

## [Changing remote\_tmp path to a rooted directory.](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864)

<div class="topic-metadata">

**Author:** [@AC\_Zabala](https://forum.ansible.com/u/AC_Zabala)\
**Replies:** 1\
**Last updated:** [July 25, 2019, 11:49am UTC](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864 "2019-07-25T11:49:18Z")

</div>

Hi! Kinda new to ansible. So I am currently running a playbook using user1 on a remote host host. I am planning to change the remote\_tmp directory to /app/ansible/tmp/ (owned by root) and I am having this error. {“chang…

---

## [Need Guidance](https://forum.ansible.com/t/need-guidance/30865)

<div class="topic-metadata">

**Author:** [@Bala\_murugan](https://forum.ansible.com/u/Bala_murugan)\
**Replies:** 0\
**Last updated:** [July 25, 2019, 11:12am UTC](https://forum.ansible.com/t/need-guidance/30865 "2019-07-25T11:12:24Z")

</div>

Hello folks, I have a setup like 3 groups (development,staging,production) and each having 12 servers each. At the end of build , i have 12 Artifacts of jars created. So i need to automate this flow by copying only firs…

---

## [Ansible creates a directory with full permissions even though umask is set to "022" on the managed node](https://forum.ansible.com/t/ansible-creates-a-directory-with-full-permissions-even-though-umask-is-set-to-022-on-the-managed-node/30860)

<div class="topic-metadata">

**Author:** [@Minal\_Deshmukh](https://forum.ansible.com/u/Minal_Deshmukh)\
**Replies:** 4\
**Last updated:** [July 25, 2019, 9:59am UTC](https://forum.ansible.com/t/ansible-creates-a-directory-with-full-permissions-even-though-umask-is-set-to-022-on-the-managed-node/30860 "2019-07-25T09:59:18Z")

</div>

Hello Ansible experts, I am struck with this issue. Could you please help me on this. If I create a directory using Ansible on the managed node it creates it with full permissions. umask on the managed node in not ho…

---

## [Directory to store ansible's playbooks](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853)

<div class="topic-metadata">

**Author:** [@user89](https://forum.ansible.com/u/user89)\
**Replies:** 2\
**Last updated:** [July 25, 2019, 6:14am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853 "2019-07-25T06:14:05Z")

</div>

Hello team! Read the documentation and didn’t find where playbooks ansible should be store only advice that they should be under source control. I see /etc/ansible/roles directory installed by default. Is it mean that …

---

## [Ansible's handling of string representation of complex objects](https://forum.ansible.com/t/ansibles-handling-of-string-representation-of-complex-objects/30863)

<div class="topic-metadata">

**Author:** [@Guy\_Knights1](https://forum.ansible.com/u/Guy_Knights1)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 10:07pm UTC](https://forum.ansible.com/t/ansibles-handling-of-string-representation-of-complex-objects/30863 "2019-07-24T22:07:19Z")

</div>

I’ve run into a weird behaviour regarding how Ansible handles converting strings to complex objects. I have the following string representation of a list of dicts that I’m returning from a Cloudformation stack output: \[…

---

## [CPAN Modules](https://forum.ansible.com/t/cpan-modules/30857)

<div class="topic-metadata">

**Author:** [@Keith\_Mills](https://forum.ansible.com/u/Keith_Mills)\
**Replies:** 4\
**Last updated:** [July 24, 2019, 2:35pm UTC](https://forum.ansible.com/t/cpan-modules/30857 "2019-07-24T14:35:18Z")

</div>

Ansible playbook error: Failed to find required executable cpanm in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Ansible Version: ansible 2.8.0 config file = /etc/ansible/ansible.cfg configured …

---

## [Task vars + Jinja template](https://forum.ansible.com/t/task-vars-jinja-template/30858)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 4\
**Last updated:** [July 24, 2019, 2:02pm UTC](https://forum.ansible.com/t/task-vars-jinja-template/30858 "2019-07-24T14:02:17Z")

</div>

Hi - I’m trying to evaluate the length of “foundQueuesCount” below in a Jinja template and use a conditional. Everything works perfectly except for when the length is zero. The task: - name: build routerconfig templ…

---

## [Problem removing a static route of a vhf in NXOS](https://forum.ansible.com/t/problem-removing-a-static-route-of-a-vhf-in-nxos/30859)

<div class="topic-metadata">

**Author:** [@Fernando\_Garcia\_Fern](https://forum.ansible.com/u/Fernando_Garcia_Fern)\
**Replies:** 0\
**Last updated:** [July 24, 2019, 1:25pm UTC](https://forum.ansible.com/t/problem-removing-a-static-route-of-a-vhf-in-nxos/30859 "2019-07-24T13:25:22Z")

</div>

Hi We’re using Ansible 2.8 and we’re trying to remove a static route defined in a vrf, but even following documentation directives (setting state to absent), it doesn’t work. From “show run” I see: vrf context MIDDLE …

---

## [Executing nested tags](https://forum.ansible.com/t/executing-nested-tags/30838)

<div class="topic-metadata">

**Author:** [@Adam](https://forum.ansible.com/u/Adam)\
**Replies:** 2\
**Last updated:** [July 24, 2019, 1:19pm UTC](https://forum.ansible.com/t/executing-nested-tags/30838 "2019-07-24T13:19:21Z")

</div>

Does anyone know of a way to execute only nested tags? For example, I use the same tag “cron” in multiple roles, but if I want to only execute the tasks tagged with “cron” under the “app1” role. Is there a syntax to make…

---

## [How to get past network device introductory menu](https://forum.ansible.com/t/how-to-get-past-network-device-introductory-menu/30848)

<div class="topic-metadata">

**Author:** [@Pete\_Siemsen](https://forum.ansible.com/u/Pete_Siemsen)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 1:17pm UTC](https://forum.ansible.com/t/how-to-get-past-network-device-introductory-menu/30848 "2019-07-24T13:17:16Z")

</div>

I’m using Ansible to talk to several Cisco devices. Most work as expected, but some of our terminal servers have an introductory menu. When I ssh to these devices, I don’t immediately get a prompt. Instead, I have to sel…

---

## [How to scale Ansible?](https://forum.ansible.com/t/how-to-scale-ansible/30855)

<div class="topic-metadata">

**Author:** [@EasyCook\_by\_Shailesh](https://forum.ansible.com/u/EasyCook_by_Shailesh)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 11:37am UTC](https://forum.ansible.com/t/how-to-scale-ansible/30855 "2019-07-24T11:37:29Z")

</div>

I have customer from small, medium and large environment, therefore I want to understand how to scale Ansible to deploy with right amount of resources.

---

## [How to use Ansible in distributed environment where I do not have direct access to end server on which Ansible has to run modules except Jump host?](https://forum.ansible.com/t/how-to-use-ansible-in-distributed-environment-where-i-do-not-have-direct-access-to-end-server-on-which-ansible-has-to-run-modules-except-jump-host/30854)

<div class="topic-metadata">

**Author:** [@EasyCook\_by\_Shailesh](https://forum.ansible.com/u/EasyCook_by_Shailesh)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 11:26am UTC](https://forum.ansible.com/t/how-to-use-ansible-in-distributed-environment-where-i-do-not-have-direct-access-to-end-server-on-which-ansible-has-to-run-modules-except-jump-host/30854 "2019-07-24T11:26:43Z")

</div>

I am trying to understand how Ansible would work in distributed environment where I do not have direct access to end server on which Ansible has to run modules except Jump host? I want to understand how this whole proce…

---

## [prompting for password](https://forum.ansible.com/t/prompting-for-password/30849)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 1\
**Last updated:** [July 23, 2019, 7:27pm UTC](https://forum.ansible.com/t/prompting-for-password/30849 "2019-07-23T19:27:07Z")

</div>

I am attempting to do a db update. I have tried using the following command name: run mysqlupgrade command: 'mysql\_upgrade -u root -p it hangs waiting for the password so I tried name: run mysqlupgrade expect…

---

## [Responding to password prompt](https://forum.ansible.com/t/responding-to-password-prompt/30850)

<div class="topic-metadata">

**Author:** [@Dave\_McPherson](https://forum.ansible.com/u/Dave_McPherson)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 7:18pm UTC](https://forum.ansible.com/t/responding-to-password-prompt/30850 "2019-07-23T19:18:44Z")

</div>

I am attempting to do a db update. I have tried using the following command name: run mysqlupgrade command: 'mysql\_upgrade -u root -p it hangs waiting for the password so I tried name: run mysqlupgrade expect…

---

## [Python3, Boto3, and botocore AWS modules and "Module \\"name\\" shadows the name of a reserved keyword" error](https://forum.ansible.com/t/python3-boto3-and-botocore-aws-modules-and-module-name-shadows-the-name-of-a-reserved-keyword-error/30847)

<div class="topic-metadata">

**Author:** [@A.J\_Reese](https://forum.ansible.com/u/A.J_Reese)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 2:31pm UTC](https://forum.ansible.com/t/python3-boto3-and-botocore-aws-modules-and-module-name-shadows-the-name-of-a-reserved-keyword-error/30847 "2019-07-23T14:31:10Z")

</div>

I’m trying to install the boto3 and botocore modules in an area where Ansible can find them. I’m on a macbook pro with ansible installed using python3/pip3, not homebrew. Here’s the output of my “ansible --version” comma…

---

## [formatting IOS commands](https://forum.ansible.com/t/formatting-ios-commands/30763)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 1\
**Last updated:** [July 23, 2019, 12:05pm UTC](https://forum.ansible.com/t/formatting-ios-commands/30763 "2019-07-23T12:05:35Z")

</div>

Hi Team, I am collecting IOS commands in my playbook and I need output human readable , I use( to\_nice\_yaml(indent=8, width=1337) currently. Any other suggestions to view the output as human readable. ios\_command: 30 …

---

## [Playbook error-- "Failed to lock apt for exclusive operation"](https://forum.ansible.com/t/playbook-error-failed-to-lock-apt-for-exclusive-operation/30845)

<div class="topic-metadata">

**Author:** [@Dhamodharan\_D](https://forum.ansible.com/u/Dhamodharan_D)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 11:24am UTC](https://forum.ansible.com/t/playbook-error-failed-to-lock-apt-for-exclusive-operation/30845 "2019-07-23T11:24:03Z")

</div>

Hi All, I have configured ansible properly with 1 master and 1 node machine. Have configured the /etc/ansible/hosts file with \[webservers\] 172.31.xx.xx ansible\_ssh\_user=ansibleuser ansible\_ssh\_pass=passwd. and have w…

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

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