# Ansible Project

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

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

**Page:** 244

---

## [What is search failing against getent\_group](https://forum.ansible.com/t/what-is-search-failing-against-getent-group/28214)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 3\
**Last updated:** [July 31, 2018, 4:29pm UTC](https://forum.ansible.com/t/what-is-search-failing-against-getent-group/28214 "2018-07-31T16:29:15Z")

</div>

I must have a syntax error or don’t understand something, but the following errors out. Am I doing this wrong? or is there something special about trying to search getent\_{group,passwd}? \` debug: var: getent\_group.db…

---

## [Ansible facts, parse values in dict](https://forum.ansible.com/t/ansible-facts-parse-values-in-dict/28192)

<div class="topic-metadata">

**Author:** [@D11](https://forum.ansible.com/u/D11)\
**Replies:** 3\
**Last updated:** [July 31, 2018, 4:13pm UTC](https://forum.ansible.com/t/ansible-facts-parse-values-in-dict/28192 "2018-07-31T16:13:57Z")

</div>

Hello, I am using setup module to generate some facts and register it to "ansible\_facts" variable, Now i want to parse "ansible\_facts" variable and remove some key value pairs, how can i parse it ? I tried different f…

---

## [can you do nested variables?](https://forum.ansible.com/t/can-you-do-nested-variables/28211)

<div class="topic-metadata">

**Author:** [@IP\_Freely](https://forum.ansible.com/u/IP_Freely)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 2:37pm UTC](https://forum.ansible.com/t/can-you-do-nested-variables/28211 "2018-07-31T14:37:52Z")

</div>

I have a playbook that I need to pull a variable based on environment, Im using the following hardcoded enviroment dev currently: login\_password: “{{ mysql\_replication\_password \[‘dev’\] }}” What I would like to do is …

---

## [How to get the "{{ playbook\_dir }}" variable directly in the python source code without passing as option](https://forum.ansible.com/t/how-to-get-the-playbook-dir-variable-directly-in-the-python-source-code-without-passing-as-option/28212)

<div class="topic-metadata">

**Author:** [@Sayed\_Anisul](https://forum.ansible.com/u/Sayed_Anisul)\
**Replies:** 0\
**Last updated:** [July 31, 2018, 2:08pm UTC](https://forum.ansible.com/t/how-to-get-the-playbook-dir-variable-directly-in-the-python-source-code-without-passing-as-option/28212 "2018-07-31T14:08:33Z")

</div>

Hello !##### Ansible has a variable “{{ playbook\_dir }}” that gives the playbook directory path. What I understand is, while running the Ansible play, the sources related to Ansible playbook are copied to a temporary loc…

---

## [Is it possible to natively convert a 3 letter country code to a 2 letter one (e.g. USA -\> US)](https://forum.ansible.com/t/is-it-possible-to-natively-convert-a-3-letter-country-code-to-a-2-letter-one-e-g-usa-us/28201)

<div class="topic-metadata">

**Author:** [@Sabrina\_Lautier](https://forum.ansible.com/u/Sabrina_Lautier)\
**Replies:** 9\
**Last updated:** [July 31, 2018, 12:32pm UTC](https://forum.ansible.com/t/is-it-possible-to-natively-convert-a-3-letter-country-code-to-a-2-letter-one-e-g-usa-us/28201 "2018-07-31T12:32:11Z")

</div>

Hi everyone, I’m migrating most of my code from python 2.7 to ansible and would like to know if there’s a way to natively convert a 3 letter country code to 2 letter one. It was really easy to do in python: \` from is…

---

## [Installing software by exe in windows](https://forum.ansible.com/t/installing-software-by-exe-in-windows/28207)

<div class="topic-metadata">

**Author:** [@tommy.lin](https://forum.ansible.com/u/tommy.lin)\
**Replies:** 1\
**Last updated:** [July 31, 2018, 10:16am UTC](https://forum.ansible.com/t/installing-software-by-exe-in-windows/28207 "2018-07-31T10:16:09Z")

</div>

Hi all, I want to use ansible on some new Windows PC to install software. I have used win\_package, many of them are working perfectly. For example: name: ScreenCapturerRecorder win\_package: path: D:\\app\\ScreenCapt…

---

## [Yaml - Use for loop](https://forum.ansible.com/t/yaml-use-for-loop/28205)

<div class="topic-metadata">

**Author:** [@Scofield](https://forum.ansible.com/u/Scofield)\
**Replies:** 5\
**Last updated:** [July 31, 2018, 9:15am UTC](https://forum.ansible.com/t/yaml-use-for-loop/28205 "2018-07-31T09:15:19Z")

</div>

Hi, Can able to find the script “test.sh” pid and kill it using below yml code. I need to kill multiple script like test1.sh test2.sh test3.sh in single yml code like using for loop to give input Can you suggest the i…

---

## [tabs are always shown as \\t](https://forum.ansible.com/t/tabs-are-always-shown-as-t/28191)

<div class="topic-metadata">

**Author:** [@starflighter.one](https://forum.ansible.com/u/starflighter.one)\
**Replies:** 3\
**Last updated:** [July 31, 2018, 9:08am UTC](https://forum.ansible.com/t/tabs-are-always-shown-as-t/28191 "2018-07-31T09:08:42Z")

</div>

Hi, I use ansible 2.6.0. Every time in debug or variables tabs are shown as \\t. For example: on commandline: echo -e "this is \\t a test" Result: this is a test Ansible: \` command: echo -e “this is \\t a test” \` …

---

## [map along with regex\_replac](https://forum.ansible.com/t/map-along-with-regex-replac/28206)

<div class="topic-metadata">

**Author:** [@kkumaar999](https://forum.ansible.com/u/kkumaar999)\
**Replies:** 0\
**Last updated:** [July 31, 2018, 7:30am UTC](https://forum.ansible.com/t/map-along-with-regex-replac/28206 "2018-07-31T07:30:36Z")

</div>

Hi all, May I know what does the below filter does in ansible? b: “{{ a | b.stdout\_lines | select(search, ^ + (someregex) + ’ )'|map(‘regex\_replace’, ‘.\*’) | list }}”

---

## [vmware-guest](https://forum.ansible.com/t/vmware-guest/28204)

<div class="topic-metadata">

**Author:** [@Alexsey\_S](https://forum.ansible.com/u/Alexsey_S)\
**Replies:** 1\
**Last updated:** [July 31, 2018, 5:46am UTC](https://forum.ansible.com/t/vmware-guest/28204 "2018-07-31T05:46:37Z")

</div>

Was wandering if any one has ideas why vmware-guest cretes all vms on a particular host even though it is set to b e created a cluster? its not a show stopper - just curious. i.e: name: Create a VM from a template vm…

---

## [dyanamic ec2 instance](https://forum.ansible.com/t/dyanamic-ec2-instance/28200)

<div class="topic-metadata">

**Author:** [@dmukeshsai](https://forum.ansible.com/u/dmukeshsai)\
**Replies:** 1\
**Last updated:** [July 31, 2018, 5:39am UTC](https://forum.ansible.com/t/dyanamic-ec2-instance/28200 "2018-07-31T05:39:02Z")

</div>

hi, i want to launch ec2 instance and automate the install jenkins on that instance through playbook. i tried but it throws the exception,when ever we launch instance dynamic ip is generated,how do we give host name,ta…

---

## [Ansible Avocent Switch](https://forum.ansible.com/t/ansible-avocent-switch/28203)

<div class="topic-metadata">

**Author:** [@Dhiraj\_Harshe](https://forum.ansible.com/u/Dhiraj_Harshe)\
**Replies:** 0\
**Last updated:** [July 31, 2018, 1:14am UTC](https://forum.ansible.com/t/ansible-avocent-switch/28203 "2018-07-31T01:14:07Z")

</div>

I am trying to work on a scenario in which I want to access Cisco and Juniper network devices and run my ansible network modules like get facts, get config, push config commands on them through ansible. The network devic…

---

## [Can't get playbooks to work for creating yum repositories](https://forum.ansible.com/t/cant-get-playbooks-to-work-for-creating-yum-repositories/28199)

<div class="topic-metadata">

**Author:** [@Paul\_Greene](https://forum.ansible.com/u/Paul_Greene)\
**Replies:** 4\
**Last updated:** [July 30, 2018, 7:23pm UTC](https://forum.ansible.com/t/cant-get-playbooks-to-work-for-creating-yum-repositories/28199 "2018-07-30T19:23:10Z")

</div>

I want to automate yum repository configuration using an ansible playbook. For the most part, these systems won’t have internet access and need to access an internal yum repository. I initially copied the content of a y…

---

## [ansible disable warnings per task/module (selinux)](https://forum.ansible.com/t/ansible-disable-warnings-per-task-module-selinux/28197)

<div class="topic-metadata">

**Author:** [@profhase85](https://forum.ansible.com/u/profhase85)\
**Replies:** 0\
**Last updated:** [July 30, 2018, 3:57pm UTC](https://forum.ansible.com/t/ansible-disable-warnings-per-task-module-selinux/28197 "2018-07-30T15:57:33Z")

</div>

Hi @all, I am using the selinux module. Regardless if there is any change or not, I always get a warning: \[WARNING\]: SELinux state change will take effect next reboot Is there a way to disable this error message? …

---

## [\[DOCKER\] Explicited sudo command permissions. NO ALL](https://forum.ansible.com/t/docker-explicited-sudo-command-permissions-no-all/28196)

<div class="topic-metadata">

**Author:** [@Guilherme\_Xavier](https://forum.ansible.com/u/Guilherme_Xavier)\
**Replies:** 3\
**Last updated:** [July 30, 2018, 2:55pm UTC](https://forum.ansible.com/t/docker-explicited-sudo-command-permissions-no-all/28196 "2018-07-30T14:55:02Z")

</div>

SUMMARY My company work with sudo for docker operations, but my user can't become root. I just can use commands as root in form "sudo docker ps", "sudo docker run ...", "sudo docker images" etc. I can't use "sudo su -…

---

## [getting ansible results with the job api.](https://forum.ansible.com/t/getting-ansible-results-with-the-job-api/28194)

<div class="topic-metadata">

**Author:** [@Serge\_Zajac](https://forum.ansible.com/u/Serge_Zajac)\
**Replies:** 0\
**Last updated:** [July 30, 2018, 2:17pm UTC](https://forum.ansible.com/t/getting-ansible-results-with-the-job-api/28194 "2018-07-30T14:17:09Z")

</div>

hi My question is simple : how a playbook can have results that can be directly available in the api (jobs) Something like a coupe myResult1, myResult1Value myResult2, myResult2Value Example : you have to reserve an I…

---

## [issues with mysql\_user module, GRANT ALL not working](https://forum.ansible.com/t/issues-with-mysql-user-module-grant-all-not-working/28188)

<div class="topic-metadata">

**Author:** [@Alex\_Nutts](https://forum.ansible.com/u/Alex_Nutts)\
**Replies:** 0\
**Last updated:** [July 30, 2018, 8:55am UTC](https://forum.ansible.com/t/issues-with-mysql-user-module-grant-all-not-working/28188 "2018-07-30T08:55:14Z")

</div>

Dear community, I’d like to apply this grant: GRANT ALL PRIVILEGES ON opennebula.\* TO ‘oneadmin’ IDENTIFIED BY ‘password’ so I’m using the below listed role: # roles/mariadb/tasks/users.yml --- - name: Remove anonymou…

---

## [Can Ansible be used to Provision LDAP Accounts?](https://forum.ansible.com/t/can-ansible-be-used-to-provision-ldap-accounts/21283)

<div class="topic-metadata">

**Author:** [@tim6](https://forum.ansible.com/u/tim6)\
**Replies:** 3\
**Last updated:** [July 29, 2018, 4:02pm UTC](https://forum.ansible.com/t/can-ansible-be-used-to-provision-ldap-accounts/21283 "2018-07-29T16:02:10Z")

</div>

After exhaustive google searches I am under the impression that Ansible does not have an LDAP Module, and that LDAP is only used as input to formulate rights/permissions associated with executing whatever Ansible is conf…

---

## [Vault Ids and Multiple Vault Passwords](https://forum.ansible.com/t/vault-ids-and-multiple-vault-passwords/28166)

<div class="topic-metadata">

**Author:** [@supermario18b](https://forum.ansible.com/u/supermario18b)\
**Replies:** 1\
**Last updated:** [July 29, 2018, 9:59am UTC](https://forum.ansible.com/t/vault-ids-and-multiple-vault-passwords/28166 "2018-07-29T09:59:23Z")

</div>

Hi everyone, I’m tryng to understand how multiple vault passwords work. I found this example about providing vault-id passwords: \` ansible-playbook --vault-id dev@dev-password --vault-id prod@prompt site.yml \` In …

---

## [module for AWS DAX](https://forum.ansible.com/t/module-for-aws-dax/28186)

<div class="topic-metadata">

**Author:** [@sagiema](https://forum.ansible.com/u/sagiema)\
**Replies:** 0\
**Last updated:** [July 29, 2018, 7:51am UTC](https://forum.ansible.com/t/module-for-aws-dax/28186 "2018-07-29T07:51:04Z")

</div>

Hi, is there an existing module to create and manage AWS DynamoDB Accelerator? Thanks.

---

## [Help with securing password](https://forum.ansible.com/t/help-with-securing-password/28178)

<div class="topic-metadata">

**Author:** [@Phil\_Brady](https://forum.ansible.com/u/Phil_Brady)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 9:00pm UTC](https://forum.ansible.com/t/help-with-securing-password/28178 "2018-07-28T21:00:04Z")

</div>

Hi, Can someone help me with the below please? I have a role with the following task in roles/passwd/tasks/main.yml name: Change user1 password user: name=user1 update\_password=always password={{ user1\_password }} …

---

## [ansible ssh error to ec2-instance](https://forum.ansible.com/t/ansible-ssh-error-to-ec2-instance/28185)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 3\
**Last updated:** [July 28, 2018, 3:31pm UTC](https://forum.ansible.com/t/ansible-ssh-error-to-ec2-instance/28185 "2018-07-28T15:31:57Z")

</div>

I am able to ssh to an ec2 instance using putty and .ppk file. when trying to do the same from build server, i am getting ssh error things that i have tried inventory file: \[aws-hosts\] 10.20.30.40 \[ changed ip for …

---

## [backup file name and path - Copy module](https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175)

<div class="topic-metadata">

**Author:** [@Balaji1](https://forum.ansible.com/u/Balaji1)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 11:28am UTC](https://forum.ansible.com/t/backup-file-name-and-path-copy-module/28175 "2018-07-28T11:28:29Z")

</div>

Hello All, Sorry to ask a silly question. I am using copy module. "backup: true: Question- Where is the backup file stored? default path? what is the name of the file? Any way to change the default backup path Tha…

---

## [gather minimal facts within playbook](https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 10:03am UTC](https://forum.ansible.com/t/gather-minimal-facts-within-playbook/28182 "2018-07-28T10:03:28Z")

</div>

I can’t see a way to do this other than via adhoc on cli… can I gather minimal facts within a playbook?

---

## [Ansible 2.6.2 is available](https://forum.ansible.com/t/ansible-2-6-2-is-available/28184)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [July 28, 2018, 8:03am UTC](https://forum.ansible.com/t/ansible-2-6-2-is-available/28184 "2018-07-28T08:03:47Z")

</div>

Hi all – we’re happy to announce that the general release of Ansible 2.6.2 is now available! How do you get it?

---

## [Systemd checking if service is enabled at boot time](https://forum.ansible.com/t/systemd-checking-if-service-is-enabled-at-boot-time/28181)

<div class="topic-metadata">

**Author:** [@email](https://forum.ansible.com/u/email)\
**Replies:** 4\
**Last updated:** [July 27, 2018, 9:01pm UTC](https://forum.ansible.com/t/systemd-checking-if-service-is-enabled-at-boot-time/28181 "2018-07-27T21:01:54Z")

</div>

I am attempting to only check if a service is set to start at boot time. My current code: \` name: Check zabbix-agent is going to start on boot systemd: name: “zabbix-agent” enabled: yes ignore\_errors: yes regist…

---

## [SET ACL permissions on Hadoop folder using Ansible script](https://forum.ansible.com/t/set-acl-permissions-on-hadoop-folder-using-ansible-script/28180)

<div class="topic-metadata">

**Author:** [@bibhu](https://forum.ansible.com/u/bibhu)\
**Replies:** 0\
**Last updated:** [July 27, 2018, 8:01pm UTC](https://forum.ansible.com/t/set-acl-permissions-on-hadoop-folder-using-ansible-script/28180 "2018-07-27T20:01:34Z")

</div>

Hi , As my requirement is i need to set the ACL permissions on my folder which are there in my hadoop system, application wise folder name would be change. REQUIREMENT IS: We need to setup the ACL permissions for Had…

---

## [network unreachable error 51 in MacOS with connection type cli](https://forum.ansible.com/t/network-unreachable-error-51-in-macos-with-connection-type-cli/28152)

<div class="topic-metadata">

**Author:** [@Eliezer\_Rodriguez](https://forum.ansible.com/u/Eliezer_Rodriguez)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 3:13pm UTC](https://forum.ansible.com/t/network-unreachable-error-51-in-macos-with-connection-type-cli/28152 "2018-07-27T15:13:37Z")

</div>

Hi, This is my first post, I’m trying to keep it as short as possible. Any guidance would be appreciated. I’m executing this simple playbook to issue a random command on a Nexus OS switch:

---

## [Question about vcenter\_folder new module](https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164)

<div class="topic-metadata">

**Author:** [@Julien](https://forum.ansible.com/u/Julien)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 1:38pm UTC](https://forum.ansible.com/t/question-about-vcenter-folder-new-module/28164 "2018-07-27T13:38:35Z")

</div>

Hello, I’ve just upgraded to Ansible 2.6 to use the vcenter\_folder module and I’ve got a question on how is it working: Should we use a Windows or Linux host an then connect on the vsphere? Or directly put the vcenter h…

---

## [need playbook for disabling all redhat repo and only to have enabled my local repo in yum  and it should done according to OS version.](https://forum.ansible.com/t/need-playbook-for-disabling-all-redhat-repo-and-only-to-have-enabled-my-local-repo-in-yum-and-it-should-done-according-to-os-version/28142)

<div class="topic-metadata">

**Author:** [@Deepan\_M](https://forum.ansible.com/u/Deepan_M)\
**Replies:** 1\
**Last updated:** [July 27, 2018, 11:32am UTC](https://forum.ansible.com/t/need-playbook-for-disabling-all-redhat-repo-and-only-to-have-enabled-my-local-repo-in-yum-and-it-should-done-according-to-os-version/28142 "2018-07-27T11:32:08Z")

</div>

Hi, In my environment i’m creating setup for patching, before patching i’m planning to disable redhat repo, since we have own local repo, so below few lines are copied from other source, but not working properly. please…

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

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