# Ansible Project

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

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

**Page:** 269

---

## [lxc connection plugin - sudo first?](https://forum.ansible.com/t/lxc-connection-plugin-sudo-first/27215)

<div class="topic-metadata">

**Author:** [@Richard\_Hector](https://forum.ansible.com/u/Richard_Hector)\
**Replies:** 4\
**Last updated:** [April 10, 2018, 10:46am UTC](https://forum.ansible.com/t/lxc-connection-plugin-sudo-first/27215 "2018-04-10T10:46:41Z")

</div>

Hi all, I'm trying to use the lxc connection plugin, but it says that my container isn't running. Presumably that's because ansible isn't running as root. Is there a way to tell it to sudo before connecting? I'm awar…

---

## [Steps for ssh forwarding?](https://forum.ansible.com/t/steps-for-ssh-forwarding/17422)

<div class="topic-metadata">

**Author:** [@Ananda\_Debnath](https://forum.ansible.com/u/Ananda_Debnath)\
**Replies:** 15\
**Last updated:** [April 10, 2018, 4:09am UTC](https://forum.ansible.com/t/steps-for-ssh-forwarding/17422 "2018-04-10T04:09:11Z")

</div>

Hi Ansiblers, I have an Ansible controller machine that contains my playbooks, custom libraries, key files etc. I have an inventory of host machines and CentOS VM’s that run on these host machines. The VMs aren’t direc…

---

## [Ansible Jinja2 filter error Rhel 7.4](https://forum.ansible.com/t/ansible-jinja2-filter-error-rhel-7-4/27226)

<div class="topic-metadata">

**Author:** [@smitconsultant2017](https://forum.ansible.com/u/smitconsultant2017)\
**Replies:** 3\
**Last updated:** [April 9, 2018, 10:26pm UTC](https://forum.ansible.com/t/ansible-jinja2-filter-error-rhel-7-4/27226 "2018-04-09T22:26:34Z")

</div>

Hi I am trying to run below playbook to find the server (openstack host), on which vm will be running using jinja2 filter but getting error no test named ‘equalto’. After googling found some ppl suggested upgrade jinja2…

---

## [Ansible user privilege](https://forum.ansible.com/t/ansible-user-privilege/27211)

<div class="topic-metadata">

**Author:** [@Quang\_Truong](https://forum.ansible.com/u/Quang_Truong)\
**Replies:** 2\
**Last updated:** [April 9, 2018, 9:01pm UTC](https://forum.ansible.com/t/ansible-user-privilege/27211 "2018-04-09T21:01:16Z")

</div>

Dear all, I’m new to ansible and system admin on linux, I have a problem that I don’t understand what happen behind the scene. Here is my scenario: I create a kvm (machine B) on my host machine, this is also an ansib…

---

## [Ansible and Packer](https://forum.ansible.com/t/ansible-and-packer/27204)

<div class="topic-metadata">

**Author:** [@Saurabh](https://forum.ansible.com/u/Saurabh)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 7:00pm UTC](https://forum.ansible.com/t/ansible-and-packer/27204 "2018-04-09T19:00:16Z")

</div>

Hi Team, How can we call Packer from Ansible.( It’s Same way we call Docker\_Container from Ansible ) Ansible → Packer → Docker ( In Docker Image Configuration also will be done by Ansible ) Any Solutions for this Re…

---

## [Ansible 2.5 with ansible-hpe-cw7 module issue](https://forum.ansible.com/t/ansible-2-5-with-ansible-hpe-cw7-module-issue/27203)

<div class="topic-metadata">

**Author:** [@EDDY\_BEN-KAISSA](https://forum.ansible.com/u/EDDY_BEN-KAISSA)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 6:06pm UTC](https://forum.ansible.com/t/ansible-2-5-with-ansible-hpe-cw7-module-issue/27203 "2018-04-09T18:06:59Z")

</div>

Hi everyone, I’ve an issue with the hpe module comware 7. I’m trying to use it to establish netconf connection with equipments but unfortunately I obtained error message : fatal: \[LAB\]: UNREACHABLE! =\> { “changed”: fa…

---

## [ansible handling stdin input](https://forum.ansible.com/t/ansible-handling-stdin-input/27225)

<div class="topic-metadata">

**Author:** [@Benny\_Kusman](https://forum.ansible.com/u/Benny_Kusman)\
**Replies:** 2\
**Last updated:** [April 9, 2018, 1:32pm UTC](https://forum.ansible.com/t/ansible-handling-stdin-input/27225 "2018-04-09T13:32:02Z")

</div>

Hi Hopefully someone has encountered and resolved this issue. supposedly my playbook: - main: execute script shell: “/home/settingip” when executing the program, it will run and require stdin/keyboard input, such as…

---

## [MySQL install with ansible](https://forum.ansible.com/t/mysql-install-with-ansible/27223)

<div class="topic-metadata">

**Author:** [@Nirmalya\_Paul](https://forum.ansible.com/u/Nirmalya_Paul)\
**Replies:** 0\
**Last updated:** [April 9, 2018, 7:38am UTC](https://forum.ansible.com/t/mysql-install-with-ansible/27223 "2018-04-09T07:38:54Z")

</div>

hello all, I need a help. I need to install mysql using Ansible on CentOs. Can u please show me whole process to do it .

---

## [Privilege escalation not working](https://forum.ansible.com/t/privilege-escalation-not-working/27219)

<div class="topic-metadata">

**Author:** [@Kaushik\_Gosar](https://forum.ansible.com/u/Kaushik_Gosar)\
**Replies:** 3\
**Last updated:** [April 9, 2018, 5:23am UTC](https://forum.ansible.com/t/privilege-escalation-not-working/27219 "2018-04-09T05:23:08Z")

</div>

Hi, I am trying to execute an Ad-Hoc command which requires sudo privileges on a remote machine. Below is the command and the error it throws up kaushik@Machine\_1:~$ ansible all -a “cat /etc/shadow” -u kaushik --ask-b…

---

## [Boto(ec2) documentation confusing, ec2\_vpc\_net\_facts](https://forum.ansible.com/t/boto-ec2-documentation-confusing-ec2-vpc-net-facts/20751)

<div class="topic-metadata">

**Author:** [@viper233](https://forum.ansible.com/u/viper233)\
**Replies:** 1\
**Last updated:** [April 9, 2018, 12:37am UTC](https://forum.ansible.com/t/boto-ec2-documentation-confusing-ec2-vpc-net-facts/20751 "2018-04-09T00:37:11Z")

</div>

I spent some time trying to use this module and had trouble finding documentation for the filters to pass in. E.g isDefault is actually is\_default, vpc\_id, id is actually vpc-d, and even though most of the documentation …

---

## [How to load variables for a tagged role?](https://forum.ansible.com/t/how-to-load-variables-for-a-tagged-role/27213)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 2\
**Last updated:** [April 8, 2018, 8:09pm UTC](https://forum.ansible.com/t/how-to-load-variables-for-a-tagged-role/27213 "2018-04-08T20:09:22Z")

</div>

I have a large role, which I will break down into separate roles eventually. For the moment, I am trying to use tags to selectively run bits of it, tagged e.g. “server”, “portal” etc. The role is called from this playb…

---

## [Find module results not returning as expected](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27220)

<div class="topic-metadata">

**Author:** [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Replies:** 0\
**Last updated:** [April 8, 2018, 7:58pm UTC](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27220 "2018-04-08T19:58:50Z")

</div>

Using the find module to find unknown files in a given directory and register the results as a variable to be looped through later on. The debug of the registered var shows a full on array of all kinds of attributes …

---

## [Find module results not returning as expected](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27216)

<div class="topic-metadata">

**Author:** [@flowerysong1](https://forum.ansible.com/u/flowerysong1)\
**Replies:** 0\
**Last updated:** [April 7, 2018, 1:14pm UTC](https://forum.ansible.com/t/find-module-results-not-returning-as-expected/27216 "2018-04-07T13:14:12Z")

</div>

If you want to output a message use the debug module, not “command: echo”. \` name: echo files debug: msg: “{{ item.path | basename }}” loop: “{{ files\_found.files }}” \` \` TASK \[echo files\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Is it possible to tag an ENI in ansible?](https://forum.ansible.com/t/is-it-possible-to-tag-an-eni-in-ansible/27212)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [April 7, 2018, 3:55am UTC](https://forum.ansible.com/t/is-it-possible-to-tag-an-eni-in-ansible/27212 "2018-04-07T03:55:20Z")

</div>

Not so much a question as a comment. I would like to tag the ENIs I create with Ansible. ENI’s certainly support tags, but the ec2\_eni module doesn’t have a “tags” attribute. I was able to tag the interfaces using the…

---

## [Backing up files from target to controller node.](https://forum.ansible.com/t/backing-up-files-from-target-to-controller-node/27206)

<div class="topic-metadata">

**Author:** [@Julian\_Santander](https://forum.ansible.com/u/Julian_Santander)\
**Replies:** 3\
**Last updated:** [April 6, 2018, 11:05pm UTC](https://forum.ansible.com/t/backing-up-files-from-target-to-controller-node/27206 "2018-04-06T23:05:35Z")

</div>

Hello, I hope someone could offer some guidance on how to solve a scenario I’m trying to automate. The objective is to obtain a back-up of a directory in the target machine (managed) and needs to be saved to the contro…

---

## [Understanding lookup task context](https://forum.ansible.com/t/understanding-lookup-task-context/27207)

<div class="topic-metadata">

**Author:** [@Lihu\_Ber](https://forum.ansible.com/u/Lihu_Ber)\
**Replies:** 3\
**Last updated:** [April 6, 2018, 7:29pm UTC](https://forum.ansible.com/t/understanding-lookup-task-context/27207 "2018-04-06T19:29:24Z")

</div>

I noticed odd behavior with Ansible lookups a while back and, thinking it was a bug, reported it here. Essentially, when I defined a lookup in host\_vars, and referenced it in different ways from the same role, the lookup…

---

## [1 server suddenly slow](https://forum.ansible.com/t/1-server-suddenly-slow/27210)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 0\
**Last updated:** [April 6, 2018, 3:58pm UTC](https://forum.ansible.com/t/1-server-suddenly-slow/27210 "2018-04-06T15:58:37Z")

</div>

Just wondering what I can look at for a slow server. It used to be just as fast as the others, but now it takes 3x as long when running Ansible playbooks against it (or even just gathering facts). It still works, just sl…

---

## [target uses selinux but python bindings (libselinux-python) aren't installed!](https://forum.ansible.com/t/target-uses-selinux-but-python-bindings-libselinux-python-arent-installed/27208)

<div class="topic-metadata">

**Author:** [@TT\_KKk](https://forum.ansible.com/u/TT_KKk)\
**Replies:** 1\
**Last updated:** [April 6, 2018, 2:27pm UTC](https://forum.ansible.com/t/target-uses-selinux-but-python-bindings-libselinux-python-arent-installed/27208 "2018-04-06T14:27:07Z")

</div>

I could install selinux-python on my host

---

## [Intermittent failures when using easy\_install](https://forum.ansible.com/t/intermittent-failures-when-using-easy-install/27202)

<div class="topic-metadata">

**Author:** [@SurferL](https://forum.ansible.com/u/SurferL)\
**Replies:** 1\
**Last updated:** [April 6, 2018, 2:11pm UTC](https://forum.ansible.com/t/intermittent-failures-when-using-easy-install/27202 "2018-04-06T14:11:42Z")

</div>

Running Ansible 2.4.1. So sometimes running my task works, and other times it doesn’t and I don’t understand why this is happening… The task is: name: mac | Install global python dependencies easy\_install: name: “{…

---

## [Regarding site.yml](https://forum.ansible.com/t/regarding-site-yml/27201)

<div class="topic-metadata">

**Author:** [@Nirmalya\_Paul](https://forum.ansible.com/u/Nirmalya_Paul)\
**Replies:** 6\
**Last updated:** [April 6, 2018, 1:20pm UTC](https://forum.ansible.com/t/regarding-site-yml/27201 "2018-04-06T13:20:47Z")

</div>

hello all I am not able to run -s site.yml… error showing that -s site.yml could not found. can you please tell me why its showing and how i can solve the issue ?

---

## [ec2.py runs, returns empty list - on ONE account](https://forum.ansible.com/t/ec2-py-runs-returns-empty-list-on-one-account/27205)

<div class="topic-metadata">

**Author:** [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Replies:** 0\
**Last updated:** [April 6, 2018, 10:34am UTC](https://forum.ansible.com/t/ec2-py-runs-returns-empty-list-on-one-account/27205 "2018-04-06T10:34:46Z")

</div>

If I run ec2.py against any of four different AWS accounts, it returns a list of instances etc. On one AWS account, it returns an empty list. It doesn’t issue error messages, or take a particularly long to time to run, …

---

## [Remove missing files from a list](https://forum.ansible.com/t/remove-missing-files-from-a-list/27188)

<div class="topic-metadata">

**Author:** [@Andy\_Smith](https://forum.ansible.com/u/Andy_Smith)\
**Replies:** 2\
**Last updated:** [April 6, 2018, 3:02am UTC](https://forum.ansible.com/t/remove-missing-files-from-a-list/27188 "2018-04-06T03:02:23Z")

</div>

Hi, Imagine a service foo that has a config file /etc/foo/files\_of\_interest which is just a list of other file paths, one per line. If you put a path that doesn't exist into the file then the service foo complains ab…

---

## [Architecture of a complex ansible project](https://forum.ansible.com/t/architecture-of-a-complex-ansible-project/27090)

<div class="topic-metadata">

**Author:** [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Replies:** 4\
**Last updated:** [April 6, 2018, 2:54am UTC](https://forum.ansible.com/t/architecture-of-a-complex-ansible-project/27090 "2018-04-06T02:54:02Z")

</div>

Hi Is there a document describing the best practices to organise a complex Ansible project ? Here is the project that I’m thinking about : Project has been designed as a collection of reusable modules (= role) which …

---

## [Automate VM creation with Ansible (VMware, Bind, Zabbix)](https://forum.ansible.com/t/automate-vm-creation-with-ansible-vmware-bind-zabbix/27167)

<div class="topic-metadata">

**Author:** [@Vamberto\_Junior](https://forum.ansible.com/u/Vamberto_Junior)\
**Replies:** 3\
**Last updated:** [April 6, 2018, 2:33am UTC](https://forum.ansible.com/t/automate-vm-creation-with-ansible-vmware-bind-zabbix/27167 "2018-04-06T02:33:18Z")

</div>

Hello everybody In my environment, I own VMware with vCenter, Bind as DNS server and Zabbix as a monitoring tool. What I would like to do with Ansible is to create a virtual machine from an already predefined template,…

---

## [Repeat a block with a different variable?](https://forum.ansible.com/t/repeat-a-block-with-a-different-variable/27200)

<div class="topic-metadata">

**Author:** [@LeamHall](https://forum.ansible.com/u/LeamHall)\
**Replies:** 1\
**Last updated:** [April 6, 2018, 12:21am UTC](https://forum.ansible.com/t/repeat-a-block-with-a-different-variable/27200 "2018-04-06T00:21:08Z")

</div>

Still more Ansible newbie than journeyman. Trying to figure out how to re-run a block with a different variable. Issues: 1. Ruby must be installed to compile new versions of Ruby. 2. The CentOS 6 default version of R…

---

## [Ansible 2.5 with cisco asa\_command enable mode](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199)

<div class="topic-metadata">

**Author:** [@Rick\_Williams](https://forum.ansible.com/u/Rick_Williams)\
**Replies:** 2\
**Last updated:** [April 5, 2018, 11:49pm UTC](https://forum.ansible.com/t/ansible-2-5-with-cisco-asa-command-enable-mode/27199 "2018-04-05T23:49:26Z")

</div>

Hi, Can anyone share how to use the provided asa\_command module to get into enable mode with Ansible 2.5 ? I’m reading this: https://docs.ansible.com/ansible/devel/modules/asa\_command\_module.html#asa-command … and tr…

---

## [win\_group\_membership](https://forum.ansible.com/t/win-group-membership/27136)

<div class="topic-metadata">

**Author:** [@Anil](https://forum.ansible.com/u/Anil)\
**Replies:** 6\
**Last updated:** [April 5, 2018, 9:05pm UTC](https://forum.ansible.com/t/win-group-membership/27136 "2018-04-05T21:05:47Z")

</div>

Hello, few questions on this module - Context - we have Cloudform, that spins up windows machine and joins it to domain, now I need to add user to the local “Remote Desktop user” group on target windows machine. I hopi…

---

## [Ansible 2.5.0 Release Candidate 1 is available](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-1-is-available/26834)

<div class="topic-metadata">

**Author:** [@system](https://forum.ansible.com/u/system)\
**Replies:** 7\
**Last updated:** [April 5, 2018, 6:34pm UTC](https://forum.ansible.com/t/ansible-2-5-0-release-candidate-1-is-available/26834 "2018-04-05T18:34:21Z")

</div>

Hi all- we’re happy to announce that Release Candidate 1 of Ansible 2.5.0 is now available! How do you get it?

---

## [vmware\_guest module and existing custom specifications](https://forum.ansible.com/t/vmware-guest-module-and-existing-custom-specifications/27198)

<div class="topic-metadata">

**Author:** [@the.prides](https://forum.ansible.com/u/the.prides)\
**Replies:** 0\
**Last updated:** [April 5, 2018, 5:53pm UTC](https://forum.ansible.com/t/vmware-guest-module-and-existing-custom-specifications/27198 "2018-04-05T17:53:10Z")

</div>

Is there a way to use existing custom specifications with the vmware\_guest module, and, if so, how? If not, is there another vmware module that can provide this functionality? Thanks!

---

## [Does any one know how to setup ssh connection between  vsts and ansible server](https://forum.ansible.com/t/does-any-one-know-how-to-setup-ssh-connection-between-vsts-and-ansible-server/27197)

<div class="topic-metadata">

**Author:** [@workarea448](https://forum.ansible.com/u/workarea448)\
**Replies:** 0\
**Last updated:** [April 5, 2018, 5:24pm UTC](https://forum.ansible.com/t/does-any-one-know-how-to-setup-ssh-connection-between-vsts-and-ansible-server/27197 "2018-04-05T17:24:02Z")

</div>

Able to set up two terminal server connection using password but unable to do configuration part using vsts run playbook.please help me by sugguesting

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

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