# Latest

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

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

**Page:** 664

---

## [how to add custom jinja filters](https://forum.ansible.com/t/how-to-add-custom-jinja-filters/16897)

<div class="topic-metadata">

**Author:** [@Ilin](https://forum.ansible.com/u/Ilin)\
**Replies:** 4\
**Last updated:** [April 28, 2017, 4:10pm UTC](https://forum.ansible.com/t/how-to-add-custom-jinja-filters/16897 "2017-04-28T16:10:30Z")

</div>

Hi, Is there a good example how to extend ansible with custom jinja filters? I have added this, but my filter is not found http://docs.ansible.com/intro\_configuration.html#filter-plugins Adding the function to core.p…

---

## [lineinfile ansible module skips a line](https://forum.ansible.com/t/lineinfile-ansible-module-skips-a-line/24352)

<div class="topic-metadata">

**Author:** [@madhan0618](https://forum.ansible.com/u/madhan0618)\
**Replies:** 0\
**Last updated:** [April 28, 2017, 3:45pm UTC](https://forum.ansible.com/t/lineinfile-ansible-module-skips-a-line/24352 "2017-04-28T15:45:56Z")

</div>

I just posted my question on stackoverflow. Figured I will post here as well in hopes someone here can help. http://stackoverflow.com/questions/43683862/lineinfile-ansible-module-skips-a-line content: I have a need to…

---

## [Setup up SSH key in Ansible tower](https://forum.ansible.com/t/setup-up-ssh-key-in-ansible-tower/24351)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 1\
**Last updated:** [April 28, 2017, 1:41pm UTC](https://forum.ansible.com/t/setup-up-ssh-key-in-ansible-tower/24351 "2017-04-28T13:41:45Z")

</div>

Hi all, I am checking out Ansible tower and since i have a trial license, not sure if this is the right place to ask. Maybe we have a lot of tower users here. So the thing is i got into my admin account and trying to s…

---

## [Automating Apache Karaf](https://forum.ansible.com/t/automating-apache-karaf/13675)

<div class="topic-metadata">

**Author:** [@Richard\_Clayton](https://forum.ansible.com/u/Richard_Clayton)\
**Replies:** 5\
**Last updated:** [April 28, 2017, 1:22pm UTC](https://forum.ansible.com/t/automating-apache-karaf/13675 "2017-04-28T13:22:26Z")

</div>

Hello everyone. I’m working on a set of modules for controlling an Apache Karaf OSGi node; particularly fetching, installing, and removing OSGi bundles. Karaf has a built in SSH2 server, but it does not have a “BASH” im…

---

## [getting value from command line](https://forum.ansible.com/t/getting-value-from-command-line/24349)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 0\
**Last updated:** [April 28, 2017, 8:40am UTC](https://forum.ansible.com/t/getting-value-from-command-line/24349 "2017-04-28T08:40:40Z")

</div>

Hi is there anyway i can get value from command line arguments for eg., my commadn line is ansible-playbook -i inv/sit1 playbooks/sit1/test.yml in test.yml i want to capture the value from inv/sit1 as sit1,

---

## [sending files to sftp in remote windows from ansible](https://forum.ansible.com/t/sending-files-to-sftp-in-remote-windows-from-ansible/24348)

<div class="topic-metadata">

**Author:** [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Replies:** 0\
**Last updated:** [April 28, 2017, 8:38am UTC](https://forum.ansible.com/t/sending-files-to-sftp-in-remote-windows-from-ansible/24348 "2017-04-28T08:38:25Z")

</div>

Hii, I am trying to transfer my files from ansible linux to sftp server. How to add sftp host in my ansible host file. I had added scp\_if\_ssh=False in \[ssh-connection\] in ansible.cfg This sftp server not have any ssh …

---

## [getting error while trying to create my own role](https://forum.ansible.com/t/getting-error-while-trying-to-create-my-own-role/24302)

<div class="topic-metadata">

**Author:** [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Replies:** 3\
**Last updated:** [April 28, 2017, 8:23am UTC](https://forum.ansible.com/t/getting-error-while-trying-to-create-my-own-role/24302 "2017-04-28T08:23:20Z")

</div>

Hi, I am trying to create a new role from my playbook. I had created a file with the created role

---

## [ansible execute Authentication failure](https://forum.ansible.com/t/ansible-execute-authentication-failure/24347)

<div class="topic-metadata">

**Author:** [@Bo\_Qin](https://forum.ansible.com/u/Bo_Qin)\
**Replies:** 0\
**Last updated:** [April 28, 2017, 7:18am UTC](https://forum.ansible.com/t/ansible-execute-authentication-failure/24347 "2017-04-28T07:18:52Z")

</div>

hi all I use ansible 2.3.0.0 on centos7 with sshpass 1.06-1。I execute flowing step they return ureachable Authentication failure. “ansible test -i ./hosts.1 -m ping”. It return unreachable Authentication failure. “ans…

---

## [ssh error how can i do](https://forum.ansible.com/t/ssh-error-how-can-i-do/24346)

<div class="topic-metadata">

**Author:** [@user109](https://forum.ansible.com/u/user109)\
**Replies:** 0\
**Last updated:** [April 28, 2017, 6:43am UTC](https://forum.ansible.com/t/ssh-error-how-can-i-do/24346 "2017-04-28T06:43:57Z")

</div>

this is my playbook error log: "Timeout (12s) waiting for privilege escalation prompt:

---

## ['dict object' has no attribute 'stdout'](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344)

<div class="topic-metadata">

**Author:** [@Alicia\_Smith](https://forum.ansible.com/u/Alicia_Smith)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 10:59pm UTC](https://forum.ansible.com/t/dict-object-has-no-attribute-stdout/24344 "2017-04-27T22:59:56Z")

</div>

Hello, I was wondering if I could get some help on determining what is wrong here. This worked prior to 2.2.x Now when I run it I get the following error: fatal: \[redacted-host.com\]: FAILED! =\> {“failed”: true, “msg”:…

---

## [How to call an action plugin/module embedded in a role?](https://forum.ansible.com/t/how-to-call-an-action-plugin-module-embedded-in-a-role/24343)

<div class="topic-metadata">

**Author:** [@Don\_Jackson](https://forum.ansible.com/u/Don_Jackson)\
**Replies:** 3\
**Last updated:** [April 27, 2017, 8:45pm UTC](https://forum.ansible.com/t/how-to-call-an-action-plugin-module-embedded-in-a-role/24343 "2017-04-27T20:45:59Z")

</div>

I would like to embed some action plugins within a role, and then call those plugins from a top level playbook, after the role has been invoked/referenced. AFAICT, I have followed these instructions http://docs.ansible.…

---

## [Ansible integration openstack gives 400  error](https://forum.ansible.com/t/ansible-integration-openstack-gives-400-error/23931)

<div class="topic-metadata">

**Author:** [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 8:25pm UTC](https://forum.ansible.com/t/ansible-integration-openstack-gives-400-error/23931 "2017-04-27T20:25:09Z")

</div>

Hello Team, Ansible integrates with OpenStack instance creation gave 400 error. I didn’t understand what is happening here. I have installed openstack along with all python based dependencies. I am using CentOS VM. I ha…

---

## [How do you send the ENTER keypressed to ansible's expect using shell command.](https://forum.ansible.com/t/how-do-you-send-the-enter-keypressed-to-ansibles-expect-using-shell-command/24331)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 5\
**Last updated:** [April 27, 2017, 7:06pm UTC](https://forum.ansible.com/t/how-do-you-send-the-enter-keypressed-to-ansibles-expect-using-shell-command/24331 "2017-04-27T19:06:59Z")

</div>

Hi below is the command i want to run using shell to create the keys. shell: ssh dp794d@130.6.50.132 “cd /home/dp794d/.ssh;ssh-keygen” When i run this command on server, it askes to press the enter 2-3 times and need t…

---

## [How to store and pass the value of register variable in loop using ansible](https://forum.ansible.com/t/how-to-store-and-pass-the-value-of-register-variable-in-loop-using-ansible/24342)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 2\
**Last updated:** [April 27, 2017, 7:05pm UTC](https://forum.ansible.com/t/how-to-store-and-pass-the-value-of-register-variable-in-loop-using-ansible/24342 "2017-04-27T19:05:44Z")

</div>

I am using the loop in ansible by “with\_lines”, in which i am fetching the ip address of all the servers, on which i need to run the command. I need to fetch theid\_rsa.pub files details from the server and store them int…

---

## [git clone is not working in Cron jobs](https://forum.ansible.com/t/git-clone-is-not-working-in-cron-jobs/24338)

<div class="topic-metadata">

**Author:** [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Replies:** 4\
**Last updated:** [April 27, 2017, 6:23pm UTC](https://forum.ansible.com/t/git-clone-is-not-working-in-cron-jobs/24338 "2017-04-27T18:23:43Z")

</div>

Hello Team, I want to clone the git repository using ansible Cron module. I am trying to change the local repository for every 5 mintes using Cron module in ansible playbook. For that i wrote the code as below. The bel…

---

## [connection timeout during banner exchange error](https://forum.ansible.com/t/connection-timeout-during-banner-exchange-error/24341)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 5:25pm UTC](https://forum.ansible.com/t/connection-timeout-during-banner-exchange-error/24341 "2017-04-27T17:25:43Z")

</div>

down votefavorite | When i try to ansible-playbook i am getting the connection timeout during banner exchange, it also makes my vm to hang. i am also not able to ssh into the instance using my vm(centos7), where…

---

## [Create locale-gen using ansible](https://forum.ansible.com/t/create-locale-gen-using-ansible/24309)

<div class="topic-metadata">

**Author:** [@Krish\_Puvi](https://forum.ansible.com/u/Krish_Puvi)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 5:16pm UTC](https://forum.ansible.com/t/create-locale-gen-using-ansible/24309 "2017-04-27T17:16:13Z")

</div>

Hi, I’m trying to install local-gen and point it to en\_GB.UTF-8. Does anyone know how to do this please? - locale\_gen: name: de\_CH.UTF-8 state: present But I got the following error, efatal: \[127.0.0.1\]: F…

---

## [win\_iis\_website- Parameters](https://forum.ansible.com/t/win-iis-website-parameters/24337)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 5:05pm UTC](https://forum.ansible.com/t/win-iis-website-parameters/24337 "2017-04-27T17:05:08Z")

</div>

How do we know the available parameters in this module , the example given in the doc is as follows, what are the other parameters that we can set? - name: Acme IIS site win\_iis\_website: name: "Acme" state: st…

---

## [HG clone- pick only the changed file in a repo](https://forum.ansible.com/t/hg-clone-pick-only-the-changed-file-in-a-repo/24340)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 4:25pm UTC](https://forum.ansible.com/t/hg-clone-pick-only-the-changed-file-in-a-repo/24340 "2017-04-27T16:25:19Z")

</div>

is it possible to pick only the changed file in a repo. name: Clone Config hg: repo: http://url clone: yes dest: “/home/files/” delegate\_to: localhost register: cloned in the variable cloned, i can see the repo …

---

## [How to apply a file operations play book on a file which is varying in different servers - file names are like /etc/xinetd.d/oscssd\*](https://forum.ansible.com/t/how-to-apply-a-file-operations-play-book-on-a-file-which-is-varying-in-different-servers-file-names-are-like-etc-xinetd-d-oscssd/24307)

<div class="topic-metadata">

**Author:** [@vinodkumar.redhat](https://forum.ansible.com/u/vinodkumar.redhat)\
**Replies:** 1\
**Last updated:** [April 27, 2017, 4:12pm UTC](https://forum.ansible.com/t/how-to-apply-a-file-operations-play-book-on-a-file-which-is-varying-in-different-servers-file-names-are-like-etc-xinetd-d-oscssd/24307 "2017-04-27T16:12:47Z")

</div>

Hi All, I am very new to Ansible. I am stuck at a regular expression syntax for specifying a file name. I am actually updating a file under /etc/xinetd.d/ with some log parameters. I am updating the below two lines to …

---

## [can we use loop modules twice in ansible playbook.](https://forum.ansible.com/t/can-we-use-loop-modules-twice-in-ansible-playbook/24312)

<div class="topic-metadata">

**Author:** [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Replies:** 7\
**Last updated:** [April 27, 2017, 3:54pm UTC](https://forum.ansible.com/t/can-we-use-loop-modules-twice-in-ansible-playbook/24312 "2017-04-27T15:54:00Z")

</div>

Hello team, I want to Create AWS ec2 instance using one "with\_items: ec2" After that I want to insert the IP address of those instances into /etc/ansible/hosts file. For that I am using local\_action: lineinfile . …

---

## [xml file as template](https://forum.ansible.com/t/xml-file-as-template/24339)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 2:04pm UTC](https://forum.ansible.com/t/xml-file-as-template/24339 "2017-04-27T14:04:37Z")

</div>

Is there a way I can make xml file as template? i have the following file content ${LOG\_DIR}/my-service.log \>${LOG\_DIR}/my-service.%d{yyyy-MM-dd}.log The value in RED wil lchange depends upon env, when i addded …

---

## [new warning in Ansible 2.3](https://forum.ansible.com/t/new-warning-in-ansible-2-3/24330)

<div class="topic-metadata">

**Author:** [@PhilEv](https://forum.ansible.com/u/PhilEv)\
**Replies:** 4\
**Last updated:** [April 27, 2017, 8:07am UTC](https://forum.ansible.com/t/new-warning-in-ansible-2-3/24330 "2017-04-27T08:07:57Z")

</div>

The warning is: \[WARNING\]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Not sure how to avoid it in the below case. Any hint ? See https://github.com/ansible/ansible/issues/2…

---

## [Ansible playbook picks up old tasks when I invoke from shell script.](https://forum.ansible.com/t/ansible-playbook-picks-up-old-tasks-when-i-invoke-from-shell-script/24335)

<div class="topic-metadata">

**Author:** [@Vaishoo](https://forum.ansible.com/u/Vaishoo)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 2:05am UTC](https://forum.ansible.com/t/ansible-playbook-picks-up-old-tasks-when-i-invoke-from-shell-script/24335 "2017-04-27T02:05:13Z")

</div>

HI All, I am invoking ansible command in the shell script and it does pick up only old tasks and does not pick up the updated task. What could be wrong? If I copy the same command from the script and run it is working f…

---

## [adding an the ability to do --security to the yum core module](https://forum.ansible.com/t/adding-an-the-ability-to-do-security-to-the-yum-core-module/24334)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 0\
**Last updated:** [April 27, 2017, 1:21am UTC](https://forum.ansible.com/t/adding-an-the-ability-to-do-security-to-the-yum-core-module/24334 "2017-04-27T01:21:23Z")

</div>

Hi, I have been doing a bunch of ansible stuff for my company recently. A team member came to me and said she really wants to be able to a “yum update --security” from ansible. Using a command: is always possible but gr…

---

## [How to check the physical memory and free disk is greater than some value?](https://forum.ansible.com/t/how-to-check-the-physical-memory-and-free-disk-is-greater-than-some-value/24324)

<div class="topic-metadata">

**Author:** [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Replies:** 2\
**Last updated:** [April 26, 2017, 10:06pm UTC](https://forum.ansible.com/t/how-to-check-the-physical-memory-and-free-disk-is-greater-than-some-value/24324 "2017-04-26T22:06:57Z")

</div>

How to write an ansible task to check if the physical memory \>=128 MB and free disk is \>= 256 MB. i tried to get the output but i am not sure how to proceed further. # Check the physical disk memory 128 MB and free disk…

---

## [tower\_project not functioning correctly](https://forum.ansible.com/t/tower-project-not-functioning-correctly/24333)

<div class="topic-metadata">

**Author:** [@kulastone](https://forum.ansible.com/u/kulastone)\
**Replies:** 0\
**Last updated:** [April 26, 2017, 9:38pm UTC](https://forum.ansible.com/t/tower-project-not-functioning-correctly/24333 "2017-04-26T21:38:03Z")

</div>

I am trying to use the new Ansible Tower module - tower\_project to create new projects. the playbook runs but in the GUI, the SCM Branch and SCM credentials dont appear… Playbook - \` name: Create new Tower Project…

---

## [Ansible loop variable](https://forum.ansible.com/t/ansible-loop-variable/24317)

<div class="topic-metadata">

**Author:** [@Kiran\_Kumar1](https://forum.ansible.com/u/Kiran_Kumar1)\
**Replies:** 2\
**Last updated:** [April 26, 2017, 8:50pm UTC](https://forum.ansible.com/t/ansible-loop-variable/24317 "2017-04-26T20:50:07Z")

</div>

Hello friends, Am having a challenge finding a solution to below issue. I need to generate multiple network files based on single template and the value of template should change based on the item like IP/NM/GW . Exam…

---

## [New to ansible, trying to get ping to work but getting Paramiko/SSH errors](https://forum.ansible.com/t/new-to-ansible-trying-to-get-ping-to-work-but-getting-paramiko-ssh-errors/20118)

<div class="topic-metadata">

**Author:** [@Ravi\_B](https://forum.ansible.com/u/Ravi_B)\
**Replies:** 6\
**Last updated:** [April 26, 2017, 7:39pm UTC](https://forum.ansible.com/t/new-to-ansible-trying-to-get-ping-to-work-but-getting-paramiko-ssh-errors/20118 "2017-04-26T19:39:21Z")

</div>

Hi everyone, I’m new to ansible and trying to get the basing ping working on local host (127.0.0.1 in the $ANSIBLE\_HOSTS file) but keep running into problems.I thought the problem was python3 that was installed on the m…

---

## [New to ansible](https://forum.ansible.com/t/new-to-ansible/24329)

<div class="topic-metadata">

**Author:** [@Stephen\_Mazzei](https://forum.ansible.com/u/Stephen_Mazzei)\
**Replies:** 0\
**Last updated:** [April 26, 2017, 5:11pm UTC](https://forum.ansible.com/t/new-to-ansible/24329 "2017-04-26T17:11:26Z")

</div>

Good afternoon, My name is Stephen Mazzei and I work for ASRC Federal. We are currently under contract for Retail Corporation managing their high performance computing linux environment. We currently monitor around 700 …

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

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