# Archives

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

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

**Page:** 496

---

## [Ansible 2.3.0.0 privilege escalation doesn't work correct](https://forum.ansible.com/t/ansible-2-3-0-0-privilege-escalation-doesnt-work-correct/24226)

<div class="topic-metadata">

**Author:** [@TheUnicornXXL](https://forum.ansible.com/u/TheUnicornXXL)\
**Replies:** 3\
**Last updated:** [April 20, 2017, 11:24am UTC](https://forum.ansible.com/t/ansible-2-3-0-0-privilege-escalation-doesnt-work-correct/24226 "2017-04-20T11:24:40Z")

</div>

Hi from ansible 1.9 till 2.2.2.0 on centos 7 privilege escalation works really fine. I could access a server with a non privileged user and a ssh key authentication and use as last step the privilege escalation with …

---

## [ansible is unable to connect to junos device](https://forum.ansible.com/t/ansible-is-unable-to-connect-to-junos-device/24263)

<div class="topic-metadata">

**Author:** [@fatimazahra.bouhajba](https://forum.ansible.com/u/fatimazahra.bouhajba)\
**Replies:** 0\
**Last updated:** [April 20, 2017, 11:17am UTC](https://forum.ansible.com/t/ansible-is-unable-to-connect-to-junos-device/24263 "2017-04-20T11:17:13Z")

</div>

Hi all, I’m new to ansible, I need to backup a junos device configuration, ###hosts \[junos\] aa.bb.cc.dd ########playbook

---

## [ec2\_ami launch\_permissions to multiple accounts](https://forum.ansible.com/t/ec2-ami-launch-permissions-to-multiple-accounts/24260)

<div class="topic-metadata">

**Author:** [@Shmulik\_Alfandari](https://forum.ansible.com/u/Shmulik_Alfandari)\
**Replies:** 3\
**Last updated:** [April 20, 2017, 11:01am UTC](https://forum.ansible.com/t/ec2-ami-launch-permissions-to-multiple-accounts/24260 "2017-04-20T11:01:30Z")

</div>

Hi, I am creating AMI in AWS using ec2\_ami module. I need to create the AMI and to give permissions to multiple accounts,however it failed. When I am doing it with one account it’s ok. Below the code to create AMI with…

---

## [azure\_rm\_virtualmachine tags weirdness](https://forum.ansible.com/t/azure-rm-virtualmachine-tags-weirdness/24167)

<div class="topic-metadata">

**Author:** [@mkporwit](https://forum.ansible.com/u/mkporwit)\
**Replies:** 8\
**Last updated:** [April 20, 2017, 10:53am UTC](https://forum.ansible.com/t/azure-rm-virtualmachine-tags-weirdness/24167 "2017-04-20T10:53:08Z")

</div>

Hi, Not sure yet if what I have here is a bug or not, so thought I’d ask first. I’m seeing a strange failure out of azure\_rm\_virtualmachine in the latest ansible devel. The working playbook looks as follows: name: Cre…

---

## [dockers module issues](https://forum.ansible.com/t/dockers-module-issues/24257)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 1\
**Last updated:** [April 20, 2017, 8:41am UTC](https://forum.ansible.com/t/dockers-module-issues/24257 "2017-04-20T08:41:50Z")

</div>

Hello, Would really appreciate pointer here as I have run to a hard wall. I am trying to use ansible to manage and configure docker. So I started on a google search and noticed ansible already has some support for docke…

---

## [Blockinfile indentation](https://forum.ansible.com/t/blockinfile-indentation/21581)

<div class="topic-metadata">

**Author:** [@jdelaporte](https://forum.ansible.com/u/jdelaporte)\
**Replies:** 4\
**Last updated:** [April 20, 2017, 1:36am UTC](https://forum.ansible.com/t/blockinfile-indentation/21581 "2017-04-20T01:36:30Z")

</div>

I am using blockinfile to write lines to a vars file that includes a few different layers of indentation. How do I make sure the indentation levels are maintained correctly using the block | statement? Thanks! Joanna

---

## [Logout of session and logback in usng ansible playbook](https://forum.ansible.com/t/logout-of-session-and-logback-in-usng-ansible-playbook/24256)

<div class="topic-metadata">

**Author:** [@harish1](https://forum.ansible.com/u/harish1)\
**Replies:** 0\
**Last updated:** [April 19, 2017, 10:16pm UTC](https://forum.ansible.com/t/logout-of-session-and-logback-in-usng-ansible-playbook/24256 "2017-04-19T22:16:54Z")

</div>

---

## [Handling ansible.cfg file for distributed version controlled projects](https://forum.ansible.com/t/handling-ansible-cfg-file-for-distributed-version-controlled-projects/24255)

<div class="topic-metadata">

**Author:** [@burns498](https://forum.ansible.com/u/burns498)\
**Replies:** 0\
**Last updated:** [April 19, 2017, 9:56pm UTC](https://forum.ansible.com/t/handling-ansible-cfg-file-for-distributed-version-controlled-projects/24255 "2017-04-19T21:56:55Z")

</div>

All - A question about ansible.cfg maintenance for distributed version controlled projects. This may be more of a general version control question than anything specific to Ansible, but figured you all may have ran into …

---

## [Ansible WinRM allow unencrypted connections - extra step ?](https://forum.ansible.com/t/ansible-winrm-allow-unencrypted-connections-extra-step/24237)

<div class="topic-metadata">

**Author:** [@glerch3000](https://forum.ansible.com/u/glerch3000)\
**Replies:** 1\
**Last updated:** [April 19, 2017, 8:53pm UTC](https://forum.ansible.com/t/ansible-winrm-allow-unencrypted-connections-extra-step/24237 "2017-04-19T20:53:53Z")

</div>

Hey guys, Hopefully just a quick issue you can educate me on. When using the ConfigureRemotingForAnsible.ps 1 script, I find that I must still execute this afterwards to win\_ping, for example –\>\> winrm set winrm/config…

---

## [Ansible Windows](https://forum.ansible.com/t/ansible-windows/24248)

<div class="topic-metadata">

**Author:** [@mahmoud.mahagna](https://forum.ansible.com/u/mahmoud.mahagna)\
**Replies:** 2\
**Last updated:** [April 19, 2017, 8:45pm UTC](https://forum.ansible.com/t/ansible-windows/24248 "2017-04-19T20:45:26Z")

</div>

We are testing ansible with our automation projects , we have a lot of VM’s and & PC’s. I’m trying to get ansible working and stuck here , I’ve got it installed on a VM CENTOS Machine . And on a windows machine too . I…

---

## [Invoking packet.net from Ansible](https://forum.ansible.com/t/invoking-packet-net-from-ansible/24247)

<div class="topic-metadata">

**Author:** [@anand\_kolli](https://forum.ansible.com/u/anand_kolli)\
**Replies:** 1\
**Last updated:** [April 19, 2017, 8:01pm UTC](https://forum.ansible.com/t/invoking-packet-net-from-ansible/24247 "2017-04-19T20:01:15Z")

</div>

Hello, I am facing an issue while invoking packet.net from Ansible. https://docs.ansible.com/ansible/packet\_device\_module.html https://github.com/ngrewe/packet-python/tree/ansible below is my playbook file name: cr…

---

## [Can't i use prompt module in ansible tower?](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24235)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 2\
**Last updated:** [April 19, 2017, 7:39pm UTC](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24235 "2017-04-19T19:39:52Z")

</div>

In Ansible Tower, I can’t take any user input by using module prompt But the module works fine in the Linux shell. Are there people who have same problem like me ?

---

## [Scaling Ansible](https://forum.ansible.com/t/scaling-ansible/24243)

<div class="topic-metadata">

**Author:** [@Fong\_Yang](https://forum.ansible.com/u/Fong_Yang)\
**Replies:** 6\
**Last updated:** [April 19, 2017, 6:27pm UTC](https://forum.ansible.com/t/scaling-ansible/24243 "2017-04-19T18:27:45Z")

</div>

We’re evaluating Ansible and other config management tools. I have two issues I would like input from others: if you have to change ssh keys, what’s the best way to do that across tens of thousands of machines? if …

---

## [Ansible: Need to understand how can we use scp and ssh command with shell or script.](https://forum.ansible.com/t/ansible-need-to-understand-how-can-we-use-scp-and-ssh-command-with-shell-or-script/24240)

<div class="topic-metadata">

**Author:** [@nishant\_bawane](https://forum.ansible.com/u/nishant_bawane)\
**Replies:** 3\
**Last updated:** [April 19, 2017, 5:29pm UTC](https://forum.ansible.com/t/ansible-need-to-understand-how-can-we-use-scp-and-ssh-command-with-shell-or-script/24240 "2017-04-19T17:29:06Z")

</div>

for i in cat /tmp/list do echo $i scp HLC\_auth $i:.ssh/authorized\_keys scp known\_hosts.LLC $i:.ssh/known\_hosts ssh $i “rm -rf .ssh/id\_dsa\*” ssh $i “ssh-keygen -d” done Above the the task i need to run through pla…

---

## [Executing loop in loop](https://forum.ansible.com/t/executing-loop-in-loop/24249)

<div class="topic-metadata">

**Author:** [@Anand\_Dasari](https://forum.ansible.com/u/Anand_Dasari)\
**Replies:** 1\
**Last updated:** [April 19, 2017, 3:03pm UTC](https://forum.ansible.com/t/executing-loop-in-loop/24249 "2017-04-19T15:03:48Z")

</div>

I got a code which check whether local file exists based on with\_items and keeps result in array now based on this array i have to copy the local file to remote dir again using loop name: check wheter we have local co…

---

## [are we allowed to tag a rescue block ?](https://forum.ansible.com/t/are-we-allowed-to-tag-a-rescue-block/24218)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 7\
**Last updated:** [April 19, 2017, 2:23pm UTC](https://forum.ansible.com/t/are-we-allowed-to-tag-a-rescue-block/24218 "2017-04-19T14:23:44Z")

</div>

hello, I have a playbook running well, but I want to be able to restore files if it fails. So I want to add a block/rescue, I am allowed to tag the rescue so the restore of files will only run if I run my playbook with…

---

## [Download files](https://forum.ansible.com/t/download-files/24245)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 2\
**Last updated:** [April 19, 2017, 12:41pm UTC](https://forum.ansible.com/t/download-files/24245 "2017-04-19T12:41:08Z")

</div>

Hello, i have few zip files in a url like 1.zip, 1.md5.txt, 2.zip, 2.md5.txt , if there is a change in the zip file the corresponding md5.txt entry will be changed, how can i check this condition and download only the z…

---

## [Azure HDInsight](https://forum.ansible.com/t/azure-hdinsight/24244)

<div class="topic-metadata">

**Author:** [@ayan\_guha](https://forum.ansible.com/u/ayan_guha)\
**Replies:** 0\
**Last updated:** [April 19, 2017, 1:53am UTC](https://forum.ansible.com/t/azure-hdinsight/24244 "2017-04-19T01:53:46Z")

</div>

Hi is it possible to use Ansible to create and/or autoscale HDInsight clusters on Azure? Best Ayan

---

## [ansible ssh issue](https://forum.ansible.com/t/ansible-ssh-issue/24242)

<div class="topic-metadata">

**Author:** [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Replies:** 0\
**Last updated:** [April 18, 2017, 11:39pm UTC](https://forum.ansible.com/t/ansible-ssh-issue/24242 "2017-04-18T23:39:01Z")

</div>

Hello, This is not an ansible issue to be frank but I am hoping someone here have seen it before and can offer some guidance. Note, I can manually ssh to the system, but ansible can’t. I have a system that was previous…

---

## [How to detect which role called an other role in case of role dependency](https://forum.ansible.com/t/how-to-detect-which-role-called-an-other-role-in-case-of-role-dependency/24179)

<div class="topic-metadata">

**Author:** [@gabrioux](https://forum.ansible.com/u/gabrioux)\
**Replies:** 3\
**Last updated:** [April 18, 2017, 6:34pm UTC](https://forum.ansible.com/t/how-to-detect-which-role-called-an-other-role-in-case-of-role-dependency/24179 "2017-04-18T18:34:17Z")

</div>

Hi, I have a playbook with many roles plus a common role that is used by each other roles. Basically, this common role is used because I have some tasks that are applicable for all roles, obviously, I don’t want to rew…

---

## [Ansible Roles fails to run in Interactive mode with local\_action module.](https://forum.ansible.com/t/ansible-roles-fails-to-run-in-interactive-mode-with-local-action-module/24215)

<div class="topic-metadata">

**Author:** [@Know\_Your\_Tech](https://forum.ansible.com/u/Know_Your_Tech)\
**Replies:** 1\
**Last updated:** [April 18, 2017, 4:51pm UTC](https://forum.ansible.com/t/ansible-roles-fails-to-run-in-interactive-mode-with-local-action-module/24215 "2017-04-18T16:51:34Z")

</div>

Issue Type: user question Ansible version: 2.1.0.0 Ansible module: local\_action

---

## [How to use notify with with\_items](https://forum.ansible.com/t/how-to-use-notify-with-with-items/24139)

<div class="topic-metadata">

**Author:** [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Replies:** 7\
**Last updated:** [April 18, 2017, 4:09pm UTC](https://forum.ansible.com/t/how-to-use-notify-with-with-items/24139 "2017-04-18T16:09:13Z")

</div>

i am downloading zip files from an url, i am using with\_items for list of zip files in that location, i want to do a task (extract) for only the file downloaded. Since i am new to ansible i cant think of anything other t…

---

## [OpenStack - Try to  add new hosts in a dynamic inventory file](https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192)

<div class="topic-metadata">

**Author:** [@Soufiane\_Benmalek](https://forum.ansible.com/u/Soufiane_Benmalek)\
**Replies:** 1\
**Last updated:** [April 18, 2017, 3:58pm UTC](https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192 "2017-04-18T15:58:04Z")

</div>

Hi, I use Ansible to launch new servers on an OpenStack public cloud provider. This is my playbook:

---

## [skipping of instance-ids using with\_items in ansible playbook](https://forum.ansible.com/t/skipping-of-instance-ids-using-with-items-in-ansible-playbook/24220)

<div class="topic-metadata">

**Author:** [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Replies:** 2\
**Last updated:** [April 18, 2017, 2:21pm UTC](https://forum.ansible.com/t/skipping-of-instance-ids-using-with-items-in-ansible-playbook/24220 "2017-04-18T14:21:51Z")

</div>

Hi I am trying to start the instances from a list of instances-ids using with\_items and when condition.I have created a databases with four columns consisting of instance-ids,start-time,end-time and instance-name.Now by…

---

## [osx\_defaults missing a data type](https://forum.ansible.com/t/osx-defaults-missing-a-data-type/24238)

<div class="topic-metadata">

**Author:** [@Adrian\_Wallaschek](https://forum.ansible.com/u/Adrian_Wallaschek)\
**Replies:** 0\
**Last updated:** [April 18, 2017, 1:01pm UTC](https://forum.ansible.com/t/osx-defaults-missing-a-data-type/24238 "2017-04-18T13:01:20Z")

</div>

Hi! I just came across a missing datatype in this area: dict. Test-case: I tried to add a directory to the user-folders for Desktop wallpapers. \` $ defaults read com.apple.systempreferences DSKDesktopPrefPane { Use…

---

## [Ansible host level interceptors](https://forum.ansible.com/t/ansible-host-level-interceptors/24217)

<div class="topic-metadata">

**Author:** [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Replies:** 2\
**Last updated:** [April 18, 2017, 12:59pm UTC](https://forum.ansible.com/t/ansible-host-level-interceptors/24217 "2017-04-18T12:59:54Z")

</div>

Is there a way in Ansible to create a host level interceptor which does ‘something’ in case ansible-playbook command is invoked ? What i am trying to do here is to get informed periodically about ‘ansible-playbook’ comm…

---

## [ec2\_ami "msg": "InvalidParameterValue: Value (\['i-092axxxxxxxxxxd64'\]) for parameter instance is invalid. Expected: 'i-...'."](https://forum.ansible.com/t/ec2-ami-msg-invalidparametervalue-value-i-092axxxxxxxxxxd64-for-parameter-instance-is-invalid-expected-i/24236)

<div class="topic-metadata">

**Author:** [@sreenivas\_narayan](https://forum.ansible.com/u/sreenivas_narayan)\
**Replies:** 1\
**Last updated:** [April 18, 2017, 10:48am UTC](https://forum.ansible.com/t/ec2-ami-msg-invalidparametervalue-value-i-092axxxxxxxxxxd64-for-parameter-instance-is-invalid-expected-i/24236 "2017-04-18T10:48:12Z")

</div>

Hi Guys, I am using ec2 ami to create image of instance and getting error as above. Please help. ansible version: 2.2.1.0 name: Create ami from the image local\_action: module: ec2\_ami aws\_access\_key: “{{ xxxxxxxxx…

---

## [Ansible Errors when running Playbook](https://forum.ansible.com/t/ansible-errors-when-running-playbook/24232)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 2\
**Last updated:** [April 18, 2017, 9:22am UTC](https://forum.ansible.com/t/ansible-errors-when-running-playbook/24232 "2017-04-18T09:22:56Z")

</div>

Getting the following errors - can anyone help? Traceback (most recent call last): File “/usr/bin/ansible-playbook”, line 41, in from multiprocessing import Lock File “/usr/lib64/python2.7/multiprocessing/init.py”, …

---

## [Can't i use prompt module in ansible tower?](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24234)

<div class="topic-metadata">

**Author:** [@user45](https://forum.ansible.com/u/user45)\
**Replies:** 0\
**Last updated:** [April 18, 2017, 8:19am UTC](https://forum.ansible.com/t/cant-i-use-prompt-module-in-ansible-tower/24234 "2017-04-18T08:19:05Z")

</div>

In Ansible Tower, I can’t take any user input by using module prompt But the module works fine in the Linux shell. Are there people who have the same problem like me? In addition, how do you use the newly added wo…

---

## [Seamless provisioning, install and configuration automation in Ansible](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214)

<div class="topic-metadata">

**Author:** [@Madhava\_Rao](https://forum.ansible.com/u/Madhava_Rao)\
**Replies:** 3\
**Last updated:** [April 18, 2017, 6:47am UTC](https://forum.ansible.com/t/seamless-provisioning-install-and-configuration-automation-in-ansible/24214 "2017-04-18T06:47:55Z")

</div>

Hi, I’m automating a QA environment which involves provisioning VM’s on the cloud and installation of Kubernetes cluster. I’m able to install and configure Kubernetes on the VM’s after provisioning thanks to the Kuberne…

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

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