# Archives

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

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

**Page:** 507

---

## [How to get the --limit command line option](https://forum.ansible.com/t/how-to-get-the-limit-command-line-option/23909)

<div class="topic-metadata">

**Author:** [@Marco\_Buttu](https://forum.ansible.com/u/Marco_Buttu)\
**Replies:** 1\
**Last updated:** [March 12, 2017, 11:22pm UTC](https://forum.ansible.com/t/how-to-get-the-limit-command-line-option/23909 "2017-03-12T23:22:35Z")

</div>

Hi all, I would like to read the --limit command line option. For instance, let’s have the following: $ ansible-playbook site.yml --limit foo I would like the tasks to read {{ limit }}. Is it possibile or do I have to …

---

## [Put anisble up and running example in a role with add\_host](https://forum.ansible.com/t/put-anisble-up-and-running-example-in-a-role-with-add-host/23944)

<div class="topic-metadata">

**Author:** [@Zhu\_Wayne](https://forum.ansible.com/u/Zhu_Wayne)\
**Replies:** 1\
**Last updated:** [March 12, 2017, 9:32pm UTC](https://forum.ansible.com/t/put-anisble-up-and-running-example-in-a-role-with-add-host/23944 "2017-03-12T21:32:29Z")

</div>

Is it possible to pack the following into a single role? My understanding that a role ONLY can be run on a defined set of hosts. - name: Provision a vagrant machine hosts: localhost vars: box: tru…

---

## [Need help with a jinja2 filter](https://forum.ansible.com/t/need-help-with-a-jinja2-filter/23946)

<div class="topic-metadata">

**Author:** [@Kenton\_Brede](https://forum.ansible.com/u/Kenton_Brede)\
**Replies:** 1\
**Last updated:** [March 12, 2017, 8:02pm UTC](https://forum.ansible.com/t/need-help-with-a-jinja2-filter/23946 "2017-03-12T20:02:57Z")

</div>

I’m trying to get the id of the security group that doesn’t have ‘Default’ in the name. In other words grab “sg-0a2fea74.” This is what “sg\_facts | json\_query('instances\[\].groups\[\])” spits out: “groups”: \[ { “id”: “s…

---

## [Ansible Tower 3.1.1 fails to pull down roles using galaxy on project updates](https://forum.ansible.com/t/ansible-tower-3-1-1-fails-to-pull-down-roles-using-galaxy-on-project-updates/23940)

<div class="topic-metadata">

**Author:** [@Jonathan\_Sabo](https://forum.ansible.com/u/Jonathan_Sabo)\
**Replies:** 1\
**Last updated:** [March 12, 2017, 4:33pm UTC](https://forum.ansible.com/t/ansible-tower-3-1-1-fails-to-pull-down-roles-using-galaxy-on-project-updates/23940 "2017-03-12T16:33:05Z")

</div>

Hello, In Ansible Tower 3.1.1 assuming you have a project\_dir/roles/requirements.yml Tower is supposed to use Galaxy to download the roles for you. The playbook installed by Tower 3.1.1 has the following task: name: f…

---

## [Azure: no action detected in task](https://forum.ansible.com/t/azure-no-action-detected-in-task/23934)

<div class="topic-metadata">

**Author:** [@Frank\_Montyne](https://forum.ansible.com/u/Frank_Montyne)\
**Replies:** 1\
**Last updated:** [March 12, 2017, 7:38am UTC](https://forum.ansible.com/t/azure-no-action-detected-in-task/23934 "2017-03-12T07:38:50Z")

</div>

I installed the Azure Python SDK 2.0.0rc5 using pip and ansible 2.0.0.2 using apt on a Ubuntu 16.04 machine. I also created a Azure AD service principle and added the information to ~/.azure/credentials. When I try to ru…

---

## [Ansible Jump thru Bastion host](https://forum.ansible.com/t/ansible-jump-thru-bastion-host/23935)

<div class="topic-metadata">

**Author:** [@rajeev](https://forum.ansible.com/u/rajeev)\
**Replies:** 2\
**Last updated:** [March 12, 2017, 6:03am UTC](https://forum.ansible.com/t/ansible-jump-thru-bastion-host/23935 "2017-03-12T06:03:54Z")

</div>

Hello All, In my environment, Ansible server (A) does not have trust access to its clients. I have another host (B), which allows trust access(using keys) to all hosts in the environment. Host B has root trusted for e…

---

## [meta: refresh\_inventory to support conditions](https://forum.ansible.com/t/meta-refresh-inventory-to-support-conditions/23892)

<div class="topic-metadata">

**Author:** [@George\_Yanev](https://forum.ansible.com/u/George_Yanev)\
**Replies:** 2\
**Last updated:** [March 12, 2017, 12:10am UTC](https://forum.ansible.com/t/meta-refresh-inventory-to-support-conditions/23892 "2017-03-12T00:10:35Z")

</div>

Hi All, We want to remove some duplicate code which is available in our custom Inventory as well as in Ansible Playbook. meta: refresh\_inventory is what we need but it lacks conditional support. Is there a specific rea…

---

## [Need help](https://forum.ansible.com/t/need-help/23938)

<div class="topic-metadata">

**Author:** [@shekharkethireddy](https://forum.ansible.com/u/shekharkethireddy)\
**Replies:** 0\
**Last updated:** [March 11, 2017, 5:12pm UTC](https://forum.ansible.com/t/need-help/23938 "2017-03-11T17:12:19Z")

</div>

please help on this repo https://github.com/rajashekhar1121/vagrant-ansible/tree/master

---

## [For loop verification from remote host](https://forum.ansible.com/t/for-loop-verification-from-remote-host/23937)

<div class="topic-metadata">

**Author:** [@Madhu](https://forum.ansible.com/u/Madhu)\
**Replies:** 0\
**Last updated:** [March 11, 2017, 4:21pm UTC](https://forum.ansible.com/t/for-loop-verification-from-remote-host/23937 "2017-03-11T16:21:33Z")

</div>

Hi, I want to verify the routes getting from remote host to a local variable. Local variable have the routes in the list. Can you guys please tell me how to do it with an example? Below is my playbook with the local var…

---

## [Valid play parameters/attributes list](https://forum.ansible.com/t/valid-play-parameters-attributes-list/23927)

<div class="topic-metadata">

**Author:** [@Keith\_Gunderson](https://forum.ansible.com/u/Keith_Gunderson)\
**Replies:** 4\
**Last updated:** [March 11, 2017, 2:28am UTC](https://forum.ansible.com/t/valid-play-parameters-attributes-list/23927 "2017-03-11T02:28:40Z")

</div>

Please direct me to a listing of valid play attributes. Also, what is the preferred term for these, attributes or parameters? I’ve wondered this before and thought it must be an oversight in the docs. My current issue i…

---

## [Cisco Router Configuration - match when description is \<word\> Conditional Check Failed](https://forum.ansible.com/t/cisco-router-configuration-match-when-description-is-word-conditional-check-failed/23926)

<div class="topic-metadata">

**Author:** [@Roger\_Perkin](https://forum.ansible.com/u/Roger_Perkin)\
**Replies:** 3\
**Last updated:** [March 10, 2017, 10:19pm UTC](https://forum.ansible.com/t/cisco-router-configuration-match-when-description-is-word-conditional-check-failed/23926 "2017-03-10T22:19:11Z")

</div>

I have written this play to run over a Cisco Router- then create a list of interfaces and the idea is to only apply a config to an interface based on the value or not of the descrption. The play works fine up until the …

---

## [dynamically referencing groups in playbooks and templates](https://forum.ansible.com/t/dynamically-referencing-groups-in-playbooks-and-templates/23932)

<div class="topic-metadata">

**Author:** [@jerry1](https://forum.ansible.com/u/jerry1)\
**Replies:** 0\
**Last updated:** [March 10, 2017, 6:44pm UTC](https://forum.ansible.com/t/dynamically-referencing-groups-in-playbooks-and-templates/23932 "2017-03-10T18:44:14Z")

</div>

Hi, Looks like I am jumping into the deep end on making Ansible work for us. We have a large set of legacy apps that require more than the simple instances. I am trying to use Ansible in a single point of truth model t…

---

## [Cannot get when to work in playbook](https://forum.ansible.com/t/cannot-get-when-to-work-in-playbook/22807)

<div class="topic-metadata">

**Author:** [@Kane\_Kennedy](https://forum.ansible.com/u/Kane_Kennedy)\
**Replies:** 4\
**Last updated:** [March 10, 2017, 6:20pm UTC](https://forum.ansible.com/t/cannot-get-when-to-work-in-playbook/22807 "2017-03-10T18:20:51Z")

</div>

Hi can anyone help, this is doing my nut in. I cannot get the correct repo to install dependent on the OS family and release, I have 7 repos and need to identify RHEL, SL and Oracle v 5, 6 (x86 or x64) and 7. All our s…

---

## [Load variables and include](https://forum.ansible.com/t/load-variables-and-include/23929)

<div class="topic-metadata">

**Author:** [@Vinicius\_Leal](https://forum.ansible.com/u/Vinicius_Leal)\
**Replies:** 2\
**Last updated:** [March 10, 2017, 4:48pm UTC](https://forum.ansible.com/t/load-variables-and-include/23929 "2017-03-10T16:48:59Z")

</div>

Hi guys i saw the following example: - include: wordpress.yml vars: wp\_user: timmy ssh\_keys: - keys/one.txt - keys/two.txt But when we have a large list of vars is it possibl…

---

## [win\_lineinfile does not create new file](https://forum.ansible.com/t/win-lineinfile-does-not-create-new-file/23747)

<div class="topic-metadata">

**Author:** [@cupcake](https://forum.ansible.com/u/cupcake)\
**Replies:** 2\
**Last updated:** [March 10, 2017, 2:55pm UTC](https://forum.ansible.com/t/win-lineinfile-does-not-create-new-file/23747 "2017-03-10T14:55:38Z")

</div>

ansible core 2.1 When using win\_lineinfile module and the create: yes option it seems it should create a new file. it fails the same as if create:yes is not specified. hosts: all tasks: name: win\_lineinfile test …

---

## [conda install in playbook](https://forum.ansible.com/t/conda-install-in-playbook/23923)

<div class="topic-metadata">

**Author:** [@dynaguy](https://forum.ansible.com/u/dynaguy)\
**Replies:** 1\
**Last updated:** [March 10, 2017, 2:52pm UTC](https://forum.ansible.com/t/conda-install-in-playbook/23923 "2017-03-10T14:52:16Z")

</div>

Hi, We have few python applications need to be installed on Ubuntu 16.04. Before using Ansible, I need to: Download Anaconda2-4.0.0-Linux-x86\_64.sh Install Anaconda in path /opt/anaconda bash Anaconda2-4.0.0-Linux-x8…

---

## [with\_item with none existing variable](https://forum.ansible.com/t/with-item-with-none-existing-variable/23920)

<div class="topic-metadata">

**Author:** [@Christian\_Iuga](https://forum.ansible.com/u/Christian_Iuga)\
**Replies:** 1\
**Last updated:** [March 10, 2017, 2:35pm UTC](https://forum.ansible.com/t/with-item-with-none-existing-variable/23920 "2017-03-10T14:35:19Z")

</div>

Hi, I’m trying to deal with non existing variable when i use --tags (so lot of task are skipped) I have read many time the “http://docs.ansible.com/ansible/playbooks\_conditionals.html#loops-and-conditionals”, specially…

---

## [Experience with very large inventories](https://forum.ansible.com/t/experience-with-very-large-inventories/23919)

<div class="topic-metadata">

**Author:** [@dan3](https://forum.ansible.com/u/dan3)\
**Replies:** 1\
**Last updated:** [March 10, 2017, 1:56pm UTC](https://forum.ansible.com/t/experience-with-very-large-inventories/23919 "2017-03-10T13:56:11Z")

</div>

Hi Guys, I have a very large dynamic inventory with ~ 6000 hosts. Does anyone have any experience with playbook runs across this many hosts? I’m running into issues (frequent and long CPU spikes, significant memory usa…

---

## [New To Ansible getting PLAY RECAP too quickly](https://forum.ansible.com/t/new-to-ansible-getting-play-recap-too-quickly/23922)

<div class="topic-metadata">

**Author:** [@okcjj](https://forum.ansible.com/u/okcjj)\
**Replies:** 1\
**Last updated:** [March 10, 2017, 1:48pm UTC](https://forum.ansible.com/t/new-to-ansible-getting-play-recap-too-quickly/23922 "2017-03-10T13:48:07Z")

</div>

I just started a new job and am replacing a SysEng that left before I could get a proper turnover. I am new to Ansible, but have a need to use one of his old playbooks. When I run the playbook, I am getting a Deprecati…

---

## [Roles, vars, defaults, and pre\_tasks.](https://forum.ansible.com/t/roles-vars-defaults-and-pre-tasks/23903)

<div class="topic-metadata">

**Author:** [@dan\_linder](https://forum.ansible.com/u/dan_linder)\
**Replies:** 1\
**Last updated:** [March 10, 2017, 12:17pm UTC](https://forum.ansible.com/t/roles-vars-defaults-and-pre-tasks/23903 "2017-03-10T12:17:39Z")

</div>

I’m trying to split up a large playbook into roles and it’s going pretty well except I’m having trouble with variables not being pulled in from the roles vars or defaults files. My playbook has this test playbook with a…

---

## [Ansible upgrades for Routers](https://forum.ansible.com/t/ansible-upgrades-for-routers/23445)

<div class="topic-metadata">

**Author:** [@Abhinav\_Sanakkayala](https://forum.ansible.com/u/Abhinav_Sanakkayala)\
**Replies:** 2\
**Last updated:** [March 10, 2017, 3:19am UTC](https://forum.ansible.com/t/ansible-upgrades-for-routers/23445 "2017-03-10T03:19:09Z")

</div>

Hi All, Can we perform the code upgrades for the Cisco or Juniper routers? Say if we have 600 routers in the network, the way it worked is to upgrade one by one and it would take forever to upgrade all of them. As Ansib…

---

## [Suggestion: version-specific documentation](https://forum.ansible.com/t/suggestion-version-specific-documentation/23928)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [March 9, 2017, 8:49pm UTC](https://forum.ansible.com/t/suggestion-version-specific-documentation/23928 "2017-03-09T20:49:29Z")

</div>

One thing I find a little frustrating about the online documentation for Ansible is that there’s no way to look at the docs for a specific version. I realise that a lot of people just use the devel branch but there are t…

---

## [Dealing with Inventory File Proliferation](https://forum.ansible.com/t/dealing-with-inventory-file-proliferation/23911)

<div class="topic-metadata">

**Author:** [@David\_Lane](https://forum.ansible.com/u/David_Lane)\
**Replies:** 2\
**Last updated:** [March 9, 2017, 8:48pm UTC](https://forum.ansible.com/t/dealing-with-inventory-file-proliferation/23911 "2017-03-09T20:48:15Z")

</div>

Hi, I’ve inherited a complex deployment system which is steadily getting more complex. This is fine, except we also have multiple instances of this system (several variants of Production and Dev plus many, many develope…

---

## [Escaping a single backslash in the "replace" part of a regex\_replace](https://forum.ansible.com/t/escaping-a-single-backslash-in-the-replace-part-of-a-regex-replace/23910)

<div class="topic-metadata">

**Author:** [@akuma\_d](https://forum.ansible.com/u/akuma_d)\
**Replies:** 1\
**Last updated:** [March 9, 2017, 7:24pm UTC](https://forum.ansible.com/t/escaping-a-single-backslash-in-the-replace-part-of-a-regex-replace/23910 "2017-03-09T19:24:59Z")

</div>

Hi, I need to replace a dot in a string with a “!”. I am using “regex\_replace” but am unable to get the regex to print a single backslash. I have tried escaping it using double-backslash but that gives me 2 backslashes…

---

## [Codedeploy Support](https://forum.ansible.com/t/codedeploy-support/23813)

<div class="topic-metadata">

**Author:** [@stark](https://forum.ansible.com/u/stark)\
**Replies:** 4\
**Last updated:** [March 9, 2017, 6:42pm UTC](https://forum.ansible.com/t/codedeploy-support/23813 "2017-03-09T18:42:35Z")

</div>

I can’t seem to find an Ansible module equivalent to the AWS CLI deploy for creating and managing AWS CodeDeploy deployments. Is this intentionally not supported, in development, or was I just looking in the wrong places…

---

## [ANsible Opestack integration give 400 error.](https://forum.ansible.com/t/ansible-opestack-integration-give-400-error/23924)

<div class="topic-metadata">

**Author:** [@balubhai555](https://forum.ansible.com/u/balubhai555)\
**Replies:** 0\
**Last updated:** [March 9, 2017, 5:58pm UTC](https://forum.ansible.com/t/ansible-opestack-integration-give-400-error/23924 "2017-03-09T17:58:22Z")

</div>

Hello Team, I am trying to do integration of Ansible with OpenStack. I got the below error. So please help me to solve this error. error: TASK \[launch an instance\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Single-tenant application deployment to AWS](https://forum.ansible.com/t/single-tenant-application-deployment-to-aws/23921)

<div class="topic-metadata">

**Author:** [@Timo\_Carl](https://forum.ansible.com/u/Timo_Carl)\
**Replies:** 0\
**Last updated:** [March 9, 2017, 3:55pm UTC](https://forum.ansible.com/t/single-tenant-application-deployment-to-aws/23921 "2017-03-09T15:55:07Z")

</div>

All, I am scratching my head over this question for a while now, but can’t seem to find a good answer. However this should be a pretty common question/concern. Maybe someone can tell me how they solved this: We have a…

---

## [deployment notifications - for all cases - OK and failed.](https://forum.ansible.com/t/deployment-notifications-for-all-cases-ok-and-failed/23799)

<div class="topic-metadata">

**Author:** [@epiq\_sty](https://forum.ansible.com/u/epiq_sty)\
**Replies:** 3\
**Last updated:** [March 9, 2017, 2:07pm UTC](https://forum.ansible.com/t/deployment-notifications-for-all-cases-ok-and-failed/23799 "2017-03-09T14:07:11Z")

</div>

Hello! Can you please advice the best way - for sending notifications , if role failed on several hosts ? We have implemented slack notifications about successfully deployed hosts, but how we can get list of failed hos…

---

## [Installation issue (asciidoc error)](https://forum.ansible.com/t/installation-issue-asciidoc-error/23915)

<div class="topic-metadata">

**Author:** [@Rajesh\_Shan](https://forum.ansible.com/u/Rajesh_Shan)\
**Replies:** 1\
**Last updated:** [March 9, 2017, 2:07pm UTC](https://forum.ansible.com/t/installation-issue-asciidoc-error/23915 "2017-03-09T14:07:06Z")

</div>

I tried to install Ansible in RHEL 7.2 server. But it give the following error : \[root@ip-172-31-23-152 ansible\]# make rpm sed “s/%VERSION%/2.3.0/” docs/man/man1/ansible.1.asciidoc.in \> docs/man/man1/ansible.1.asciidoc …

---

## [Setup module finding package information](https://forum.ansible.com/t/setup-module-finding-package-information/23902)

<div class="topic-metadata">

**Author:** [@Drew\_Mullen](https://forum.ansible.com/u/Drew_Mullen)\
**Replies:** 1\
**Last updated:** [March 9, 2017, 12:10pm UTC](https://forum.ansible.com/t/setup-module-finding-package-information/23902 "2017-03-09T12:10:40Z")

</div>

Can the setup module provide information like: is java install? which versions are installed? where are they installed? I noticed in my first test run of the module that python is investigated but didn’t se…

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

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