# Latest

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

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

**Page:** 678

---

## [How to get the ansible command line information like current tags, skip-tags, limit, etc?](https://forum.ansible.com/t/how-to-get-the-ansible-command-line-information-like-current-tags-skip-tags-limit-etc/22453)

<div class="topic-metadata">

**Author:** [@Jordan\_Cohen](https://forum.ansible.com/u/Jordan_Cohen)\
**Replies:** 4\
**Last updated:** [March 13, 2017, 2:33pm UTC](https://forum.ansible.com/t/how-to-get-the-ansible-command-line-information-like-current-tags-skip-tags-limit-etc/22453 "2017-03-13T14:33:25Z")

</div>

I am integrating some automated slack messaging in ansible to inform on ansible runs and it would be useful to display information such as: Current tags in push Current skip-tags in push Current limit (though I know i…

---

## [New here and could use some input (aws, ec2\_vol, boto3)](https://forum.ansible.com/t/new-here-and-could-use-some-input-aws-ec2-vol-boto3/23945)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 1\
**Last updated:** [March 13, 2017, 12:13pm UTC](https://forum.ansible.com/t/new-here-and-could-use-some-input-aws-ec2-vol-boto3/23945 "2017-03-13T12:13:55Z")

</div>

You might want to try the developer list as documented here https://docs.ansible.com/ansible/community.html#mailing-list-information

---

## [junos\_template in Ansible 2.1](https://forum.ansible.com/t/junos-template-in-ansible-2-1/21398)

<div class="topic-metadata">

**Author:** [@Ian\_Cote](https://forum.ansible.com/u/Ian_Cote)\
**Replies:** 5\
**Last updated:** [March 13, 2017, 8:53am UTC](https://forum.ansible.com/t/junos-template-in-ansible-2-1/21398 "2017-03-13T08:53:54Z")

</div>

I’ve been kicking the tires on 2.1, specifically to start managing network equipment. I’ve had success with the junos\_command and junos\_config modules, but cannot get the junos\_template module to work for even a trivial …

---

## [IP address to hexadecimal conversion](https://forum.ansible.com/t/ip-address-to-hexadecimal-conversion/23936)

<div class="topic-metadata">

**Author:** [@Madhu](https://forum.ansible.com/u/Madhu)\
**Replies:** 3\
**Last updated:** [March 13, 2017, 8:29am UTC](https://forum.ansible.com/t/ip-address-to-hexadecimal-conversion/23936 "2017-03-13T08:29:05Z")

</div>

Hi, I want to convert the IP address to hexadecimal format. Can you please tell me how to do it in ansible/jinja2? Below is my playbook. name: Generate the routes and store in file set\_fact: variable: “\[{% for i in …

---

## [for loop sorted output in a template](https://forum.ansible.com/t/for-loop-sorted-output-in-a-template/23947)

<div class="topic-metadata">

**Author:** [@Spike1](https://forum.ansible.com/u/Spike1)\
**Replies:** 0\
**Last updated:** [March 13, 2017, 3:51am UTC](https://forum.ansible.com/t/for-loop-sorted-output-in-a-template/23947 "2017-03-13T03:51:50Z")

</div>

Hi, I’ve had this problem came up a few times and hope someone here has a solution for it. I have a basic for loop in a template where multiple lines are printed per loop. The problem is that I’d like similar lines to …

---

## [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…

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

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