# Archives

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

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

**Page:** 538

---

## [Ansible plugin for FreeIPA](https://forum.ansible.com/t/ansible-plugin-for-freeipa/14723)

<div class="topic-metadata">

**Author:** [@Johan\_Soderberg](https://forum.ansible.com/u/Johan_Soderberg)\
**Replies:** 17\
**Last updated:** [November 16, 2016, 10:24am UTC](https://forum.ansible.com/t/ansible-plugin-for-freeipa/14723 "2016-11-16T10:24:58Z")

</div>

Hi, I’m wondering if there has been any thought of making a FreeIPA plugin for Ansible where one would be able to administrate IPA with Ansible? Add and remove servers, groups, users etc etc. Would such a plugin make se…

---

## [Passing variables via nested include\_role doesn't work Ticket #17686. Closed but still not working.](https://forum.ansible.com/t/passing-variables-via-nested-include-role-doesnt-work-ticket-17686-closed-but-still-not-working/23038)

<div class="topic-metadata">

**Author:** [@Jorge\_Moraleda](https://forum.ansible.com/u/Jorge_Moraleda)\
**Replies:** 1\
**Last updated:** [November 16, 2016, 4:28am UTC](https://forum.ansible.com/t/passing-variables-via-nested-include-role-doesnt-work-ticket-17686-closed-but-still-not-working/23038 "2016-11-16T04:28:48Z")

</div>

I believe variable resolution in nested add\_role is still not working properly. For example if we change the example shown in the ticket above such that instead of the line b: “{{ a+1 }}” in ./roles/a/tasks/main.yml whe…

---

## [Find register directory seems to not registered](https://forum.ansible.com/t/find-register-directory-seems-to-not-registered/23013)

<div class="topic-metadata">

**Author:** [@Felix\_Gao](https://forum.ansible.com/u/Felix_Gao)\
**Replies:** 4\
**Last updated:** [November 16, 2016, 1:08am UTC](https://forum.ansible.com/t/find-register-directory-seems-to-not-registered/23013 "2016-11-16T01:08:39Z")

</div>

hosts: test remote\_user: ec2-user sudo: yes tasks: #using the shell command because we need \* expansion, otherwise if we know the exact directory we can use command module instead name: list log directory to fin…

---

## [replace module works different in version 2.1.2?](https://forum.ansible.com/t/replace-module-works-different-in-version-2-1-2/23023)

<div class="topic-metadata">

**Author:** [@mtovey](https://forum.ansible.com/u/mtovey)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 11:48pm UTC](https://forum.ansible.com/t/replace-module-works-different-in-version-2-1-2/23023 "2016-11-15T23:48:49Z")

</div>

I wrote the below to ensure certain options are set in a server’s /etc/fstab file for CIS compliance: name: Describe file system options set\_fact: filesystems: fs: /tmp options: nodev nosuid fs: /home …

---

## [Save remote property value to registered variable?](https://forum.ansible.com/t/save-remote-property-value-to-registered-variable/23037)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 10:01pm UTC](https://forum.ansible.com/t/save-remote-property-value-to-registered-variable/23037 "2016-11-15T22:01:36Z")

</div>

Hello - Is there a way to save a remote property value to a registered variable? Example: Remote server has file stuff.properties with below sample content: var1=Hello var2=World Can Ansible reach out to that file…

---

## [Working with async jobs that require an extra call to an api to check their state](https://forum.ansible.com/t/working-with-async-jobs-that-require-an-extra-call-to-an-api-to-check-their-state/23036)

<div class="topic-metadata">

**Author:** [@Nestor\_Manrique](https://forum.ansible.com/u/Nestor_Manrique)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 8:56pm UTC](https://forum.ansible.com/t/working-with-async-jobs-that-require-an-extra-call-to-an-api-to-check-their-state/23036 "2016-11-15T20:56:29Z")

</div>

Hello, I’ve been diving into ansible most recently because I wan’t to automate the management of several virtual environments deployed with OVM (oracle virtualization solution for x86 using xen). I found an ansible modu…

---

## [I am not being able to ssh into EC2 after creation in ansible](https://forum.ansible.com/t/i-am-not-being-able-to-ssh-into-ec2-after-creation-in-ansible/23035)

<div class="topic-metadata">

**Author:** [@suyesh\_bhandari](https://forum.ansible.com/u/suyesh_bhandari)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 7:27pm UTC](https://forum.ansible.com/t/i-am-not-being-able-to-ssh-into-ec2-after-creation-in-ansible/23035 "2016-11-15T19:27:49Z")

</div>

I am new to ansible and trying to create EC2 and i have several other tasks to perform. here is the code, \` name: Create a Dataloading environment hosts: localhost gather\_facts: False vars: key\_name: sims-admin i…

---

## [Setting a global variable in a task](https://forum.ansible.com/t/setting-a-global-variable-in-a-task/23032)

<div class="topic-metadata">

**Author:** [@Josh\_Smift1](https://forum.ansible.com/u/Josh_Smift1)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 7:19pm UTC](https://forum.ansible.com/t/setting-a-global-variable-in-a-task/23032 "2016-11-15T19:19:15Z")

</div>

Is there a way to set a variable in a task such that it has global scope? I want to do something like this: - hosts: all serial: 1 vars: foo\_first\_host: True tasks: - name: pause after th…

---

## [asa\_config not making changes](https://forum.ansible.com/t/asa-config-not-making-changes/23034)

<div class="topic-metadata">

**Author:** [@scarter](https://forum.ansible.com/u/scarter)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 7:15pm UTC](https://forum.ansible.com/t/asa-config-not-making-changes/23034 "2016-11-15T19:15:40Z")

</div>

I have the following plays: name: Associate VLAN with interface asa\_config: lines: vlan 610 parents: \[‘interface Port-channel1.610’\] context: system provider: “{{ cli }}” name: Add Context asa\_config: lin…

---

## [odd result after migrating postgresql database off-tower](https://forum.ansible.com/t/odd-result-after-migrating-postgresql-database-off-tower/23033)

<div class="topic-metadata">

**Author:** [@Stuart\_Cracraft](https://forum.ansible.com/u/Stuart_Cracraft)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 6:39pm UTC](https://forum.ansible.com/t/odd-result-after-migrating-postgresql-database-off-tower/23033 "2016-11-15T18:39:47Z")

</div>

Getting a bizarre result after migrating postgresql database off-tower using jsmartin’s script. The gui no longer logs in. Shows username where admin/password are entered but then it goes to “Working…” After a very lo…

---

## [lineinfile single quotes in regexp](https://forum.ansible.com/t/lineinfile-single-quotes-in-regexp/23030)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 2\
**Last updated:** [November 15, 2016, 3:51pm UTC](https://forum.ansible.com/t/lineinfile-single-quotes-in-regexp/23030 "2016-11-15T15:51:59Z")

</div>

hallo, i need to uncomment this statement : # 'Mirroring', in gitolite.rc . The problem is that ‘Mirroring’ contains quotes. { regexp: ‘^(\\s\*)#? \*('Mirroring,')’, line: “‘Mirroring’,” } when i run the task cont…

---

## [How to crypt the url\_username and url\_password in verbose mode](https://forum.ansible.com/t/how-to-crypt-the-url-username-and-url-password-in-verbose-mode/23029)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 3:31pm UTC](https://forum.ansible.com/t/how-to-crypt-the-url-username-and-url-password-in-verbose-mode/23029 "2016-11-15T15:31:55Z")

</div>

Hello, I did write the user/password to use for the get\_url command in a file encrypt with vault this way: urlname: user1 urlpass: pass1 in my playbook I use these variables: get\_url: url: “https:…” url\_username: …

---

## [disbale global replace in replace module](https://forum.ansible.com/t/disbale-global-replace-in-replace-module/23027)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 2:43pm UTC](https://forum.ansible.com/t/disbale-global-replace-in-replace-module/23027 "2016-11-15T14:43:42Z")

</div>

When using replace module the regexp will be replaced globally. How could i limit it to the first found entry ? I didn’t find a parameter that would help :confused:

---

## [Ansible Tower connection error with Node](https://forum.ansible.com/t/ansible-tower-connection-error-with-node/22997)

<div class="topic-metadata">

**Author:** [@Balu\_Kompalli](https://forum.ansible.com/u/Balu_Kompalli)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 1:50pm UTC](https://forum.ansible.com/t/ansible-tower-connection-error-with-node/22997 "2016-11-15T13:50:10Z")

</div>

Hello Team, I installed Ansible Tower in my VM and have a public IP. And also have disable and stop all the firewalls in the CentOS. I changed the apache port from default to 1010 as my necessity. After did the above s…

---

## [Ansible 2.2.1.0 release](https://forum.ansible.com/t/ansible-2-2-1-0-release/23026)

<div class="topic-metadata">

**Author:** [@Jonathan\_Nunez\_Aguin](https://forum.ansible.com/u/Jonathan_Nunez_Aguin)\
**Replies:** 0\
**Last updated:** [November 15, 2016, 11:54am UTC](https://forum.ansible.com/t/ansible-2-2-1-0-release/23026 "2016-11-15T11:54:31Z")

</div>

Hello, Is there a page where we can see when Ansible 2.2.1.0.is expected to be released in PIP? Thanks!

---

## [Help removing block in file please.](https://forum.ansible.com/t/help-removing-block-in-file-please/22629)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 1\
**Last updated:** [November 15, 2016, 11:38am UTC](https://forum.ansible.com/t/help-removing-block-in-file-please/22629 "2016-11-15T11:38:43Z")

</div>

I have a file with the following bock of text in it. I have text before and after the text block. logstash: hash: $fj;kdjjfajf;ajKFJ;dfj;dkfja;dfjFJ:LFJj;kj;lfkajs #password is: some\_pw I’m trying to remove the block u…

---

## [Relative paths behaviour changes 1.9 =\> 2.0 =\> 2.1.2](https://forum.ansible.com/t/relative-paths-behaviour-changes-1-9-2-0-2-1-2/23024)

<div class="topic-metadata">

**Author:** [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Replies:** 4\
**Last updated:** [November 15, 2016, 2:00am UTC](https://forum.ansible.com/t/relative-paths-behaviour-changes-1-9-2-0-2-1-2/23024 "2016-11-15T02:00:43Z")

</div>

Hi, It seems like Ansible 2.1.2 and newer has changed path handling. My observations are: In 1.9.x it bases relative paths on the path of the playbook itself. In 2.0.0 to 2.1.1 it bases relative paths on the path of …

---

## [Problems with Ansible 2.2](https://forum.ansible.com/t/problems-with-ansible-2-2/23022)

<div class="topic-metadata">

**Author:** [@Art\_Fewell](https://forum.ansible.com/u/Art_Fewell)\
**Replies:** 2\
**Last updated:** [November 14, 2016, 11:34pm UTC](https://forum.ansible.com/t/problems-with-ansible-2-2/23022 "2016-11-14T23:34:07Z")

</div>

Hi Everyone, Please forgive any mistakes as I am a noob to this community. I just tried running an existing ansible solution on a new Ansible 2.2.0.0-1 version, and it is not happy. I have a role setup to install apach…

---

## [Wrong username being used with kerberos authentication](https://forum.ansible.com/t/wrong-username-being-used-with-kerberos-authentication/23014)

<div class="topic-metadata">

**Author:** [@mmcgrellis](https://forum.ansible.com/u/mmcgrellis)\
**Replies:** 2\
**Last updated:** [November 14, 2016, 9:47pm UTC](https://forum.ansible.com/t/wrong-username-being-used-with-kerberos-authentication/23014 "2016-11-14T21:47:35Z")

</div>

We have a current setup that works using Ansible v2.0.0 in which we specify ansible\_ssh\_user in inventory exactly as follows. ansible\_ssh\_user: user@realm When running playbooks we use kinit to get a kerberos ticket us…

---

## [Automation tool](https://forum.ansible.com/t/automation-tool/22885)

<div class="topic-metadata">

**Author:** [@mohamed\_ayman](https://forum.ansible.com/u/mohamed_ayman)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 8:11pm UTC](https://forum.ansible.com/t/automation-tool/22885 "2016-11-14T20:11:57Z")

</div>

Dears, I want to make a tool which have a mix of Ansible and puppet.what should I learn to start with this project? Thanks in advance.

---

## [Using Ansible w/ Windows with strict security](https://forum.ansible.com/t/using-ansible-w-windows-with-strict-security/23006)

<div class="topic-metadata">

**Author:** [@bigbookcp](https://forum.ansible.com/u/bigbookcp)\
**Replies:** 3\
**Last updated:** [November 14, 2016, 4:50pm UTC](https://forum.ansible.com/t/using-ansible-w-windows-with-strict-security/23006 "2016-11-14T16:50:16Z")

</div>

Our environment is under some pretty strict security requirements and it’s causing lots of issues. First, we don’t have an active directory set up (all local accounts, I know it’s stupid but I’m just the idiot trying to …

---

## [become module executable shell problem](https://forum.ansible.com/t/become-module-executable-shell-problem/23019)

<div class="topic-metadata">

**Author:** [@Ricardo\_Esteves](https://forum.ansible.com/u/Ricardo_Esteves)\
**Replies:** 1\
**Last updated:** [November 14, 2016, 4:28pm UTC](https://forum.ansible.com/t/become-module-executable-shell-problem/23019 "2016-11-14T16:28:50Z")

</div>

Hi, I’m trying to use the become module to execute some commands as root, but i’m having some troubles because of the restrictions i have on remote server. It seems the become module executes sudo with a shell to execu…

---

## [Sorry, user xxxxx is not allowed to execute '/bin/sh -c echo BECOME-SUCCESS](https://forum.ansible.com/t/sorry-user-xxxxx-is-not-allowed-to-execute-bin-sh-c-echo-become-success/20820)

<div class="topic-metadata">

**Author:** [@Juan\_Roman](https://forum.ansible.com/u/Juan_Roman)\
**Replies:** 3\
**Last updated:** [November 14, 2016, 4:23pm UTC](https://forum.ansible.com/t/sorry-user-xxxxx-is-not-allowed-to-execute-bin-sh-c-echo-become-success/20820 "2016-11-14T16:23:07Z")

</div>

Sorry is this has been posted and answered by I find nothing while searching. I’m attempting to connect to my AIX server but can’t sudo. Here’s my sudo setup. xxxxx ALL=(ALL) /usr/bin/su -,/usr/bin/su - GATHERING FACT…

---

## [i Cant connect to windows server](https://forum.ansible.com/t/i-cant-connect-to-windows-server/23021)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 0\
**Last updated:** [November 14, 2016, 4:10pm UTC](https://forum.ansible.com/t/i-cant-connect-to-windows-server/23021 "2016-11-14T16:10:28Z")

</div>

your server is still trying to ssh into the server. host file should like this: localhost ansible\_connection=local \[win\] 10.XXX.XXX.XXX \[win:vars\] ansible\_connection=winrm ansible\_ssh\_port=5986 ansible\_ssh\_user…

---

## [VRO/Ansible/Windows Integration Information](https://forum.ansible.com/t/vro-ansible-windows-integration-information/23020)

<div class="topic-metadata">

**Author:** [@bwieberd](https://forum.ansible.com/u/bwieberd)\
**Replies:** 0\
**Last updated:** [November 14, 2016, 2:10pm UTC](https://forum.ansible.com/t/vro-ansible-windows-integration-information/23020 "2016-11-14T14:10:33Z")

</div>

I can find a lot of information on launching a playbook from VMWare’s vRealize/VRO to run on a Linux server but not on launching a playbook from VRO to run on a Windows server. With the connection between the Ansible Man…

---

## [ansible module to partition and format disk](https://forum.ansible.com/t/ansible-module-to-partition-and-format-disk/17310)

<div class="topic-metadata">

**Author:** [@hce](https://forum.ansible.com/u/hce)\
**Replies:** 4\
**Last updated:** [November 14, 2016, 1:28pm UTC](https://forum.ansible.com/t/ansible-module-to-partition-and-format-disk/17310 "2016-11-14T13:28:02Z")

</div>

Hi, What are the ansible modules to partition and format (mkfs.ext4) disks? Thank you. j

---

## [nxos\_portchannel not creating port channel](https://forum.ansible.com/t/nxos-portchannel-not-creating-port-channel/23017)

<div class="topic-metadata">

**Author:** [@scarter](https://forum.ansible.com/u/scarter)\
**Replies:** 0\
**Last updated:** [November 14, 2016, 12:55pm UTC](https://forum.ansible.com/t/nxos-portchannel-not-creating-port-channel/23017 "2016-11-14T12:55:21Z")

</div>

I have the following module invocation: name: Create port-channels on the ToR(s) nxos\_portchannel: host: “{{ item.switch }}” transport: cli group: “{{ item.interface | regex\_replace(‘\[1\]+(\[0-9\]+)$’, ‘\\1’) }}” memb…

---

## [Win-Command throwing syntax error](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011)

<div class="topic-metadata">

**Author:** [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Replies:** 2\
**Last updated:** [November 14, 2016, 1:20am UTC](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011 "2016-11-14T01:20:12Z")

</div>

I have a role to install different softwares on win host. i am getting this error: ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. The error appears to have …

---

## [.yml is failing with syntax error -- need advise](https://forum.ansible.com/t/yml-is-failing-with-syntax-error-need-advise/23015)

<div class="topic-metadata">

**Author:** [@Shaikh\_Abdul](https://forum.ansible.com/u/Shaikh_Abdul)\
**Replies:** 3\
**Last updated:** [November 13, 2016, 5:21pm UTC](https://forum.ansible.com/t/yml-is-failing-with-syntax-error-need-advise/23015 "2016-11-13T17:21:55Z")

</div>

Hi Experts, My export.yml is failing,please correct me \[oracle@node02 ~\]$ cat export.yml

---

## [Can Ipaddress of the target be fetched by ansible?](https://forum.ansible.com/t/can-ipaddress-of-the-target-be-fetched-by-ansible/23010)

<div class="topic-metadata">

**Author:** [@anirudh\_vasudevan](https://forum.ansible.com/u/anirudh_vasudevan)\
**Replies:** 4\
**Last updated:** [November 12, 2016, 11:15am UTC](https://forum.ansible.com/t/can-ipaddress-of-the-target-be-fetched-by-ansible/23010 "2016-11-12T11:15:53Z")

</div>

I know the conventional way of using Ansible is copying the ssh key on to the target and then adding the ip address to the inventory file. In my case I will not know the Ip address of the target that am testing on, how c…

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

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