# Latest

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

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

**Page:** 728

---

## [sysctl module: check parameter value before changing it](https://forum.ansible.com/t/sysctl-module-check-parameter-value-before-changing-it/22504)

<div class="topic-metadata">

**Author:** [@Felix\_Paetow](https://forum.ansible.com/u/Felix_Paetow)\
**Replies:** 0\
**Last updated:** [September 7, 2016, 9:41am UTC](https://forum.ansible.com/t/sysctl-module-check-parameter-value-before-changing-it/22504 "2016-09-07T09:41:27Z")

</div>

Hi together, at the moment I want to change some parameter values in sysctl.conf via sysctl, but I want to change them only when they are under my minimum requirements. By now, I think the only way of doing so is to de…

---

## [Ansible windows modules](https://forum.ansible.com/t/ansible-windows-modules/20652)

<div class="topic-metadata">

**Author:** [@Quang\_Truong](https://forum.ansible.com/u/Quang_Truong)\
**Replies:** 14\
**Last updated:** [September 7, 2016, 9:01am UTC](https://forum.ansible.com/t/ansible-windows-modules/20652 "2016-09-07T09:01:23Z")

</div>

Hi all, I start learning Ansible to run some deployment tasks on Windows platform. I encounter some hiccups with Windows modules as below: Install the executable package (.NET 4.5.2 framework) I download the offlin…

---

## [shameless plug for new windows modules](https://forum.ansible.com/t/shameless-plug-for-new-windows-modules/22500)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 8:20pm UTC](https://forum.ansible.com/t/shameless-plug-for-new-windows-modules/22500 "2016-09-06T20:20:54Z")

</div>

Hello, I’ve created a couple of pull requests recently for two new windows modules, win\_msg and win\_say. win\_msg will pop up messages on windows hosts (usefull for warning users to log out during upgrades, for example) …

---

## [ERROR! Missing target hosts, yet --list-hosts shows targets](https://forum.ansible.com/t/error-missing-target-hosts-yet-list-hosts-shows-targets/22463)

<div class="topic-metadata">

**Author:** [@Marcus\_Bointon](https://forum.ansible.com/u/Marcus_Bointon)\
**Replies:** 1\
**Last updated:** [September 6, 2016, 7:07pm UTC](https://forum.ansible.com/t/error-missing-target-hosts-yet-list-hosts-shows-targets/22463 "2016-09-06T19:07:09Z")

</div>

I’m falling at the first fence tying to get ansible working. I’ve described my issue in detail in this post on ServerFault, but I wondered if anyone here could see what’s wrong. Short version: when I ask ansible to show…

---

## [Milestone and Label changes](https://forum.ansible.com/t/milestone-and-label-changes/22498)

<div class="topic-metadata">

**Author:** [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 5:24pm UTC](https://forum.ansible.com/t/milestone-and-label-changes/22498 "2016-09-06T17:24:46Z")

</div>

Hi, We have made some changes on how we use milestones and labeling in hopes of making things clearer: Milestones are now used only for where an issue or pull request(PR) will be fixed/merged into. We used to use the…

---

## [ansible stuck at setup module](https://forum.ansible.com/t/ansible-stuck-at-setup-module/22475)

<div class="topic-metadata">

**Author:** [@Sharuzzaman\_Ahmat\_Ra](https://forum.ansible.com/u/Sharuzzaman_Ahmat_Ra)\
**Replies:** 3\
**Last updated:** [September 6, 2016, 4:22pm UTC](https://forum.ansible.com/t/ansible-stuck-at-setup-module/22475 "2016-09-06T16:22:57Z")

</div>

Hi, Initially my playbook stuck at setup stage for a specific server. Upon running ansible -vvvv -m setup , the process also stuck. I have set the environment variable ANSIBLE\_KEEP\_REMOTE\_FILES=1 then trying again, a…

---

## [lineinfile able to change all occurrences of pattern?](https://forum.ansible.com/t/lineinfile-able-to-change-all-occurrences-of-pattern/22497)

<div class="topic-metadata">

**Author:** [@Ryan\_Groten](https://forum.ansible.com/u/Ryan_Groten)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 4:13pm UTC](https://forum.ansible.com/t/lineinfile-able-to-change-all-occurrences-of-pattern/22497 "2016-09-06T16:13:29Z")

</div>

If a regexp matches multiple lines in a file, lineinfile will only change the first occurrence. Is there a way to make change them all? I saw someone used another task to count the number of occurrences of a pattern and …

---

## [How clone git repository on windows using SSH keys and ssh-agent?](https://forum.ansible.com/t/how-clone-git-repository-on-windows-using-ssh-keys-and-ssh-agent/22496)

<div class="topic-metadata">

**Author:** [@user15](https://forum.ansible.com/u/user15)\
**Replies:** 3\
**Last updated:** [September 6, 2016, 3:30pm UTC](https://forum.ansible.com/t/how-clone-git-repository-on-windows-using-ssh-keys-and-ssh-agent/22496 "2016-09-06T15:30:05Z")

</div>

Ansible has not git\_win module (see here: https://groups.google.com/forum/#!searchin/ansible-project/git$20windows|sort:relevance/ansible-project/-uSBtqDPg0s/gPWlTlw3BwAJ ) I use msysgit to clone git repository under wi…

---

## [How to ignore all task errors in a playbook?](https://forum.ansible.com/t/how-to-ignore-all-task-errors-in-a-playbook/22481)

<div class="topic-metadata">

**Author:** [@Howard\_Guo](https://forum.ansible.com/u/Howard_Guo)\
**Replies:** 1\
**Last updated:** [September 6, 2016, 1:47pm UTC](https://forum.ansible.com/t/how-to-ignore-all-task-errors-in-a-playbook/22481 "2016-09-06T13:47:41Z")

</div>

Hello fellow Ansible users. I am going to write a long playbook where every single task can fail, yet the playbook must proceed. If I write down “ignore\_errors” in each task, the playbook will get too long and too verbo…

---

## [Unsupported config option error with docker\_service module](https://forum.ansible.com/t/unsupported-config-option-error-with-docker-service-module/22494)

<div class="topic-metadata">

**Author:** [@Valentin\_Chartier](https://forum.ansible.com/u/Valentin_Chartier)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 1:09pm UTC](https://forum.ansible.com/t/unsupported-config-option-error-with-docker-service-module/22494 "2016-09-06T13:09:08Z")

</div>

Unsupported config option error with docker\_service module Hello, I am having some trouble using the docker\_service module and I 'm looking for some suggestions on how to troubleshoot this. I have the docker\_container…

---

## ["Unsupported config option" error with the docker\_service module](https://forum.ansible.com/t/unsupported-config-option-error-with-the-docker-service-module/22493)

<div class="topic-metadata">

**Author:** [@Valentin\_Chartier](https://forum.ansible.com/u/Valentin_Chartier)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 12:38pm UTC](https://forum.ansible.com/t/unsupported-config-option-error-with-the-docker-service-module/22493 "2016-09-06T12:38:11Z")

</div>

Hello, I am having some trouble using the docker\_service module and I 'm looking for some suggestions on how to troubleshoot this. I have the docker\_container working properly. The issue is with the new docker\_service…

---

## [Parallel deployment](https://forum.ansible.com/t/parallel-deployment/22492)

<div class="topic-metadata">

**Author:** [@marcoskv](https://forum.ansible.com/u/marcoskv)\
**Replies:** 0\
**Last updated:** [September 6, 2016, 9:55am UTC](https://forum.ansible.com/t/parallel-deployment/22492 "2016-09-06T09:55:08Z")

</div>

Hello Ansible users! I am looking for suggestions for my particular use case, for which I could not find many other solution online. Let’s say my web application runs on 2 servers: 1 web-server + 1 db server. To deplo…

---

## [Unarchive Module Failing with Return Code 11](https://forum.ansible.com/t/unarchive-module-failing-with-return-code-11/22004)

<div class="topic-metadata">

**Author:** [@Stephen\_Barton](https://forum.ansible.com/u/Stephen_Barton)\
**Replies:** 1\
**Last updated:** [September 6, 2016, 4:04am UTC](https://forum.ansible.com/t/unarchive-module-failing-with-return-code-11/22004 "2016-09-06T04:04:32Z")

</div>

Hi, Version: 2.1.0.0 After a recent upgrade to the above version, I noticed that the unarchive module was failing with a return code of 11 (no matching files were found). So the line looked like this: name: Decompres…

---

## [NO SLEEP 'TIL (ANSIBLE CONTRIBUTOR SUMMIT) BROOKLYN!](https://forum.ansible.com/t/no-sleep-til-ansible-contributor-summit-brooklyn/22489)

<div class="topic-metadata">

**Author:** [@Greg\_DeKoenigsberg1](https://forum.ansible.com/u/Greg_DeKoenigsberg1)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 9:40pm UTC](https://forum.ansible.com/t/no-sleep-til-ansible-contributor-summit-brooklyn/22489 "2016-09-05T21:40:09Z")

</div>

Are you a contributor to Ansible, or interested in becoming a contributor to Ansible? Ansible's third Contributor Summit is coming soon, offering contributors the opportunity to participate in and shape the future of …

---

## [Create remotly server and still on it to other installations.](https://forum.ansible.com/t/create-remotly-server-and-still-on-it-to-other-installations/22491)

<div class="topic-metadata">

**Author:** [@weslley.azevedo](https://forum.ansible.com/u/weslley.azevedo)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 5:48pm UTC](https://forum.ansible.com/t/create-remotly-server-and-still-on-it-to-other-installations/22491 "2016-09-05T17:48:53Z")

</div>

Hello, I have been working to create a server on Linode via ansible, and i can do it by a playbook but when I try to use it with the best practices(Roles) I am not getting well. Can anyone help me ? Basically it creat…

---

## [Python not found](https://forum.ansible.com/t/python-not-found/22490)

<div class="topic-metadata">

**Author:** [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 4:27pm UTC](https://forum.ansible.com/t/python-not-found/22490 "2016-09-05T16:27:21Z")

</div>

Apart from installing python 2.7, you need to manually symlink: ln -s /usr/bin/python2.7 /usr/bin/python At least ansible 1.9, searchs for exactly ‘/usr/bin/python’ path. Javier Palacios

---

## [Fact Caching doesn't appear to save all facts](https://forum.ansible.com/t/fact-caching-doesnt-appear-to-save-all-facts/22488)

<div class="topic-metadata">

**Author:** [@Adam\_Copley](https://forum.ansible.com/u/Adam_Copley)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 2:15pm UTC](https://forum.ansible.com/t/fact-caching-doesnt-appear-to-save-all-facts/22488 "2016-09-05T14:15:11Z")

</div>

I wrote a custom fact which sits on a server and pulls out an array of supervisord programs: \` #!/usr/bin/env python2.7 import os import sys import json Config to read supervisord\_config = ‘/etc/supervisord.conf’; …

---

## [copy module wildcards](https://forum.ansible.com/t/copy-module-wildcards/22483)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 1\
**Last updated:** [September 5, 2016, 12:29pm UTC](https://forum.ansible.com/t/copy-module-wildcards/22483 "2016-09-05T12:29:50Z")

</div>

Example : name: copying only .conf files copy: src={{ item.0 }} dest={{ item.1 }} with\_together: \[ ‘/file1/foo/.conf’, /file1/foo/.txt’ \] \[ ‘/etc/boo/’, ‘/etc/goo’ \] I have a folder with a lot of conf files or other…

---

## [Ansible RDS module "boto required for this module" (but other AWS modules can find boto)](https://forum.ansible.com/t/ansible-rds-module-boto-required-for-this-module-but-other-aws-modules-can-find-boto/22487)

<div class="topic-metadata">

**Author:** [@Edd\_Grant](https://forum.ansible.com/u/Edd_Grant)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 10:40am UTC](https://forum.ansible.com/t/ansible-rds-module-boto-required-for-this-module-but-other-aws-modules-can-find-boto/22487 "2016-09-05T10:40:29Z")

</div>

Hi all, I’m using Ansible 2.1.1.0 in a virtualenv. I have been using the ‘ec2’ and ‘cloudformation’ modules in a Playbook with success. I am now trying to do some RDS stuff but I get the error “boto required for this mo…

---

## [How can i override variable value only for a host via extra-vars supplied through command line](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 10:02am UTC](https://forum.ansible.com/t/how-can-i-override-variable-value-only-for-a-host-via-extra-vars-supplied-through-command-line/22486 "2016-09-05T10:02:18Z")

</div>

Suppose i have this var defined in my inventory file: \[group10 host1 host2 host3 \[group1:vars\] source=/opt/config/ And my target hosts are a group of 3 or more servers. Now while invoking the playbook, i would lik…

---

## [Python not found](https://forum.ansible.com/t/python-not-found/22484)

<div class="topic-metadata">

**Author:** [@ZigDuDim](https://forum.ansible.com/u/ZigDuDim)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 9:07am UTC](https://forum.ansible.com/t/python-not-found/22484 "2016-09-05T09:07:16Z")

</div>

Hi everyone, I have 2 servers, both under the lastest version of ubuntu server 16.04.1 LTS. One of them is my Ansible remote controler, and the other is my future DHCP server. I followed the instruction on this web si…

---

## [listing JSON first level keys name](https://forum.ansible.com/t/listing-json-first-level-keys-name/22482)

<div class="topic-metadata">

**Author:** [@Alix\_Ak](https://forum.ansible.com/u/Alix_Ak)\
**Replies:** 0\
**Last updated:** [September 5, 2016, 8:34am UTC](https://forum.ansible.com/t/listing-json-first-level-keys-name/22482 "2016-09-05T08:34:34Z")

</div>

Hallo, Example : { “fw1”: { “ipv4”: { “rtr”: { “ip”: “1.2.3.4”, “net”: “1.2.3.4”, } } }, “fw2”: { “ipv4”: { “rtr”: { “ip”: “4.3.2.1”, “net”: “4.3.2.1”, } } } } I need to parse the first level keys of …

---

## [including a pre\_tasks](https://forum.ansible.com/t/including-a-pre-tasks/22443)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 2\
**Last updated:** [September 5, 2016, 8:18am UTC](https://forum.ansible.com/t/including-a-pre-tasks/22443 "2016-09-05T08:18:28Z")

</div>

Hello, I want to set variables with set\_fact in a pre\_tasks section. This is working well, but it is 50 lines long and I want to have these lines to be set in all my playbooks. Is there a way to include a pre\_tasks ? …

---

## [change SSH Port](https://forum.ansible.com/t/change-ssh-port/22479)

<div class="topic-metadata">

**Author:** [@Janis\_Heller](https://forum.ansible.com/u/Janis_Heller)\
**Replies:** 0\
**Last updated:** [September 4, 2016, 12:22pm UTC](https://forum.ansible.com/t/change-ssh-port/22479 "2016-09-04T12:22:22Z")

</div>

I would like to use ansible to change some things, when I setup a new server. For this I would need to change for example SSH port. Using ansible to change the SSH port from default isn’t hard:

---

## [hostvars behavior different version 1.9 -\>2.1](https://forum.ansible.com/t/hostvars-behavior-different-version-1-9-2-1/22477)

<div class="topic-metadata">

**Author:** [@George\_Hunt](https://forum.ansible.com/u/George_Hunt)\
**Replies:** 1\
**Last updated:** [September 4, 2016, 7:46am UTC](https://forum.ansible.com/t/hostvars-behavior-different-version-1-9-2-1/22477 "2016-09-04T07:46:18Z")

</div>

We have a template to create ifcfg files with the following partial snippet: (second line commented out for test with 2.1) HWADDR={{ ansible\_wlp2s0.macaddress }} {#HWADDR={{ hostvars\[inventory\_hostname\]\[‘ansible\_’ + xs…

---

## [Running a task only when tag defined](https://forum.ansible.com/t/running-a-task-only-when-tag-defined/22476)

<div class="topic-metadata">

**Author:** [@Jon\_Langemak](https://forum.ansible.com/u/Jon_Langemak)\
**Replies:** 1\
**Last updated:** [September 3, 2016, 11:02pm UTC](https://forum.ansible.com/t/running-a-task-only-when-tag-defined/22476 "2016-09-03T23:02:01Z")

</div>

I want to be able to run a task only when I pass a tag to the playbook. Namely, I want to have a tag that allows for decoming a user and one would normally never run that as part of normal playbook run. I found the cond…

---

## [Condititionals](https://forum.ansible.com/t/condititionals/22478)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 10:29pm UTC](https://forum.ansible.com/t/condititionals/22478 "2016-09-03T22:29:11Z")

</div>

Never use curly brackets in when, they are implied. And since latest is a string use qoutes, if not latest will be treated as a variable, so this should work: when: ImageTag == "latest"

---

## [arrays/loops/dict mixed. Confused. Did research](https://forum.ansible.com/t/arrays-loops-dict-mixed-confused-did-research/22474)

<div class="topic-metadata">

**Author:** [@AnsiNoob](https://forum.ansible.com/u/AnsiNoob)\
**Replies:** 0\
**Last updated:** [September 3, 2016, 5:01pm UTC](https://forum.ansible.com/t/arrays-loops-dict-mixed-confused-did-research/22474 "2016-09-03T17:01:54Z")

</div>

Hi I have means to generate a variables file which will look like:

---

## [synchronization among nodes in a group](https://forum.ansible.com/t/synchronization-among-nodes-in-a-group/14119)

<div class="topic-metadata">

**Author:** [@Xu\_Chen](https://forum.ansible.com/u/Xu_Chen)\
**Replies:** 7\
**Last updated:** [September 3, 2016, 4:31pm UTC](https://forum.ansible.com/t/synchronization-among-nodes-in-a-group/14119 "2016-09-03T16:31:05Z")

</div>

I am curious if there is any mechanism to perform synchronous tasks among a group of nodes (or nodes in a role, etc.) There is one example online to perform rolling updates to a group of web servers, one at a time. This…

---

## [How can I configure an “all or nothing” Ansible playbook?](https://forum.ansible.com/t/how-can-i-configure-an-all-or-nothing-ansible-playbook/22470)

<div class="topic-metadata">

**Author:** [@Amir\_Samary](https://forum.ansible.com/u/Amir_Samary)\
**Replies:** 1\
**Last updated:** [September 3, 2016, 4:08pm UTC](https://forum.ansible.com/t/how-can-i-configure-an-all-or-nothing-ansible-playbook/22470 "2016-09-03T16:08:07Z")

</div>

Hi everyone! I have a bunch of servers that need will be need frequent patching. I am planning on using Ansible to coordinate the patching process. The keep point here is that it must be an “all or nothing” patching. Ei…

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

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