# Latest

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

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

**Page:** 529

---

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

---

## [Installing AWX images through a local repo](https://forum.ansible.com/t/installing-awx-images-through-a-local-repo/28274)

<div class="topic-metadata">

**Author:** [@sky.mikebryan](https://forum.ansible.com/u/sky.mikebryan)\
**Replies:** 2\
**Last updated:** [August 17, 2018, 1:45pm UTC](https://forum.ansible.com/t/installing-awx-images-through-a-local-repo/28274 "2018-08-17T13:45:47Z")

</div>

Hello!, Is there a way to install the below images locally / thour a local repo when running "ansible-playbook -i inventory install.yml" command.

---

## [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.6.3 is available](https://forum.ansible.com/t/ansible-2-6-3-is-available/28349)

<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/28349 "2018-08-17T03:56:19Z")

</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/28347)

<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/28347 "2018-08-16T23:35:22Z")

</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?

---

## [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\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Upgrading from 1.5.0.24 to 1.0.6](https://forum.ansible.com/t/upgrading-from-1-5-0-24-to-1-0-6/28326)

<div class="topic-metadata">

**Author:** [@anthony.cleaves](https://forum.ansible.com/u/anthony.cleaves)\
**Replies:** 9\
**Last updated:** [August 16, 2018, 4:02pm UTC](https://forum.ansible.com/t/upgrading-from-1-5-0-24-to-1-0-6/28326 "2018-08-16T16:02:37Z")

</div>

Hello, this is my second attempt at upgrading AWX which has seemed to fail. The instructions I got from various online articles were. Delete the containers Re-run the installer. I have now tried devel and also using …

---

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

---

## [Pull value from stdout](https://forum.ansible.com/t/pull-value-from-stdout/28341)

<div class="topic-metadata">

**Author:** [@email](https://forum.ansible.com/u/email)\
**Replies:** 3\
**Last updated:** [August 16, 2018, 1:01pm UTC](https://forum.ansible.com/t/pull-value-from-stdout/28341 "2018-08-16T13:01:43Z")

</div>

Hi I am for some reason, really struggling to pull an item from stdout and register it. Inside play: debug: msg: “{{ output.stdout }}” Output: ok: \[localhost\] =\> { “msg”: { “code”: 200, “data”: “1…

---

## [Restoring an ansible backup file](https://forum.ansible.com/t/restoring-an-ansible-backup-file/28338)

<div class="topic-metadata">

**Author:** [@Tony\_Owens](https://forum.ansible.com/u/Tony_Owens)\
**Replies:** 1\
**Last updated:** [August 16, 2018, 10:43am UTC](https://forum.ansible.com/t/restoring-an-ansible-backup-file/28338 "2018-08-16T10:43:06Z")

</div>

I’m trying to copy a file out with backup option which works fine. I’m pretty sure I am overlooking over something simple here. Any help is appreciated. \`

---

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

---

## [Getting security bad md5 certificate after running configureRemotingForAnsible.ps1](https://forum.ansible.com/t/getting-security-bad-md5-certificate-after-running-configureremotingforansible-ps1/28329)

<div class="topic-metadata">

**Author:** [@sshort](https://forum.ansible.com/u/sshort)\
**Replies:** 3\
**Last updated:** [August 15, 2018, 3:13pm UTC](https://forum.ansible.com/t/getting-security-bad-md5-certificate-after-running-configureremotingforansible-ps1/28329 "2018-08-15T15:13:11Z")

</div>

Perhaps the script has changed but I ran it 8 months ago off the ansibledoc site. Has anyone else run into this? Anyone know how to fix it?

---

## [Unable to connect to Cisco IOS devices using network\_cli - socket is closed error](https://forum.ansible.com/t/unable-to-connect-to-cisco-ios-devices-using-network-cli-socket-is-closed-error/28335)

<div class="topic-metadata">

**Author:** [@Caleb\_Guerrero](https://forum.ansible.com/u/Caleb_Guerrero)\
**Replies:** 0\
**Last updated:** [August 15, 2018, 3:12pm UTC](https://forum.ansible.com/t/unable-to-connect-to-cisco-ios-devices-using-network-cli-socket-is-closed-error/28335 "2018-08-15T15:12:00Z")

</div>

Hello, I have been attempting to connect to various Cisco IOS devices in our dev environment with no luck using the network\_cli connection method. I can communicate with all devices when running ‘ansible ios -m ping’ an…

---

## [Editing inline encrypted variables?](https://forum.ansible.com/t/editing-inline-encrypted-variables/28330)

<div class="topic-metadata">

**Author:** [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 3:10pm UTC](https://forum.ansible.com/t/editing-inline-encrypted-variables/28330 "2018-08-15T15:10:12Z")

</div>

Hi I've come to like the inline encrypted variable (https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_vault.html#single-encrypted-variable) as this is handy for instance with larger data structures that onl…

---

## [Is it possible to pass SSH key contents as argument when running ansible-playbook](https://forum.ansible.com/t/is-it-possible-to-pass-ssh-key-contents-as-argument-when-running-ansible-playbook/28334)

<div class="topic-metadata">

**Author:** [@Bruce\_Affonso](https://forum.ansible.com/u/Bruce_Affonso)\
**Replies:** 1\
**Last updated:** [August 15, 2018, 2:54pm UTC](https://forum.ansible.com/t/is-it-possible-to-pass-ssh-key-contents-as-argument-when-running-ansible-playbook/28334 "2018-08-15T14:54:08Z")

</div>

Hi, We are storing private keys in a DB and when we need to run a playbook would like to pass these SSH keys as an argument instead of storing as a file locally. I tried something like this: ansible-playbook -i “1.2.3…

---

## [Ansible AWX 1.0.7](https://forum.ansible.com/t/ansible-awx-1-0-7/28322)

<div class="topic-metadata">

**Author:** [@Matthew\_Jones1](https://forum.ansible.com/u/Matthew_Jones1)\
**Replies:** 4\
**Last updated:** [August 15, 2018, 1:01pm UTC](https://forum.ansible.com/t/ansible-awx-1-0-7/28322 "2018-08-15T13:01:51Z")

</div>

Howdy! The AWX team is pleased to announce the availability of AWX 1.0.7. This release contains mostly bug fixes but unfortunately is not directly upgradeable from 1.0.6.

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

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