# Ansible Project

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

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

**Page:** 240

---

## [details of instance value](https://forum.ansible.com/t/details-of-instance-value/28372)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 0\
**Last updated:** [August 20, 2018, 5:27pm UTC](https://forum.ansible.com/t/details-of-instance-value/28372 "2018-08-20T17:27:53Z")

</div>

Hi, Could you please help … am unable to retrieve the public ip address of the ec2 instance to add it to the host inventory… name: Create an ec2 instance ec2: key\_name: “{{ keypair }}” group: sg\_webserver\_group i…

---

## [webserver secure](https://forum.ansible.com/t/webserver-secure/28342)

<div class="topic-metadata">

**Author:** [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Replies:** 12\
**Last updated:** [August 20, 2018, 5:24pm UTC](https://forum.ansible.com/t/webserver-secure/28342 "2018-08-20T17:24:57Z")

</div>

Hi, Trying to create an ec2 instance using ansible. which will host a normal webserver but not sure on how to add the self signed certificate to the http - webserver using ansible. Also how to redirect all the http req…

---

## [How to solve the {"Failed to connect to the host via ssh: Permission denied (publickey,password).\\r\\n", "unreachable": true} issue](https://forum.ansible.com/t/how-to-solve-the-failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password-r-n-unreachable-true-issue/28353)

<div class="topic-metadata">

**Author:** [@Jim\_H](https://forum.ansible.com/u/Jim_H)\
**Replies:** 2\
**Last updated:** [August 20, 2018, 4:24pm UTC](https://forum.ansible.com/t/how-to-solve-the-failed-to-connect-to-the-host-via-ssh-permission-denied-publickey-password-r-n-unreachable-true-issue/28353 "2018-08-20T16:24:15Z")

</div>

I am using Ansible to create and setup new virtual machine. after the VM is created, if I use playbook to setup VM ansible-playbook config-vm.yml -i …/…/vms --extra-vars “target=10.150.200.30” --extra-vars “@password.j…

---

## [Best practice - Passwordless authentication or use --ask-pass before executing playbook?](https://forum.ansible.com/t/best-practice-passwordless-authentication-or-use-ask-pass-before-executing-playbook/28366)

<div class="topic-metadata">

**Author:** [@amruth](https://forum.ansible.com/u/amruth)\
**Replies:** 1\
**Last updated:** [August 20, 2018, 3:41pm UTC](https://forum.ansible.com/t/best-practice-passwordless-authentication-or-use-ask-pass-before-executing-playbook/28366 "2018-08-20T15:41:26Z")

</div>

Hi, Can someone please say me the best practice of connecting to remote machines from Ansible hosted machine? Would it be a password less authentication by adding ssh-keys or use --ask-pass every time I execute the play…

---

## [ansible\_os\_family values](https://forum.ansible.com/t/ansible-os-family-values/14086)

<div class="topic-metadata">

**Author:** [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Replies:** 10\
**Last updated:** [August 20, 2018, 3:28pm UTC](https://forum.ansible.com/t/ansible-os-family-values/14086 "2018-08-20T15:28:56Z")

</div>

Hi, I know ansible\_os\_family can be “RedHat” or “Debian”, where “RedHat” includes Fedora and “Debian” is for Ubuntu. Where to find the list of all values that “ansible\_os\_family” can take? It would be awesome if every…

---

## [Understanding become\_user Privilege Escalation](https://forum.ansible.com/t/understanding-become-user-privilege-escalation/28337)

<div class="topic-metadata">

**Author:** [@amruth](https://forum.ansible.com/u/amruth)\
**Replies:** 4\
**Last updated:** [August 20, 2018, 2:53pm UTC](https://forum.ansible.com/t/understanding-become-user-privilege-escalation/28337 "2018-08-20T14:53:27Z")

</div>

Hi All, I am trying to create a file in /opt folder. My playbook(from test role) looks like, name: create file file: path: /opt/testfile state: touch And main.yml looks like, hosts: ‘{{ host }}’ become: ye…

---

## [Create VM on VMWare and register on RHN](https://forum.ansible.com/t/create-vm-on-vmware-and-register-on-rhn/28364)

<div class="topic-metadata">

**Author:** [@enzo.tano](https://forum.ansible.com/u/enzo.tano)\
**Replies:** 4\
**Last updated:** [August 20, 2018, 2:18pm UTC](https://forum.ansible.com/t/create-vm-on-vmware-and-register-on-rhn/28364 "2018-08-20T14:18:58Z")

</div>

Hi, I’m a beginner on awx and ansible. I have a template with RHEL7 on vmware and I trying to clone a vm and register on rhn. My playbook create vm without issue and take all parameters from survey on awx, but I have …

---

## [only show run give error](https://forum.ansible.com/t/only-show-run-give-error/28339)

<div class="topic-metadata">

**Author:** [@nbctcp](https://forum.ansible.com/u/nbctcp)\
**Replies:** 4\
**Last updated:** [August 19, 2018, 9:19am UTC](https://forum.ansible.com/t/only-show-run-give-error/28339 "2018-08-19T09:19:22Z")

</div>

Hi, I have working playbook to cisco on eve-ng. It will give error only when I want to run “show run”. Other commands like “show version” “show clock” all ok Please help tq cat showrun.yml

---

## [Unable to register ec2 instance under an elb](https://forum.ansible.com/t/unable-to-register-ec2-instance-under-an-elb/28362)

<div class="topic-metadata">

**Author:** [@Siva\_Shashank](https://forum.ansible.com/u/Siva_Shashank)\
**Replies:** 0\
**Last updated:** [August 19, 2018, 6:30am UTC](https://forum.ansible.com/t/unable-to-register-ec2-instance-under-an-elb/28362 "2018-08-19T06:30:03Z")

</div>

Hello, I am trying to launch an ec2-instance, a classic load balancer and then register the ec2 instance under the load balancer. When I run the playbook, I see no errors and was able to successfully launch ec2 instance…

---

## [Usage of the zone plugin](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348)

<div class="topic-metadata">

**Author:** [@Tim\_Shaw](https://forum.ansible.com/u/Tim_Shaw)\
**Replies:** 2\
**Last updated:** [August 19, 2018, 12:13am UTC](https://forum.ansible.com/t/usage-of-the-zone-plugin/28348 "2018-08-19T00:13:29Z")

</div>

Hi, I’m attempting to use the zone plugin to connect to Solaris 11 zones to re-configure the primary network. Here’s my test inventory file; \[playpen\] localhost e7812svsun003 \[my-zones\] e7812svsun031 ansible\_zone\_…

---

## [Output without double quote and comma](https://forum.ansible.com/t/output-without-double-quote-and-comma/28360)

<div class="topic-metadata">

**Author:** [@nbctcp](https://forum.ansible.com/u/nbctcp)\
**Replies:** 5\
**Last updated:** [August 18, 2018, 11:41pm UTC](https://forum.ansible.com/t/output-without-double-quote-and-comma/28360 "2018-08-18T23:41:53Z")

</div>

Hi I have playbook with screen output like this “interface Ethernet0/0”, " ip address 10.0.10.121 255.255.255.0", I want like this interface Ethernet0/0 ip address 10.0.10.121 255.255.255.0 Basically exactly like …

---

## [ansible security question /bin/sh](https://forum.ansible.com/t/ansible-security-question-bin-sh/28361)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 0\
**Last updated:** [August 18, 2018, 5:10pm UTC](https://forum.ansible.com/t/ansible-security-question-bin-sh/28361 "2018-08-18T17:10:11Z")

</div>

Hello Folks, ansible(before 2.4) uses /bin/sh for executing tasks, we want to restrict ansible account in sudo for certain tasks, in the process of this we need to give specifiy /bin/sh in sudoers command list for ansib…

---

## [Using multiple vars\_files](https://forum.ansible.com/t/using-multiple-vars-files/28359)

<div class="topic-metadata">

**Author:** [@Ansible\_1](https://forum.ansible.com/u/Ansible_1)\
**Replies:** 7\
**Last updated:** [August 17, 2018, 10:17pm UTC](https://forum.ansible.com/t/using-multiple-vars-files/28359 "2018-08-17T22:17:36Z")

</div>

My main question is how do I assign values of variables in var1 to dest1 and var2 to dest2

---

## [Using multiple vars\_files](https://forum.ansible.com/t/using-multiple-vars-files/28357)

<div class="topic-metadata">

**Author:** [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Replies:** 1\
**Last updated:** [August 17, 2018, 6:41pm UTC](https://forum.ansible.com/t/using-multiple-vars-files/28357 "2018-08-17T18:41:33Z")

</div>

can you the variables? also you are not using the “{{ myvar }}”

---

## [Ansible for scp + git operation](https://forum.ansible.com/t/ansible-for-scp-git-operation/28356)

<div class="topic-metadata">

**Author:** [@Anurag\_Bhatia](https://forum.ansible.com/u/Anurag_Bhatia)\
**Replies:** 0\
**Last updated:** [August 17, 2018, 6:39pm UTC](https://forum.ansible.com/t/ansible-for-scp-git-operation/28356 "2018-08-17T18:39:53Z")

</div>

Hello everyone Was wondering if anyone has ansible playbook to pull configs from various devices via SCP and push it on the git? If yes, can you share for the reference? Thanks!

---

## [Run a task based on variable defined or not](https://forum.ansible.com/t/run-a-task-based-on-variable-defined-or-not/28351)

<div class="topic-metadata">

**Author:** [@Neetu](https://forum.ansible.com/u/Neetu)\
**Replies:** 4\
**Last updated:** [August 17, 2018, 5:32pm UTC](https://forum.ansible.com/t/run-a-task-based-on-variable-defined-or-not/28351 "2018-08-17T17:32:08Z")

</div>

Hi Guys Can some one here help me on how to run a task if a variable is undefined. I want to check if a variable exists or not and register that . If Variable exists I want to run a task. Has any one successfully don…

---

## [No longer able to apply commands to AWS instances after upgrade to 2.5](https://forum.ansible.com/t/no-longer-able-to-apply-commands-to-aws-instances-after-upgrade-to-2-5/28345)

<div class="topic-metadata">

**Author:** [@Ilsa\_Loving](https://forum.ansible.com/u/Ilsa_Loving)\
**Replies:** 10\
**Last updated:** [August 17, 2018, 4:37pm UTC](https://forum.ansible.com/t/no-longer-able-to-apply-commands-to-aws-instances-after-upgrade-to-2-5/28345 "2018-08-17T16:37:00Z")

</div>

Hi all, I have a bunch of scripts I inherited that do a variety of things, primarily for setting up new environments in AWS. Using v2.4, everything worked just fine. As of v2.5, modules are applied to the currently run…

---

## [Windows print out contents of a file to stdout to debug](https://forum.ansible.com/t/windows-print-out-contents-of-a-file-to-stdout-to-debug/28354)

<div class="topic-metadata">

**Author:** [@SurferL](https://forum.ansible.com/u/SurferL)\
**Replies:** 2\
**Last updated:** [August 17, 2018, 3:28pm UTC](https://forum.ansible.com/t/windows-print-out-contents-of-a-file-to-stdout-to-debug/28354 "2018-08-17T15:28:18Z")

</div>

Hi, I’m trying to print out a file’s content on a Windows role and then use the debug module to output to the console, this uses similar notation to print out files contents on a unix platform for ansible. name: wind…

---

## [Playbook failed if dest is lxc container (via ProxyCommand)](https://forum.ansible.com/t/playbook-failed-if-dest-is-lxc-container-via-proxycommand/28355)

<div class="topic-metadata">

**Author:** [@GregFrBdx](https://forum.ansible.com/u/GregFrBdx)\
**Replies:** 0\
**Last updated:** [August 17, 2018, 2:40pm UTC](https://forum.ansible.com/t/playbook-failed-if-dest-is-lxc-container-via-proxycommand/28355 "2018-08-17T14:40:23Z")

</div>

Hello, I have trouble to play ansible-playbook when the destination is a container (in debian/stretch for information) via ssh proxycommand I can access to the master host (with playbook too) i can access to the conta…

---

## [Ansible template - Extract value from Dict](https://forum.ansible.com/t/ansible-template-extract-value-from-dict/28352)

<div class="topic-metadata">

**Author:** [@j1f0x](https://forum.ansible.com/u/j1f0x)\
**Replies:** 1\
**Last updated:** [August 17, 2018, 7:49am UTC](https://forum.ansible.com/t/ansible-template-extract-value-from-dict/28352 "2018-08-17T07:49:41Z")

</div>

Hello I was not able to figure out how to access the ‘vlan\_name’ wthin the jinja2 template. I’ve already tried a numerous filters, map, selectattr, … but none of them seems to work. I could extract the key value items…

---

## [git version not cloning branch](https://forum.ansible.com/t/git-version-not-cloning-branch/28238)

<div class="topic-metadata">

**Author:** [@jtim.arnold](https://forum.ansible.com/u/jtim.arnold)\
**Replies:** 1\
**Last updated:** [August 17, 2018, 4:36am UTC](https://forum.ansible.com/t/git-version-not-cloning-branch/28238 "2018-08-17T04:36:35Z")

</div>

hi, I’m using the git module, specifying ‘centos’ as the version. ‘centos’ is the name of a branch in my gitlab repo. No errors, and the clone part works but always ‘master’ is what’s left in the destination. I suppose…

---

## [Ansible 2.6.3 is available](https://forum.ansible.com/t/ansible-2-6-3-is-available/28350)

<div class="topic-metadata">

**Author:** [@Matt\_Clay1](https://forum.ansible.com/u/Matt_Clay1)\
**Replies:** 0\
**Last updated:** [August 17, 2018, 3:56am UTC](https://forum.ansible.com/t/ansible-2-6-3-is-available/28350 "2018-08-17T03:56:31Z")

</div>

Hi all – we’re happy to announce that the general release of Ansible 2.6.3 is now available! How do you get it?

---

## [Ansible 2.5.8 is available](https://forum.ansible.com/t/ansible-2-5-8-is-available/28346)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 0\
**Last updated:** [August 16, 2018, 11:35pm UTC](https://forum.ansible.com/t/ansible-2-5-8-is-available/28346 "2018-08-16T23:35:01Z")

</div>

Hi all- we’re happy to announce that the general release of Ansible 2.5.8 is now available! How do you get it?

---

## [Restart server playbook fails on one set of targets, but not on another.](https://forum.ansible.com/t/restart-server-playbook-fails-on-one-set-of-targets-but-not-on-another/28344)

<div class="topic-metadata">

**Author:** [@Patrick\_Hunt](https://forum.ansible.com/u/Patrick_Hunt)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 7:58pm UTC](https://forum.ansible.com/t/restart-server-playbook-fails-on-one-set-of-targets-but-not-on-another/28344 "2018-08-16T19:58:56Z")

</div>

I have the following playbook snippet \`

---

## [Looking for advice: json returned from API with and without brackets](https://forum.ansible.com/t/looking-for-advice-json-returned-from-api-with-and-without-brackets/28343)

<div class="topic-metadata">

**Author:** [@J-F\_Gaudreault](https://forum.ansible.com/u/J-F_Gaudreault)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 7:41pm UTC](https://forum.ansible.com/t/looking-for-advice-json-returned-from-api-with-and-without-brackets/28343 "2018-08-16T19:41:17Z")

</div>

Hi! I getting a json from an API request. I’ve registered the json in a var. I’m trying to find a way to get the hostname in the json. I need to find it even if it has brackets or not. I only got this far … with brac…

---

## [cannot login to cisco switch using ansible](https://forum.ansible.com/t/cannot-login-to-cisco-switch-using-ansible/28295)

<div class="topic-metadata">

**Author:** [@Michael\_Ikram](https://forum.ansible.com/u/Michael_Ikram)\
**Replies:** 16\
**Last updated:** [August 16, 2018, 5:43pm UTC](https://forum.ansible.com/t/cannot-login-to-cisco-switch-using-ansible/28295 "2018-08-16T17:43:09Z")

</div>

test@TESTVM:/etc/ansible$ ansible-playbook ios\_facts.yml \[WARNING\] Ansible is in a world writable directory (/etc/ansible), ignoring it as an ansible.cfg source. PLAY \[Collect IOS Device Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Use of vmware\_guest module](https://forum.ansible.com/t/use-of-vmware-guest-module/28331)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 5\
**Last updated:** [August 16, 2018, 1:24pm UTC](https://forum.ansible.com/t/use-of-vmware-guest-module/28331 "2018-08-16T13:24:08Z")

</div>

Hello, all. I need to create a playbook which will include shutting down, then restarting, six virtual machines. The shut-downs/start-ups must be done on the machines in specific order (start-ups in reverse order of shu…

---

## [Ansible "replace" & "lineinfile" issue](https://forum.ansible.com/t/ansible-replace-lineinfile-issue/28340)

<div class="topic-metadata">

**Author:** [@Kanhaiya\_Ashtekar](https://forum.ansible.com/u/Kanhaiya_Ashtekar)\
**Replies:** 1\
**Last updated:** [August 16, 2018, 10:29am UTC](https://forum.ansible.com/t/ansible-replace-lineinfile-issue/28340 "2018-08-16T10:29:08Z")

</div>

I am having a requirement where I need to replace/comment a line from rsyslog.conf file I am unable to correctly state the regexp. Please Help. INADEQUATE INFORMATION AVAILABLE ONLINE. I have been testing the followin…

---

## [Ansible - "pyvmomi module required" error](https://forum.ansible.com/t/ansible-pyvmomi-module-required-error/26493)

<div class="topic-metadata">

**Author:** [@ludmilmm](https://forum.ansible.com/u/ludmilmm)\
**Replies:** 4\
**Last updated:** [August 16, 2018, 8:53am UTC](https://forum.ansible.com/t/ansible-pyvmomi-module-required-error/26493 "2018-08-16T08:53:38Z")

</div>

When I add the following section to otherwise working ansible playbook: \` name: Revert to a snapshot vmware\_guest\_snapshot: hostname: myvcenter username: myusername password: mypassword datacenter: myvcenter fol…

---

## [Warnings during ansible playbook run](https://forum.ansible.com/t/warnings-during-ansible-playbook-run/28336)

<div class="topic-metadata">

**Author:** [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Replies:** 3\
**Last updated:** [August 15, 2018, 5:14pm UTC](https://forum.ansible.com/t/warnings-during-ansible-playbook-run/28336 "2018-08-15T17:14:27Z")

</div>

Have you guys seen this before? What is causing this: Warning: Due to potential bad behaviour with rhnplugin and certificates, used slower repoquery calls instead of Yum API.

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

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