# Archives

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

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

**Page:** 482

---

## [Run task once for playbook, not per host](https://forum.ansible.com/t/run-task-once-for-playbook-not-per-host/24669)

<div class="topic-metadata">

**Author:** [@user63](https://forum.ansible.com/u/user63)\
**Replies:** 2\
**Last updated:** [June 7, 2017, 3:15pm UTC](https://forum.ansible.com/t/run-task-once-for-playbook-not-per-host/24669 "2017-06-07T15:15:57Z")

</div>

Hi, I’m implementing client - server scenario deployment for some application and I have following question: Is it possible to run tasks only once per playbook execution, not per host run. Explanation: I’m doing both…

---

## [Ansible 2.3.1.0 sshpass requirement](https://forum.ansible.com/t/ansible-2-3-1-0-sshpass-requirement/24663)

<div class="topic-metadata">

**Author:** [@Peter\_Fiddes](https://forum.ansible.com/u/Peter_Fiddes)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 2:54pm UTC](https://forum.ansible.com/t/ansible-2-3-1-0-sshpass-requirement/24663 "2017-06-07T14:54:15Z")

</div>

Does anyone have any background information on why in ansible 2.3.1.0, the sshpass program has become a requirement? I got the following error while running a playbook thats worked up until immediately after I upgraded: …

---

## [unable to update user password in remote host](https://forum.ansible.com/t/unable-to-update-user-password-in-remote-host/24658)

<div class="topic-metadata">

**Author:** [@Atindra\_Sarma](https://forum.ansible.com/u/Atindra_Sarma)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 2:46pm UTC](https://forum.ansible.com/t/unable-to-update-user-password-in-remote-host/24658 "2017-06-07T14:46:11Z")

</div>

\`

---

## [update\_cache option with package module](https://forum.ansible.com/t/update-cache-option-with-package-module/24664)

<div class="topic-metadata">

**Author:** [@joshua.newlin](https://forum.ansible.com/u/joshua.newlin)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 2:30pm UTC](https://forum.ansible.com/t/update-cache-option-with-package-module/24664 "2017-06-07T14:30:58Z")

</div>

I swapped all instances of yum to package recently, but there is no way to update yum cache by calling package as there was with yum. Was wondering how I would go about this?

---

## [Execute task only once in playbook (not per host)](https://forum.ansible.com/t/execute-task-only-once-in-playbook-not-per-host/24667)

<div class="topic-metadata">

**Author:** [@user63](https://forum.ansible.com/u/user63)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 2:07pm UTC](https://forum.ansible.com/t/execute-task-only-once-in-playbook-not-per-host/24667 "2017-06-07T14:07:35Z")

</div>

Hi, Currently implementing following scenario in ansible: Auto generation of configurations of Bacula backup system, in single playbook I generate both client and server configs (server configs generated by delegete\_to…

---

## [Variables from another server](https://forum.ansible.com/t/variables-from-another-server/21815)

<div class="topic-metadata">

**Author:** [@Anthony\_Sheetz](https://forum.ansible.com/u/Anthony_Sheetz)\
**Replies:** 11\
**Last updated:** [June 7, 2017, 1:37pm UTC](https://forum.ansible.com/t/variables-from-another-server/21815 "2017-06-07T13:37:49Z")

</div>

I need to access information discovered from another server for a template on the server I’m configuring. We are using AWS, and I’m of course using ec2.py to discover my hosts. I first configure a utility server, and th…

---

## [Module development for Juniper Contrail API configuration](https://forum.ansible.com/t/module-development-for-juniper-contrail-api-configuration/24668)

<div class="topic-metadata">

**Author:** [@chbndrhnns](https://forum.ansible.com/u/chbndrhnns)\
**Replies:** 0\
**Last updated:** [June 7, 2017, 9:22am UTC](https://forum.ansible.com/t/module-development-for-juniper-contrail-api-configuration/24668 "2017-06-07T09:22:19Z")

</div>

Hey there, Does anyone know about efforts to develop such a module? I am not referring to the available projects to deploy Contrail via Ansible like \[1\] If not, is anyone interested? I am considering an approach to us…

---

## [Lambda "pull" support](https://forum.ansible.com/t/lambda-pull-support/24662)

<div class="topic-metadata">

**Author:** [@jhammerman](https://forum.ansible.com/u/jhammerman)\
**Replies:** 0\
**Last updated:** [June 6, 2017, 2:57pm UTC](https://forum.ansible.com/t/lambda-pull-support/24662 "2017-06-06T14:57:47Z")

</div>

Hi Ansible Development email distribution list, We have an organizational need to trigger Lambda from SNS messages which the function is subscribed to. Accordingly we have used the deprecated version of the Ansible lamb…

---

## [How to prepare Ansible inventory, playbook and configuration file used by Ansible module using Ansible/Jinja2?](https://forum.ansible.com/t/how-to-prepare-ansible-inventory-playbook-and-configuration-file-used-by-ansible-module-using-ansible-jinja2/24661)

<div class="topic-metadata">

**Author:** [@Martin](https://forum.ansible.com/u/Martin)\
**Replies:** 0\
**Last updated:** [June 6, 2017, 2:31pm UTC](https://forum.ansible.com/t/how-to-prepare-ansible-inventory-playbook-and-configuration-file-used-by-ansible-module-using-ansible-jinja2/24661 "2017-06-06T14:31:49Z")

</div>

Hi, I have a plain-text file “routers” in versioning system which contains host-names separated by newlines: $ cat routers r1 r2 r3 $ I also have routers configuration templates in versioning system as a plain-tex…

---

## [Ansible VMWare ESXi Guest VM launch using template](https://forum.ansible.com/t/ansible-vmware-esxi-guest-vm-launch-using-template/24659)

<div class="topic-metadata">

**Author:** [@shiva\_jawanjal](https://forum.ansible.com/u/shiva_jawanjal)\
**Replies:** 1\
**Last updated:** [June 6, 2017, 2:24pm UTC](https://forum.ansible.com/t/ansible-vmware-esxi-guest-vm-launch-using-template/24659 "2017-06-06T14:24:36Z")

</div>

First I will admit that I am not an exprt on VMWare ESXi. And facing issue while automating launch of preconfigured servers using Ansible. I want to launch a VM using template in VMWare ESXi server 5. I have created a t…

---

## [VCA\_vapp BUG/ERROR](https://forum.ansible.com/t/vca-vapp-bug-error/24656)

<div class="topic-metadata">

**Author:** [@hector.marina](https://forum.ansible.com/u/hector.marina)\
**Replies:** 0\
**Last updated:** [June 6, 2017, 6:51am UTC](https://forum.ansible.com/t/vca-vapp-bug-error/24656 "2017-06-06T06:51:37Z")

</div>

ISSUE TYPE Bug Report COMPONENT NAME vca\_vapp ANSIBLE VERSION ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016,…

---

## [Ansible falling back to SSL, have keberos and all dependencies](https://forum.ansible.com/t/ansible-falling-back-to-ssl-have-keberos-and-all-dependencies/24648)

<div class="topic-metadata">

**Author:** [@Jim\_Heald](https://forum.ansible.com/u/Jim_Heald)\
**Replies:** 1\
**Last updated:** [June 6, 2017, 5:40am UTC](https://forum.ansible.com/t/ansible-falling-back-to-ssl-have-keberos-and-all-dependencies/24648 "2017-06-06T05:40:29Z")

</div>

So I am running Ansible on Fedora 25 and this is the issue I’m facing: I installed all dependencies: dnf install python-devel krb5-devel krb5-libs krb5-workstation I installed the keberos module: pip install pywinrm\[ke…

---

## [Playbook error "list object has no attribute" (vars, lists, dictionaries)](https://forum.ansible.com/t/playbook-error-list-object-has-no-attribute-vars-lists-dictionaries/24654)

<div class="topic-metadata">

**Author:** [@Rob\_Dumas](https://forum.ansible.com/u/Rob_Dumas)\
**Replies:** 3\
**Last updated:** [June 6, 2017, 1:25am UTC](https://forum.ansible.com/t/playbook-error-list-object-has-no-attribute-vars-lists-dictionaries/24654 "2017-06-06T01:25:59Z")

</div>

I’m trying to set up a few users on a Linux box using Ansible and I keep running into a weird error. First, here’s the playbook: \`

---

## [Privilege escalation timeout problem](https://forum.ansible.com/t/privilege-escalation-timeout-problem/24635)

<div class="topic-metadata">

**Author:** [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Replies:** 1\
**Last updated:** [June 5, 2017, 10:54pm UTC](https://forum.ansible.com/t/privilege-escalation-timeout-problem/24635 "2017-06-05T22:54:48Z")

</div>

It’s been a bit since I’ve used ansible, but I’m pretty sure I’ve not completely lost it. I’m working on getting a simple privilege escalation command to ping properly. All my previous work has been communicating to host…

---

## [Importing Between Modules](https://forum.ansible.com/t/importing-between-modules/24653)

<div class="topic-metadata">

**Author:** [@John\_Burwell](https://forum.ansible.com/u/John_Burwell)\
**Replies:** 1\
**Last updated:** [June 5, 2017, 9:24pm UTC](https://forum.ansible.com/t/importing-between-modules/24653 "2017-06-05T21:24:46Z")

</div>

Hello, I am creating a module for yaourt, a front end for the pacman package manager wrapper \[1\]. Since yaourt proxies all the syntax of pacman, I refactored the pacman module to expose all operations in a class, Pacma…

---

## [Djangocms via ansible and vagrant](https://forum.ansible.com/t/djangocms-via-ansible-and-vagrant/24652)

<div class="topic-metadata">

**Author:** [@Andrej\_Friesen](https://forum.ansible.com/u/Andrej_Friesen)\
**Replies:** 0\
**Last updated:** [June 5, 2017, 6:58pm UTC](https://forum.ansible.com/t/djangocms-via-ansible-and-vagrant/24652 "2017-06-05T18:58:37Z")

</div>

Hi, iam trying to setup a djangocms dev environment with ansible and vagrant. But if iam running this Playbook: \` name: Setup Virtualenv pip: virtualenv: “{{ virtualenv\_path }}” requirements: “{{ virtualenv\_path …

---

## [Djangocms dev environment with ansible and vagrant](https://forum.ansible.com/t/djangocms-dev-environment-with-ansible-and-vagrant/24651)

<div class="topic-metadata">

**Author:** [@Andrej\_Friesen](https://forum.ansible.com/u/Andrej_Friesen)\
**Replies:** 0\
**Last updated:** [June 5, 2017, 6:46pm UTC](https://forum.ansible.com/t/djangocms-dev-environment-with-ansible-and-vagrant/24651 "2017-06-05T18:46:42Z")

</div>

Hi, i am trying to setup an djangocms dev environment. I am learning vagrant and ansible as well. I get an error by trying to install djangocms with this play: \` name: Setup Virtualenv pip: virtualenv: “{{ virtual…

---

## [Req. help w/ problem: cs\_portforward causing error.](https://forum.ansible.com/t/req-help-w-problem-cs-portforward-causing-error/24650)

<div class="topic-metadata">

**Author:** [@David\_Rose](https://forum.ansible.com/u/David_Rose)\
**Replies:** 1\
**Last updated:** [June 5, 2017, 6:25pm UTC](https://forum.ansible.com/t/req-help-w-problem-cs-portforward-causing-error/24650 "2017-06-05T18:25:45Z")

</div>

Hello all I am trying to get started with CloudStack provisioning, and am running into a problem. I have a task defined which should do 3 actions: Instantiate 2 VMs (linsrv04 & linsrv05) Open ports in the firewall Cre…

---

## [CentOS 7 become\_method: su not working?](https://forum.ansible.com/t/centos-7-become-method-su-not-working/24649)

<div class="topic-metadata">

**Author:** [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Replies:** 0\
**Last updated:** [June 5, 2017, 5:51pm UTC](https://forum.ansible.com/t/centos-7-become-method-su-not-working/24649 "2017-06-05T17:51:35Z")

</div>

I’m giving myself a migraine trying to figure out why this isn’t working. Let’s say I have a simple playbook:

---

## [OnPrem Automation - Ip Addressing & Hostnames](https://forum.ansible.com/t/onprem-automation-ip-addressing-hostnames/24647)

<div class="topic-metadata">

**Author:** [@Paul\_Farrington](https://forum.ansible.com/u/Paul_Farrington)\
**Replies:** 0\
**Last updated:** [June 5, 2017, 3:18pm UTC](https://forum.ansible.com/t/onprem-automation-ip-addressing-hostnames/24647 "2017-06-05T15:18:09Z")

</div>

Hi Everyone, I am new to Ansible and i am hoping to get some advice on deploying on-prem servers in VMware. I am trying to automate the deployment of web servers from a VMware template, installation of IIS, load balanc…

---

## [How to encode a str on a AnsibleUnicode format?](https://forum.ansible.com/t/how-to-encode-a-str-on-a-ansibleunicode-format/24646)

<div class="topic-metadata">

**Author:** [@Juan\_Manuel\_Parrilla](https://forum.ansible.com/u/Juan_Manuel_Parrilla)\
**Replies:** 1\
**Last updated:** [June 5, 2017, 1:10pm UTC](https://forum.ansible.com/t/how-to-encode-a-str-on-a-ansibleunicode-format/24646 "2017-06-05T13:10:16Z")

</div>

Hi there, I’m trying to modify the assert module, but I am having some troubles. The error says that the entry variables must be unicode, but encoding it still do not work. I am trying to extend the “that” array with …

---

## [using rax\_cbs to test a volume](https://forum.ansible.com/t/using-rax-cbs-to-test-a-volume/24645)

<div class="topic-metadata">

**Author:** [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Replies:** 0\
**Last updated:** [June 5, 2017, 12:46pm UTC](https://forum.ansible.com/t/using-rax-cbs-to-test-a-volume/24645 "2017-06-05T12:46:11Z")

</div>

Hi, Folks, I’d like to be able to test for a volume by name before trying to create it. If the name exists, the playbook needs to fail, so that it can be called with a new name. Nothing was obvious in the documentation…

---

## [making a single documentation page](https://forum.ansible.com/t/making-a-single-documentation-page/24641)

<div class="topic-metadata">

**Author:** [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Replies:** 0\
**Last updated:** [June 3, 2017, 8:16am UTC](https://forum.ansible.com/t/making-a-single-documentation-page/24641 "2017-06-03T08:16:08Z")

</div>

I just noticed this https://github.com/ansible/ansible/pull/25313 got merged in latest devel version (2.4) and thought others might find it useful when In essence you can just rebuild a single page of the documentation …

---

## [Migrate a tool from Salt to Ansible, is it possible and what can be done with Ansible ?](https://forum.ansible.com/t/migrate-a-tool-from-salt-to-ansible-is-it-possible-and-what-can-be-done-with-ansible/24592)

<div class="topic-metadata">

**Author:** [@oxedions](https://forum.ansible.com/u/oxedions)\
**Replies:** 2\
**Last updated:** [June 3, 2017, 6:57am UTC](https://forum.ansible.com/t/migrate-a-tool-from-salt-to-ansible-is-it-possible-and-what-can-be-done-with-ansible/24592 "2017-06-03T06:57:36Z")

</div>

Hello Ansible users, I made a tool based on Salt Stack, a deployment tool like Ansible. This tool, Banquise, is made to deploy groups of serveurs (clusters, HPC clusters) and groups of workstations. https://github.com…

---

## [Retrieving facts in 2.4](https://forum.ansible.com/t/retrieving-facts-in-2-4/24639)

<div class="topic-metadata">

**Author:** [@bob](https://forum.ansible.com/u/bob)\
**Replies:** 2\
**Last updated:** [June 2, 2017, 11:02pm UTC](https://forum.ansible.com/t/retrieving-facts-in-2-4/24639 "2017-06-02T23:02:09Z")

</div>

Looks like a huge refactor of Facts and Fact gather took place in 2.4? commit 45a9f967749ec68e2077fe1d1d32dd37660ab376 How do I get Facts inside my module after the refactoring? I used to use Facts(module) but that’s …

---

## [lineinfile anywhere match](https://forum.ansible.com/t/lineinfile-anywhere-match/24637)

<div class="topic-metadata">

**Author:** [@Anfield](https://forum.ansible.com/u/Anfield)\
**Replies:** 5\
**Last updated:** [June 2, 2017, 5:13pm UTC](https://forum.ansible.com/t/lineinfile-anywhere-match/24637 "2017-06-02T17:13:14Z")

</div>

How do I do an anywhere match for a string and replace with some text? The below playbook doesnt work. But just looking for example to search for part of green - reen and replace this with jabba. How do I do that? Than…

---

## [How to keep templated files around following a run in check mode?](https://forum.ansible.com/t/how-to-keep-templated-files-around-following-a-run-in-check-mode/22129)

<div class="topic-metadata">

**Author:** [@Adam\_DeConinck](https://forum.ansible.com/u/Adam_DeConinck)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 3:46pm UTC](https://forum.ansible.com/t/how-to-keep-templated-files-around-following-a-run-in-check-mode/22129 "2017-06-02T15:46:04Z")

</div>

Hi all, The template module supports the --check and --diff options so you can see what changes would be made to a file without actually making the live change. For example, if I use a simple template to insert “hello w…

---

## [How to use extra ansible modules?](https://forum.ansible.com/t/how-to-use-extra-ansible-modules/23904)

<div class="topic-metadata">

**Author:** [@Chang\_Zhi](https://forum.ansible.com/u/Chang_Zhi)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 3:43pm UTC](https://forum.ansible.com/t/how-to-use-extra-ansible-modules/23904 "2017-06-02T15:43:55Z")

</div>

hi, I’m a new man to using ansible. I have some simple questions about how to use ansible modules. I want to use the openvswitch module1. What commands should I execute ? Should I use " ansible " or “ansible-playbook” ? …

---

## [role parameter in combination with with\_items](https://forum.ansible.com/t/role-parameter-in-combination-with-with-items/24633)

<div class="topic-metadata">

**Author:** [@sebastien.barthelemy](https://forum.ansible.com/u/sebastien.barthelemy)\
**Replies:** 3\
**Last updated:** [June 2, 2017, 3:20pm UTC](https://forum.ansible.com/t/role-parameter-in-combination-with-with-items/24633 "2017-06-02T15:20:19Z")

</div>

Hello, I would like to apply the same role several times to a host, with different parameters. Sadly, as can be seen in the small example below, using with\_items does not work: the role is applied several times, but t…

---

## [Need help for ansible ping](https://forum.ansible.com/t/need-help-for-ansible-ping/24636)

<div class="topic-metadata">

**Author:** [@xiao\_yu](https://forum.ansible.com/u/xiao_yu)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 3:01pm UTC](https://forum.ansible.com/t/need-help-for-ansible-ping/24636 "2017-06-02T15:01:11Z")

</div>

Please tell the steps to solve the issues. When I perform sudo ansible -m ping all , I have the following issues: 192.168.1.2 | FAILED! =\> { "failed": true, "msg": "winrm send\_input failed" } 192.168.1.1…

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

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