# Archives

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

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

**Page:** 553

---

## [ansible asks for sudo password but local command does not](https://forum.ansible.com/t/ansible-asks-for-sudo-password-but-local-command-does-not/22559)

<div class="topic-metadata">

**Author:** [@Mike\_Michel](https://forum.ansible.com/u/Mike_Michel)\
**Replies:** 5\
**Last updated:** [September 22, 2016, 7:24am UTC](https://forum.ansible.com/t/ansible-asks-for-sudo-password-but-local-command-does-not/22559 "2016-09-22T07:24:15Z")

</div>

Hi, i am having trouble to execute a command which needs sudo on the remote host. when i execute it directly on the host with sudo there is no ask for password but when using ansible it fails with "sudo: a password is r…

---

## [lookup and default value](https://forum.ansible.com/t/lookup-and-default-value/22511)

<div class="topic-metadata">

**Author:** [@fanvalt](https://forum.ansible.com/u/fanvalt)\
**Replies:** 3\
**Last updated:** [September 22, 2016, 7:20am UTC](https://forum.ansible.com/t/lookup-and-default-value/22511 "2016-09-22T07:20:45Z")

</div>

Hello, Is there a way to set a default value when using the lookup module for a csv file. Case 1: Here is the csv file: OPENHRPORT;;;;;; I would like to set the ‘1’ value if the value in the csv file is not specifie…

---

## [win\_service play fails when run without an optional parameter](https://forum.ansible.com/t/win-service-play-fails-when-run-without-an-optional-parameter/22429)

<div class="topic-metadata">

**Author:** [@dyioulos](https://forum.ansible.com/u/dyioulos)\
**Replies:** 3\
**Last updated:** [September 22, 2016, 7:02am UTC](https://forum.ansible.com/t/win-service-play-fails-when-run-without-an-optional-parameter/22429 "2016-09-22T07:02:43Z")

</div>

All, I’m running version 2.1.1, and have a very simple play to restart a service on my Win2k8 and Win2k12 servers:

---

## [SCVMM and Hyper-V modules](https://forum.ansible.com/t/scvmm-and-hyper-v-modules/22599)

<div class="topic-metadata">

**Author:** [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 6:54am UTC](https://forum.ansible.com/t/scvmm-and-hyper-v-modules/22599 "2016-09-22T06:54:06Z")

</div>

Is there any demand for modules to service Microsoft System Centre Virtual Machine Manager or Hyper-V?

---

## [tomcat is not getting started using ansible](https://forum.ansible.com/t/tomcat-is-not-getting-started-using-ansible/19253)

<div class="topic-metadata">

**Author:** [@Irfan\_Sayed](https://forum.ansible.com/u/Irfan_Sayed)\
**Replies:** 1\
**Last updated:** [September 22, 2016, 4:10am UTC](https://forum.ansible.com/t/tomcat-is-not-getting-started-using-ansible/19253 "2016-09-22T04:10:48Z")

</div>

Hi, I am learning ansible. i have download the standalone tomcat example : https://github.com/ansible/ansible-examples/tree/master/tomcat-standalone. i am able to successfully deploy the tomcat/java and other tasks. h…

---

## [Too long inventory file location causing ansible error.](https://forum.ansible.com/t/too-long-inventory-file-location-causing-ansible-error/22611)

<div class="topic-metadata">

**Author:** [@Jerome\_Lulu](https://forum.ansible.com/u/Jerome_Lulu)\
**Replies:** 0\
**Last updated:** [September 22, 2016, 2:46am UTC](https://forum.ansible.com/t/too-long-inventory-file-location-causing-ansible-error/22611 "2016-09-22T02:46:11Z")

</div>

if the file path of the inventory file is too long, I am getting this error. I am using ansible 2.1.1.0. Is this a bug on these release? ERROR! Unexpected Exception: ‘AnsibleLoader’ object has no attribute ‘get\_single\_d…

---

## [Failed to validate the SSL certificate for deb.nodesource.com:443](https://forum.ansible.com/t/failed-to-validate-the-ssl-certificate-for-deb-nodesource-com-443/22601)

<div class="topic-metadata">

**Author:** [@Yuri\_Kanivetsky](https://forum.ansible.com/u/Yuri_Kanivetsky)\
**Replies:** 2\
**Last updated:** [September 21, 2016, 9:36pm UTC](https://forum.ansible.com/t/failed-to-validate-the-ssl-certificate-for-deb-nodesource-com-443/22601 "2016-09-21T21:36:53Z")

</div>

Hi, For some reason, ansible fails to install nodesource’s apt key on ubuntu/trusty. It seem to worked about a month ago or so (if I’m not mistaken). playbook.yml: hosts: all gather\_facts: no tasks: name: apt-get…

---

## [How to enable SendENV on 1.9.6](https://forum.ansible.com/t/how-to-enable-sendenv-on-1-9-6/22607)

<div class="topic-metadata">

**Author:** [@barrett](https://forum.ansible.com/u/barrett)\
**Replies:** 1\
**Last updated:** [September 21, 2016, 7:33pm UTC](https://forum.ansible.com/t/how-to-enable-sendenv-on-1-9-6/22607 "2016-09-21T19:33:44Z")

</div>

Running: Ansible 1.9.6 I have seen many posts related to SendENV in the context of Locale. But haven’t see it addressed more generally. I have a setup like the below that works fine when used from ssh, but ansible doe…

---

## [Possible to switch credentials mid-playbook?](https://forum.ansible.com/t/possible-to-switch-credentials-mid-playbook/22606)

<div class="topic-metadata">

**Author:** [@Brantley\_West](https://forum.ansible.com/u/Brantley_West)\
**Replies:** 0\
**Last updated:** [September 21, 2016, 7:07pm UTC](https://forum.ansible.com/t/possible-to-switch-credentials-mid-playbook/22606 "2016-09-21T19:07:50Z")

</div>

Hello, Is there a way to instruct ansible to use a different username/password combinations for a tasks or plays within a playbook? I see the remote\_user variable, but do not see an accompanying remote\_pass variable. I …

---

## [Ansilbe read all variable even they do not need for task (perfomance issue with lookup\_plugins)](https://forum.ansible.com/t/ansilbe-read-all-variable-even-they-do-not-need-for-task-perfomance-issue-with-lookup-plugins/22225)

<div class="topic-metadata">

**Author:** [@Artyom\_Aleksandrov](https://forum.ansible.com/u/Artyom_Aleksandrov)\
**Replies:** 9\
**Last updated:** [September 21, 2016, 6:46pm UTC](https://forum.ansible.com/t/ansilbe-read-all-variable-even-they-do-not-need-for-task-perfomance-issue-with-lookup-plugins/22225 "2016-09-21T18:46:06Z")

</div>

Hello, I’m using lookup\_plugin which go to external service and get variables via HTTPS protocol. Several time ago I noticed that playbooks had took more time than before. During investigation I found that my lookup\_pl…

---

## [Shell script does NOT run on target system?](https://forum.ansible.com/t/shell-script-does-not-run-on-target-system/22603)

<div class="topic-metadata">

**Author:** [@ZillaYT](https://forum.ansible.com/u/ZillaYT)\
**Replies:** 3\
**Last updated:** [September 21, 2016, 6:13pm UTC](https://forum.ansible.com/t/shell-script-does-not-run-on-target-system/22603 "2016-09-21T18:13:40Z")

</div>

I have a task that does this \` name: Generate certs using the example.sh script from zip file shell: \> cd “/tmp/{{ sg\_ssl\_dir }}/example-pki-scripts” chmod +x \*.sh ./example.sh pw pw \` Which should generate cert…

---

## [Using command and shell modules properly](https://forum.ansible.com/t/using-command-and-shell-modules-properly/22600)

<div class="topic-metadata">

**Author:** [@willthames](https://forum.ansible.com/u/willthames)\
**Replies:** 1\
**Last updated:** [September 21, 2016, 2:42pm UTC](https://forum.ansible.com/t/using-command-and-shell-modules-properly/22600 "2016-09-21T14:42:43Z")

</div>

As I say in the intro to the post, I have strong opinions on using command and shell properly - most of those opinions are encoded into ansible-lint checks. Would be interested in any feedback, particularly anything tha…

---

## [How to create a nicer pause...](https://forum.ansible.com/t/how-to-create-a-nicer-pause/22578)

<div class="topic-metadata">

**Author:** [@Krist\_van\_Besien](https://forum.ansible.com/u/Krist_van_Besien)\
**Replies:** 4\
**Last updated:** [September 21, 2016, 1:04pm UTC](https://forum.ansible.com/t/how-to-create-a-nicer-pause/22578 "2016-09-21T13:04:07Z")

</div>

Hi all, In one of my playbooks I need to build in a fairly long pause. So I have this task: name: Pause for 20 minutes pause: minutes=20 This works, but has the disadvantage that for 20 minutes nothing appears to h…

---

## [Role dependencies](https://forum.ansible.com/t/role-dependencies/22591)

<div class="topic-metadata">

**Author:** [@Ferdinand\_Svehla](https://forum.ansible.com/u/Ferdinand_Svehla)\
**Replies:** 1\
**Last updated:** [September 21, 2016, 7:42am UTC](https://forum.ansible.com/t/role-dependencies/22591 "2016-09-21T07:42:16Z")

</div>

I am using the roles + site.yml recommended setup. Most, but not all boxes run telegraf (a stats collector), which is defined as an inventory group as a (tagged) role in site.yml. In my Redis role, if the current host …

---

## [Problems with asa\_config](https://forum.ansible.com/t/problems-with-asa-config/22597)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 0\
**Last updated:** [September 20, 2016, 5:22pm UTC](https://forum.ansible.com/t/problems-with-asa-config/22597 "2016-09-20T17:22:56Z")

</div>

I am having problems running the following play: hosts: cil-fw gather\_facts: no connection: local vars\_files: ./cilfu-vars.yml ./cil-vault.yml vars: cli: host: “{{ inventory\_hostname }}” username: “{{ cil\_admin\_…

---

## [when: var is defined deprecated?](https://forum.ansible.com/t/when-var-is-defined-deprecated/22592)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 5:13pm UTC](https://forum.ansible.com/t/when-var-is-defined-deprecated/22592 "2016-09-20T17:13:45Z")

</div>

using ansible 2.1.1.0 running a task with ‘when: users is defined’ works fine for hosts that have that variable. for hosts that dont, the play still runs, but gives a warning that in the future, an undefined variable wi…

---

## [logging in the client](https://forum.ansible.com/t/logging-in-the-client/22420)

<div class="topic-metadata">

**Author:** [@sabarinath\_g](https://forum.ansible.com/u/sabarinath_g)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 4:47pm UTC](https://forum.ansible.com/t/logging-in-the-client/22420 "2016-09-20T16:47:13Z")

</div>

Hi, I wanted to know Does ansible keep record things execute on client by generating any sort of logs in the client …so later i can go back that and see what changes has been made in particular to that host. i believe …

---

## [SSH error on Centos - ansible 1.9.2](https://forum.ansible.com/t/ssh-error-on-centos-ansible-1-9-2/19113)

<div class="topic-metadata">

**Author:** [@Michael\_Bubb](https://forum.ansible.com/u/Michael_Bubb)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 4:37pm UTC](https://forum.ansible.com/t/ssh-error-on-centos-ansible-1-9-2/19113 "2016-09-20T16:37:35Z")

</div>

Hello I recently upgraded ssh and broke my Ansible setup. ssh to the target works using the same creds: ssh -i /home/ansible\_user/.ssh/pk\_ansible\_user\_rsa ansible\_user@apps05.somedomain.com Last login: Tue Aug 25 23:0…

---

## [Need keys for vaulted group vars](https://forum.ansible.com/t/need-keys-for-vaulted-group-vars/22422)

<div class="topic-metadata">

**Author:** [@j.barrett\_Strausser](https://forum.ansible.com/u/j.barrett_Strausser)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:30pm UTC](https://forum.ansible.com/t/need-keys-for-vaulted-group-vars/22422 "2016-09-20T15:30:12Z")

</div>

Running Ansible - 1.9.4 I have a number of group\_vars that are vaulted. I have an inventory file, some of the hosts are in vaulted groups. Others are not. For instance I might have different roles in the Backend that n…

---

## [Using lookup with log\_path in ansible.cfg](https://forum.ansible.com/t/using-lookup-with-log-path-in-ansible-cfg/22435)

<div class="topic-metadata">

**Author:** [@Kevin\_Ying](https://forum.ansible.com/u/Kevin_Ying)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:28pm UTC](https://forum.ansible.com/t/using-lookup-with-log-path-in-ansible-cfg/22435 "2016-09-20T15:28:11Z")

</div>

I’ve seen some examples referring to the use of lookup with log\_path to log output to datestamped logfiles: e.g. log\_path = ~/.ansible/logs/ansible.{{ lookup(‘pipe’, ‘date +%Y%m%d’) }}.log I’ve been trying various per…

---

## [UFW module issues](https://forum.ansible.com/t/ufw-module-issues/22434)

<div class="topic-metadata">

**Author:** [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:24pm UTC](https://forum.ansible.com/t/ufw-module-issues/22434 "2016-09-20T15:24:32Z")

</div>

I’m running into a confusing issue with the UFW module. I’ve been using the same role to configure my rules for a while without any problems, but recently I pulled the latest updates for stable-2.1 and now I’m getting th…

---

## [openstack restful api](https://forum.ansible.com/t/openstack-restful-api/22436)

<div class="topic-metadata">

**Author:** [@nandareddy578](https://forum.ansible.com/u/nandareddy578)\
**Replies:** 1\
**Last updated:** [September 20, 2016, 3:22pm UTC](https://forum.ansible.com/t/openstack-restful-api/22436 "2016-09-20T15:22:05Z")

</div>

Hello All, Is there any way we can use restful api’s instead of connecting using ssh to target machine? I’ve seen we can connect to local machine using local connection(connection: local). In the same way is there any m…

---

## [loops, file globs, ssh\_keys...](https://forum.ansible.com/t/loops-file-globs-ssh-keys/22585)

<div class="topic-metadata">

**Author:** [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 10:06am UTC](https://forum.ansible.com/t/loops-file-globs-ssh-keys/22585 "2016-09-20T10:06:46Z")

</div>

looking on google, this seems to come up a lot. have users. each user has N ssh keys. sometimes, one of the users keys is revoked. for example, a crashed cellphone sent in for repair. we keep keys like this \` . ├── …

---

## [how to compare two files and get files and get the name differenced file name in ansible](https://forum.ansible.com/t/how-to-compare-two-files-and-get-files-and-get-the-name-differenced-file-name-in-ansible/22588)

<div class="topic-metadata">

**Author:** [@Chichu\_sam](https://forum.ansible.com/u/Chichu_sam)\
**Replies:** 0\
**Last updated:** [September 20, 2016, 4:24am UTC](https://forum.ansible.com/t/how-to-compare-two-files-and-get-files-and-get-the-name-differenced-file-name-in-ansible/22588 "2016-09-20T04:24:28Z")

</div>

HI Fiends, Please help on this, Folder1 :Always one file cat file2 SAM:26 Folder2 : two files cat file2 RAM:26 cat file 3 SAM:26 Here first folder folder will have always have one file and it is always standard…

---

## [Unable to insert sshkey with nxos\_command in Ansible 2.1](https://forum.ansible.com/t/unable-to-insert-sshkey-with-nxos-command-in-ansible-2-1/22579)

<div class="topic-metadata">

**Author:** [@Steven\_Carter](https://forum.ansible.com/u/Steven_Carter)\
**Replies:** 2\
**Last updated:** [September 20, 2016, 1:46am UTC](https://forum.ansible.com/t/unable-to-insert-sshkey-with-nxos-command-in-ansible-2-1/22579 "2016-09-20T01:46:05Z")

</div>

I have the following two plays to create users with ssh keys in NXOS: name: Create User nxos\_config: lines: username “{{ item }}” role network-admin provider: “{{ cli }}” with\_items: “{{ cil\_network\_admins }}” …

---

## [ansible api 2 usage](https://forum.ansible.com/t/ansible-api-2-usage/22586)

<div class="topic-metadata">

**Author:** [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Replies:** 1\
**Last updated:** [September 19, 2016, 5:48pm UTC](https://forum.ansible.com/t/ansible-api-2-usage/22586 "2016-09-19T17:48:16Z")

</div>

Hi all, I am having trouble about using the ansible 2 api. Below is my code:

---

## [Ansible Core 2.2 is frozen!](https://forum.ansible.com/t/ansible-core-2-2-is-frozen/22587)

<div class="topic-metadata">

**Author:** [@jmckerr](https://forum.ansible.com/u/jmckerr)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 4:07pm UTC](https://forum.ansible.com/t/ansible-core-2-2-is-frozen/22587 "2016-09-19T16:07:25Z")

</div>

Ansible Core and Modules are totally feature frozen for testing before we release our first 2.2 Release Candidate on 03 OCTOBER 2016. ONLY bug-fixes will be accepted for inclusion for 2.2 Release Candidate 1.

---

## [ERROR! Unexpected Exception: 'AnsibleLoader' object has no attribute 'get\_single\_data'](https://forum.ansible.com/t/error-unexpected-exception-ansibleloader-object-has-no-attribute-get-single-data/22570)

<div class="topic-metadata">

**Author:** [@Vladimir\_Pevzner](https://forum.ansible.com/u/Vladimir_Pevzner)\
**Replies:** 3\
**Last updated:** [September 19, 2016, 3:55pm UTC](https://forum.ansible.com/t/error-unexpected-exception-ansibleloader-object-has-no-attribute-get-single-data/22570 "2016-09-19T15:55:03Z")

</div>

Hello, I installed 2.1.1.0 from a tarball. Installation went smooth but when attempts to run brings the following message: ERROR! Unexpected Exception: ‘AnsibleLoader’ object has no attribute ‘get\_single\_data’ Please …

---

## [ansible-openstack setup](https://forum.ansible.com/t/ansible-openstack-setup/22583)

<div class="topic-metadata">

**Author:** [@pratik\_dave](https://forum.ansible.com/u/pratik_dave)\
**Replies:** 0\
**Last updated:** [September 19, 2016, 10:06am UTC](https://forum.ansible.com/t/ansible-openstack-setup/22583 "2016-09-19T10:06:28Z")

</div>

Hello Everyone, We are working on a case where we need to setup ansible deployment host outside of openstack environment. Ansible hosts will be openstack instances in tenants; now we do not have enough floating ips and…

---

## [Ansible cannot find files after su to root](https://forum.ansible.com/t/ansible-cannot-find-files-after-su-to-root/22558)

<div class="topic-metadata">

**Author:** [@Charles\_Moga](https://forum.ansible.com/u/Charles_Moga)\
**Replies:** 6\
**Last updated:** [September 19, 2016, 9:45am UTC](https://forum.ansible.com/t/ansible-cannot-find-files-after-su-to-root/22558 "2016-09-19T09:45:44Z")

</div>

Hello, I hope someone can answer this. I have a bunch of commands (shell scripts ) in a specific directory I need to run as root user. So I do: name: Becoming root command: sudo su - name: Changing directory com…

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

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