# Ansible Project

**URL:** https://forum.ansible.com/c/archives/ansible-project/30.md?page=258

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

**Page:** 259

---

## [Quick way for testing new Ansible roles](https://forum.ansible.com/t/quick-way-for-testing-new-ansible-roles/27587)

<div class="topic-metadata">

**Author:** [@Behrang](https://forum.ansible.com/u/Behrang)\
**Replies:** 4\
**Last updated:** [May 23, 2018, 7:28am UTC](https://forum.ansible.com/t/quick-way-for-testing-new-ansible-roles/27587 "2018-05-23T07:28:26Z")

</div>

Hi, In the docs, it is written that: Test It The actual work to be performed gets added as playbook tasks to tasks/main.yml. Once you’ve added some tasks, create a playbook to test the role and insure it works. Here’s …

---

## [Using ansible to modify ip address on system](https://forum.ansible.com/t/using-ansible-to-modify-ip-address-on-system/23351)

<div class="topic-metadata">

**Author:** [@Gerald\_Spencer1](https://forum.ansible.com/u/Gerald_Spencer1)\
**Replies:** 2\
**Last updated:** [May 22, 2018, 9:59pm UTC](https://forum.ansible.com/t/using-ansible-to-modify-ip-address-on-system/23351 "2018-05-22T21:59:37Z")

</div>

Okay, we’ve ran out of ip addresses, and got a larger subnet from our ip. I am currently in the process of switching them over, and decided it would be nice to do this with ansible, but I have ran into a little snag. Cu…

---

## [Need help to find how to run root command with non-root user and escalated privilages](https://forum.ansible.com/t/need-help-to-find-how-to-run-root-command-with-non-root-user-and-escalated-privilages/27562)

<div class="topic-metadata">

**Author:** [@Kallu\_Srikanth](https://forum.ansible.com/u/Kallu_Srikanth)\
**Replies:** 7\
**Last updated:** [May 22, 2018, 6:57pm UTC](https://forum.ansible.com/t/need-help-to-find-how-to-run-root-command-with-non-root-user-and-escalated-privilages/27562 "2018-05-22T18:57:15Z")

</div>

Hi, I highly appreciate if anybody can help, please ############### playbook ################## hosts: dpie\_prod user: dpiesa tasks: name: install telnet yum: pkg=telnet state=installed update\_cache=true command:…

---

## [Run one simple coomand with sudo priviliges.](https://forum.ansible.com/t/run-one-simple-coomand-with-sudo-priviliges/27593)

<div class="topic-metadata">

**Author:** [@Dawid\_D](https://forum.ansible.com/u/Dawid_D)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 6:08pm UTC](https://forum.ansible.com/t/run-one-simple-coomand-with-sudo-priviliges/27593 "2018-05-22T18:08:38Z")

</div>

Hello All, I would like ask about privileges escalation by sudo. I need run command on RemoteMachine. User: someone and Command: /usr/local/blah.sh for example suoders file: someone RemoteMachine =(root)\*\*/usr/local/…

---

## [Ansible Do Until Loop](https://forum.ansible.com/t/ansible-do-until-loop/27589)

<div class="topic-metadata">

**Author:** [@Madushan\_Chathuranga](https://forum.ansible.com/u/Madushan_Chathuranga)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 5:58pm UTC](https://forum.ansible.com/t/ansible-do-until-loop/27589 "2018-05-22T17:58:45Z")

</div>

Hi All, I’m using ansible version 2.5.0 I’m trying execute a task with an Do Until Loop. http://docs.ansible.com/ansible/latest/user\_guide/playbooks\_loops.html#do-until-loops Is it possible to run this task with an in…

---

## [Ansible way to show only failed tasks not any other](https://forum.ansible.com/t/ansible-way-to-show-only-failed-tasks-not-any-other/27594)

<div class="topic-metadata">

**Author:** [@ansiblekrazy](https://forum.ansible.com/u/ansiblekrazy)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 5:51pm UTC](https://forum.ansible.com/t/ansible-way-to-show-only-failed-tasks-not-any-other/27594 "2018-05-22T17:51:08Z")

</div>

HI all, I tried actionable and other callback plugins however it shows changed tasks also. Is there way to show only and only failed tasks on the screen Thanks

---

## [Variable in the hosts file?](https://forum.ansible.com/t/variable-in-the-hosts-file/27595)

<div class="topic-metadata">

**Author:** [@chrisjx](https://forum.ansible.com/u/chrisjx)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 5:45pm UTC](https://forum.ansible.com/t/variable-in-the-hosts-file/27595 "2018-05-22T17:45:44Z")

</div>

On any given day I might be accessing different aws systems with different sets of FQDNs. I’m looking for a way to basically templatize (new word?) the hosts file. Example: \` this\_track=track4 this\_subnet=239 \[grou…

---

## [How to  replace a word or a content in a file using ansible.](https://forum.ansible.com/t/how-to-replace-a-word-or-a-content-in-a-file-using-ansible/27590)

<div class="topic-metadata">

**Author:** [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Replies:** 1\
**Last updated:** [May 22, 2018, 10:29am UTC](https://forum.ansible.com/t/how-to-replace-a-word-or-a-content-in-a-file-using-ansible/27590 "2018-05-22T10:29:47Z")

</div>

I am trying to replace a word in file using Ansible. Any inputs how to acheive it.

---

## [Ansible looping over register and multiple lists](https://forum.ansible.com/t/ansible-looping-over-register-and-multiple-lists/27578)

<div class="topic-metadata">

**Author:** [@Jeremie\_Levy](https://forum.ansible.com/u/Jeremie_Levy)\
**Replies:** 6\
**Last updated:** [May 22, 2018, 7:42am UTC](https://forum.ansible.com/t/ansible-looping-over-register-and-multiple-lists/27578 "2018-05-22T07:42:27Z")

</div>

Hi I’m trying to do the following (in windows but it’s not important): Need to deploy N number of build agents to a server (according to the inventory nb\_of\_agents) - iteration1 Each agent should have a unique por…

---

## [How to remove unused/old configuration automatically using Ansible?](https://forum.ansible.com/t/how-to-remove-unused-old-configuration-automatically-using-ansible/27588)

<div class="topic-metadata">

**Author:** [@SK1](https://forum.ansible.com/u/SK1)\
**Replies:** 0\
**Last updated:** [May 22, 2018, 5:38am UTC](https://forum.ansible.com/t/how-to-remove-unused-old-configuration-automatically-using-ansible/27588 "2018-05-22T05:38:52Z")

</div>

I am currently using Ansible to generate running configuration for the network devices. Here is the simple scenario I have. I have defined the interface type (routed, access, trunk) in the variables file and then create…

---

## [control of network flows and ports between servers](https://forum.ansible.com/t/control-of-network-flows-and-ports-between-servers/27586)

<div class="topic-metadata">

**Author:** [@Diego\_Lagos](https://forum.ansible.com/u/Diego_Lagos)\
**Replies:** 0\
**Last updated:** [May 21, 2018, 9:33pm UTC](https://forum.ansible.com/t/control-of-network-flows-and-ports-between-servers/27586 "2018-05-21T21:33:42Z")

</div>

Currently I have a small problem, but that takes a lot of time. This is the control of network flows. Specifically, check that every time I have a new machine, flows and ports have also been opened to other machines. T…

---

## [How to use the cache plugins for example the "yaml - YAML formatted files" plugin](https://forum.ansible.com/t/how-to-use-the-cache-plugins-for-example-the-yaml-yaml-formatted-files-plugin/27584)

<div class="topic-metadata">

**Author:** [@Ibrahim\_Mohamed](https://forum.ansible.com/u/Ibrahim_Mohamed)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 8:50pm UTC](https://forum.ansible.com/t/how-to-use-the-cache-plugins-for-example-the-yaml-yaml-formatted-files-plugin/27584 "2018-05-21T20:50:17Z")

</div>

How to use the cache plugins for example the “yaml - YAML formatted files” plugin There is no documentation or exampleshttps://docs.ansible.com/ansible/2.5/plugins/cache/yaml.html

---

## [manage linux system policy routing?](https://forum.ansible.com/t/manage-linux-system-policy-routing/27574)

<div class="topic-metadata">

**Author:** [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Replies:** 2\
**Last updated:** [May 21, 2018, 7:06pm UTC](https://forum.ansible.com/t/manage-linux-system-policy-routing/27574 "2018-05-21T19:06:48Z")

</div>

i’m aunable to use the module net\_static\_route other ways?

---

## [procedure to run the previleages command in ansible 2.5](https://forum.ansible.com/t/procedure-to-run-the-previleages-command-in-ansible-2-5/27581)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 5:36pm UTC](https://forum.ansible.com/t/procedure-to-run-the-previleages-command-in-ansible-2-5/27581 "2018-05-21T17:36:43Z")

</div>

Hi Team, Am facing problem in running elevated commands these are my tries kindly suggest a best solution to fix this problem. I dont have problem in running the normal ping command when i ran the elevated command am fa…

---

## [executing the  previleage  adhoc  command](https://forum.ansible.com/t/executing-the-previleage-adhoc-command/27580)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 2\
**Last updated:** [May 21, 2018, 4:55pm UTC](https://forum.ansible.com/t/executing-the-previleage-adhoc-command/27580 "2018-05-21T16:55:16Z")

</div>

Hi Team, When i try to shutdown the connected node using ansible am getting the below error kindly assist 128 ansible iaf -m shell “/usr/sbin/shutdown -h now” -b 129 ansible iaf -m shell “/usr/sbin/shutdown -h now” --…

---

## [Ansible GUI Tools](https://forum.ansible.com/t/ansible-gui-tools/27571)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 4:35pm UTC](https://forum.ansible.com/t/ansible-gui-tools/27571 "2018-05-21T16:35:40Z")

</div>

Hello community, I am learning Ansible and I am getting familiar with Ansible’s commands. However, can someone let me know if there are any GUI applications that will allow the building of Playbooks and inventories etc…

---

## [Issues connecting when using the ios\_facts module](https://forum.ansible.com/t/issues-connecting-when-using-the-ios-facts-module/27563)

<div class="topic-metadata">

**Author:** [@Matt\_Hickok](https://forum.ansible.com/u/Matt_Hickok)\
**Replies:** 4\
**Last updated:** [May 21, 2018, 2:56pm UTC](https://forum.ansible.com/t/issues-connecting-when-using-the-ios-facts-module/27563 "2018-05-21T14:56:03Z")

</div>

Hey folks, I’m trying to gather some facts from a Cisco ASA. The ASA is configured as simply as possible and here are the relevant settings for the ASA ASA Software Version: 9.2(2) Hardware: ASA5515 Management IP: 10.…

---

## [How I write If syntax inside for syntax in template](https://forum.ansible.com/t/how-i-write-if-syntax-inside-for-syntax-in-template/27579)

<div class="topic-metadata">

**Author:** [@Jatinder\_Jawanda](https://forum.ansible.com/u/Jatinder_Jawanda)\
**Replies:** 0\
**Last updated:** [May 21, 2018, 2:28pm UTC](https://forum.ansible.com/t/how-i-write-if-syntax-inside-for-syntax-in-template/27579 "2018-05-21T14:28:08Z")

</div>

\` {% for item, value in {% if source == “cde” %} abc.iteritems() {% else %} def.iteritems() {% endif %} %} item {% endfor %} \`

---

## [Unable to run Jenkins in docker container using Ansible](https://forum.ansible.com/t/unable-to-run-jenkins-in-docker-container-using-ansible/27576)

<div class="topic-metadata">

**Author:** [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Replies:** 0\
**Last updated:** [May 21, 2018, 12:02pm UTC](https://forum.ansible.com/t/unable-to-run-jenkins-in-docker-container-using-ansible/27576 "2018-05-21T12:02:22Z")

</div>

Dear All, I am not able to run jenkins inside docker container using ansible playbook. Jenkins is getting started but unable to run it name: Download Jenkins Container docker\_container: name: Jenkins\_server image: …

---

## [paper ansible](https://forum.ansible.com/t/paper-ansible/27573)

<div class="topic-metadata">

**Author:** [@Raxeon](https://forum.ansible.com/u/Raxeon)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 8:34am UTC](https://forum.ansible.com/t/paper-ansible/27573 "2018-05-21T08:34:17Z")

</div>

hey guys, i get assignment from my teacher, do you know where i can get paper or journal about ansible? thanks…

---

## [merge two sets of AWS tags?](https://forum.ansible.com/t/merge-two-sets-of-aws-tags/27572)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 1\
**Last updated:** [May 21, 2018, 8:03am UTC](https://forum.ansible.com/t/merge-two-sets-of-aws-tags/27572 "2018-05-21T08:03:34Z")

</div>

I am clearly having a brain failure, but I can’t figure out how to merge two sets of AWS tags. AWS tags are generally defined as a variable (or attribute in a module) something like this: tags: name1: value1 name2: v…

---

## [Abridged summary of ansible-project@googlegroups.com - 14 updates in 5 topics](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-14-updates-in-5-topics/27570)

<div class="topic-metadata">

**Author:** [@kanna3k6](https://forum.ansible.com/u/kanna3k6)\
**Replies:** 0\
**Last updated:** [May 20, 2018, 6:38pm UTC](https://forum.ansible.com/t/abridged-summary-of-ansible-project-googlegroups-com-14-updates-in-5-topics/27570 "2018-05-20T18:38:16Z")

</div>

Hi Team, Am trying to run the shutdown command in my ansible master server using the below command \[tester@ansi ~\]$ sudo ansible Total -m shell -a “/usr/sbin/shutdown -h now” got the error message as server 1 | UNREA…

---

## [Intended behavior of variable expansion in role handlers?](https://forum.ansible.com/t/intended-behavior-of-variable-expansion-in-role-handlers/27546)

<div class="topic-metadata">

**Author:** [@luciano.cavalheiro](https://forum.ansible.com/u/luciano.cavalheiro)\
**Replies:** 1\
**Last updated:** [May 20, 2018, 5:17pm UTC](https://forum.ansible.com/t/intended-behavior-of-variable-expansion-in-role-handlers/27546 "2018-05-20T17:17:25Z")

</div>

Greetings, I found an unexpected behavior when role variables, with default values defined, are overwritten by role parameters in the playbook. I would like to confirm whether its a bug or working as designed before ope…

---

## [Check if all the values of a yml matches a string else throw error and exit in ansible](https://forum.ansible.com/t/check-if-all-the-values-of-a-yml-matches-a-string-else-throw-error-and-exit-in-ansible/27568)

<div class="topic-metadata">

**Author:** [@BIJAY\_PARIDA](https://forum.ansible.com/u/BIJAY_PARIDA)\
**Replies:** 6\
**Last updated:** [May 20, 2018, 10:34am UTC](https://forum.ansible.com/t/check-if-all-the-values-of-a-yml-matches-a-string-else-throw-error-and-exit-in-ansible/27568 "2018-05-20T10:34:23Z")

</div>

Hi, I have two files file1.yml and file2.yml which I am passing from the deployment level. I want to verify that all the values of the file1 matches to a string else exits with error message, same with the 2nd file. f…

---

## [Decrypting/Encrypting Ansible Vault on Windows](https://forum.ansible.com/t/decrypting-encrypting-ansible-vault-on-windows/27569)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 0\
**Last updated:** [May 20, 2018, 6:10am UTC](https://forum.ansible.com/t/decrypting-encrypting-ansible-vault-on-windows/27569 "2018-05-20T06:10:10Z")

</div>

Hey This is a shameless self post but recently I’ve been spending some time trying to understand how Ansible Vault works and I decided to apply what I learnt by creating some PowerShell cmdlets to encrypt/decrypt a vaul…

---

## [Ansible Command Module Argument Entry](https://forum.ansible.com/t/ansible-command-module-argument-entry/27567)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 3\
**Last updated:** [May 19, 2018, 10:40pm UTC](https://forum.ansible.com/t/ansible-command-module-argument-entry/27567 "2018-05-19T22:40:40Z")

</div>

I’m trying to use Ansible’s ‘command’ module to to issue the command ‘hostname -s’ on a machine. Can someone please take a look at the module and its arguments and let me know where I would enter the argument ‘hostname …

---

## [How to Use Ansible to Determine differing features of a Machine](https://forum.ansible.com/t/how-to-use-ansible-to-determine-differing-features-of-a-machine/27564)

<div class="topic-metadata">

**Author:** [@Carlton\_Patterson1](https://forum.ansible.com/u/Carlton_Patterson1)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 6:07pm UTC](https://forum.ansible.com/t/how-to-use-ansible-to-determine-differing-features-of-a-machine/27564 "2018-05-19T18:07:49Z")

</div>

Hello community Can someone let me know how to use ansible to determine the differences between two machines. For example, lets say I don’t have any idea how a particular linux server is built. However, I know how to u…

---

## [Passing variable value from one role to the next using Ansible for AWS](https://forum.ansible.com/t/passing-variable-value-from-one-role-to-the-next-using-ansible-for-aws/27566)

<div class="topic-metadata">

**Author:** [@philip\_shangguan1](https://forum.ansible.com/u/philip_shangguan1)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 5:12pm UTC](https://forum.ansible.com/t/passing-variable-value-from-one-role-to-the-next-using-ansible-for-aws/27566 "2018-05-19T17:12:49Z")

</div>

I am working on the restore a DB in AWS RDS using Ansible “rds” module. It worked and I have the DB endpoint “registered” variable rds\_instance. This is run on the localhost. Then I need to provision some AWS EC2 instan…

---

## [Subelements with the query plugin](https://forum.ansible.com/t/subelements-with-the-query-plugin/27565)

<div class="topic-metadata">

**Author:** [@K\_de\_Jong](https://forum.ansible.com/u/K_de_Jong)\
**Replies:** 1\
**Last updated:** [May 19, 2018, 11:29am UTC](https://forum.ansible.com/t/subelements-with-the-query-plugin/27565 "2018-05-19T11:29:15Z")

</div>

I’m trying to figure out how to do ‘subelements’ with the query plugin. The thing below doesn’t work, it complains that “could not find ‘ssh\_key’ key in iterated item”. So the skip\_missing is not working. While when I us…

---

## [Ansible module for vRA](https://forum.ansible.com/t/ansible-module-for-vra/25640)

<div class="topic-metadata">

**Author:** [@Ivan\_Pacheco](https://forum.ansible.com/u/Ivan_Pacheco)\
**Replies:** 4\
**Last updated:** [May 18, 2018, 9:10pm UTC](https://forum.ansible.com/t/ansible-module-for-vra/25640 "2018-05-18T21:10:52Z")

</div>

I’m looking for an ansible module to work with vRA similary to the one to work with vCenter, but so far I’m unable to find any official module. Basically be able to provision VMs and execute tasks over them, shutdown, cl…

[Previous page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=257)

[Next page](https://forum.ansible.com/c/archives/ansible-project/30.md?page=259)
