# Latest

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

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

**Page:** 627

---

## [Finding unpartitioned drives](https://forum.ansible.com/t/finding-unpartitioned-drives/25427)

<div class="topic-metadata">

**Author:** [@KK1](https://forum.ansible.com/u/KK1)\
**Replies:** 3\
**Last updated:** [September 7, 2017, 8:54pm UTC](https://forum.ansible.com/t/finding-unpartitioned-drives/25427 "2017-09-07T20:54:34Z")

</div>

Hi Am having trouble to find unpartitioned drives through ansible. I want all the unpartitioned drives put to a variable example: I have sda,sdb and sdc where sda is partitioned and sdb,sdc is left unpartitioned. I w…

---

## [How can I set a default that includes information from a variable?](https://forum.ansible.com/t/how-can-i-set-a-default-that-includes-information-from-a-variable/25423)

<div class="topic-metadata">

**Author:** [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Replies:** 4\
**Last updated:** [September 7, 2017, 6:45pm UTC](https://forum.ansible.com/t/how-can-i-set-a-default-that-includes-information-from-a-variable/25423 "2017-09-07T18:45:00Z")

</div>

I’ve tried the following code: \` name: ensure users exist. when: item.value.state is defined user: state: “{{ item.value.state }}” name: “{{ item.value.username }}” comment: “{{ item.value.fullname }}” password:…

---

## [get the list of packages to update.](https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428)

<div class="topic-metadata">

**Author:** [@jrvilda](https://forum.ansible.com/u/jrvilda)\
**Replies:** 1\
**Last updated:** [September 7, 2017, 6:02pm UTC](https://forum.ansible.com/t/get-the-list-of-packages-to-update/25428 "2017-09-07T18:02:28Z")

</div>

Hi all, I would like to automate a task to check the list of packages that need to be updated in my server farm with ansible. Is there any way to do it? I have seen that the yum module has the option to install the la…

---

## [openstack-ansible setup-infrastructure.yml failed to complete TASK \[resolvconf : Gather variables for each operating system\]](https://forum.ansible.com/t/openstack-ansible-setup-infrastructure-yml-failed-to-complete-task-resolvconf-gather-variables-for-each-operating-system/25432)

<div class="topic-metadata">

**Author:** [@norbel\_ambanumben](https://forum.ansible.com/u/norbel_ambanumben)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 5:48pm UTC](https://forum.ansible.com/t/openstack-ansible-setup-infrastructure-yml-failed-to-complete-task-resolvconf-gather-variables-for-each-operating-system/25432 "2017-09-07T17:48:58Z")

</div>

here are the saple logs TASK \[resolvconf : Gather variables for each operating system\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* task path: /etc/ansible/roles/resolvconf/tasks/m…

---

## [get\_url throws No space left error](https://forum.ansible.com/t/get-url-throws-no-space-left-error/25429)

<div class="topic-metadata">

**Author:** [@rambius](https://forum.ansible.com/u/rambius)\
**Replies:** 2\
**Last updated:** [September 7, 2017, 5:35pm UTC](https://forum.ansible.com/t/get-url-throws-no-space-left-error/25429 "2017-09-07T17:35:50Z")

</div>

Hello, I have the following playbook:

---

## [docker stack deploy, docker service update, docker stack rm modules support](https://forum.ansible.com/t/docker-stack-deploy-docker-service-update-docker-stack-rm-modules-support/25431)

<div class="topic-metadata">

**Author:** [@Samitha\_Hewawasam](https://forum.ansible.com/u/Samitha_Hewawasam)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 5:22pm UTC](https://forum.ansible.com/t/docker-stack-deploy-docker-service-update-docker-stack-rm-modules-support/25431 "2017-09-07T17:22:04Z")

</div>

Does this modules already stated ?

---

## [Adding role-file to ansible-playbook](https://forum.ansible.com/t/adding-role-file-to-ansible-playbook/25430)

<div class="topic-metadata">

**Author:** [@Thurston\_Stone](https://forum.ansible.com/u/Thurston_Stone)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 3:46pm UTC](https://forum.ansible.com/t/adding-role-file-to-ansible-playbook/25430 "2017-09-07T15:46:00Z")

</div>

Since a role file is a great way to download modules from git or galaxy, I was wondering if it made sense to put the role-file option in ansible-playbook? So, rather than: ansible-galaxy install -r role\_file.yml -p pat…

---

## [Ansible roles stored in Git](https://forum.ansible.com/t/ansible-roles-stored-in-git/25402)

<div class="topic-metadata">

**Author:** [@Ash\_Powell](https://forum.ansible.com/u/Ash_Powell)\
**Replies:** 12\
**Last updated:** [September 7, 2017, 7:37am UTC](https://forum.ansible.com/t/ansible-roles-stored-in-git/25402 "2017-09-07T07:37:12Z")

</div>

This may be a silly question, but I’ve searched around and can’t find anyone asking a similar thing. Is it possible for Ansible roles to be stored in a source control repository (such as Git)? Scenario; We have an ans…

---

## [validate a file's content and reporting](https://forum.ansible.com/t/validate-a-files-content-and-reporting/25415)

<div class="topic-metadata">

**Author:** [@Ask\_21](https://forum.ansible.com/u/Ask_21)\
**Replies:** 3\
**Last updated:** [September 7, 2017, 7:22am UTC](https://forum.ansible.com/t/validate-a-files-content-and-reporting/25415 "2017-09-07T07:22:40Z")

</div>

Hi everybody, does anybody know what will be the best approach to read and validate a remote-files content? background: I’m managing linux servers with ansible and have to validate on hundrets of linux servers if any u…

---

## [Ansible 2.4.0 RC1 is ready for testing](https://forum.ansible.com/t/ansible-2-4-0-rc1-is-ready-for-testing/25425)

<div class="topic-metadata">

**Author:** [@tkuratom](https://forum.ansible.com/u/tkuratom)\
**Replies:** 0\
**Last updated:** [September 7, 2017, 1:04am UTC](https://forum.ansible.com/t/ansible-2-4-0-rc1-is-ready-for-testing/25425 "2017-09-07T01:04:14Z")

</div>

Hi all, we're happy to announce that RC1 for 2.4.0 is now available for testing. How do you get it? ---------------------------------------------------------------------- The tar.gz of the release can be found here: \[…

---

## [Automate Documentation](https://forum.ansible.com/t/automate-documentation/25424)

<div class="topic-metadata">

**Author:** [@Dave\_Jarvis](https://forum.ansible.com/u/Dave_Jarvis)\
**Replies:** 0\
**Last updated:** [September 6, 2017, 10:18pm UTC](https://forum.ansible.com/t/automate-documentation/25424 "2017-09-06T22:18:19Z")

</div>

From http://docs.ansible.com/ansible/latest/intro.html, the page footer reads: Ansible docs are generated from GitHub sources using Sphinx using a theme provided by Read the Docs. Ansible’s integration page doesn’t i…

---

## [Print (debug: msg) unreachable hosts](https://forum.ansible.com/t/print-debug-msg-unreachable-hosts/25421)

<div class="topic-metadata">

**Author:** [@Darko\_Milodanovic](https://forum.ansible.com/u/Darko_Milodanovic)\
**Replies:** 1\
**Last updated:** [September 6, 2017, 7:46pm UTC](https://forum.ansible.com/t/print-debug-msg-unreachable-hosts/25421 "2017-09-06T19:46:22Z")

</div>

Is there a way to register unreachable hosts and print them afterwards using debug/msg?? name: check if the node is UP shell: echo {{inventory\_hostname}} register: ping\_test name: show debug debug: var: ping\_te…

---

## [How can I set\_fact based on a "registered" result?](https://forum.ansible.com/t/how-can-i-set-fact-based-on-a-registered-result/25418)

<div class="topic-metadata">

**Author:** [@Dayton\_Jones](https://forum.ansible.com/u/Dayton_Jones)\
**Replies:** 2\
**Last updated:** [September 6, 2017, 5:39pm UTC](https://forum.ansible.com/t/how-can-i-set-fact-based-on-a-registered-result/25418 "2017-09-06T17:39:37Z")

</div>

ansible-playbook 2.3.0.0 python version = 2.7.12 I’m trying to set some facts based on the user-data given for an EC2 instance: \` name: Initialization hosts: localhost connection: local tasks: name: Get userdata …

---

## [How can I install wordpress using Ansible tower](https://forum.ansible.com/t/how-can-i-install-wordpress-using-ansible-tower/25420)

<div class="topic-metadata">

**Author:** [@Nuwan\_Vithanage](https://forum.ansible.com/u/Nuwan_Vithanage)\
**Replies:** 0\
**Last updated:** [September 6, 2017, 5:07pm UTC](https://forum.ansible.com/t/how-can-i-install-wordpress-using-ansible-tower/25420 "2017-09-06T17:07:34Z")

</div>

Hi all, I’m working for web team and I need to Install wordpress on few dev machine using Ansible Tower Please let me know the steps to accomplish this task. Thank you

---

## [ssh failure on ubuntu 16.04](https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419)

<div class="topic-metadata">

**Author:** [@Lukman\_Salifu](https://forum.ansible.com/u/Lukman_Salifu)\
**Replies:** 1\
**Last updated:** [September 6, 2017, 4:42pm UTC](https://forum.ansible.com/t/ssh-failure-on-ubuntu-16-04/25419 "2017-09-06T16:42:52Z")

</div>

Am new to ansible and cannot seem to get the very basics started. ANSIBLE VERSION ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (…

---

## ["attr: i" failing on cent/rhel/oel6 -- why?](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409)

<div class="topic-metadata">

**Author:** [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Replies:** 2\
**Last updated:** [September 6, 2017, 3:15pm UTC](https://forum.ansible.com/t/attr-i-failing-on-cent-rhel-oel6-why/25409 "2017-09-06T15:15:06Z")

</div>

I am setting the immutable flag on a file (using template module). It sets the immutable flag fine on cent/rhel7, but on cent/rhel/oel6 it complains. I can set it manually on the \*6 boxes just fine. Wondering why you thi…

---

## [Advice needs for Ansible Tower Installation](https://forum.ansible.com/t/advice-needs-for-ansible-tower-installation/25414)

<div class="topic-metadata">

**Author:** [@Nuwan\_Vithanage](https://forum.ansible.com/u/Nuwan_Vithanage)\
**Replies:** 2\
**Last updated:** [September 6, 2017, 9:19am UTC](https://forum.ansible.com/t/advice-needs-for-ansible-tower-installation/25414 "2017-09-06T09:19:13Z")

</div>

Hope your doing good. Appriciate if you can let me know answers below concerns I need advice from you appreciate if you can provide advice regarding below concerns. When I install ansible tower Do i need to install ans…

---

## [I want to copy my python script which depends on my other python packages to remote node and run this scripts, is it possible?](https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275)

<div class="topic-metadata">

**Author:** [@Justin\_Ren](https://forum.ansible.com/u/Justin_Ren)\
**Replies:** 1\
**Last updated:** [September 6, 2017, 7:40am UTC](https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275 "2017-09-06T07:40:33Z")

</div>

Hi all, I’m new user for ansible, I want to it’s possible? Or it’s only possible for module, but it not possible for normal script under files folder? Thanks, Justin

---

## [Ansible Role issue - formatting tasks](https://forum.ansible.com/t/ansible-role-issue-formatting-tasks/25413)

<div class="topic-metadata">

**Author:** [@ThatGuyDoingStuff](https://forum.ansible.com/u/ThatGuyDoingStuff)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 10:23pm UTC](https://forum.ansible.com/t/ansible-role-issue-formatting-tasks/25413 "2017-09-05T22:23:12Z")

</div>

Initialized the ansible role with command line call. Role fails with this error: tasks/main.yml \` Configure MySQL 5.6 repos for Xenial and above. include: mysql\_repos.yml inlcude: folder\_check.yml inlcude: f…

---

## [Ansible SSH as one user and Sudo as another](https://forum.ansible.com/t/ansible-ssh-as-one-user-and-sudo-as-another/17281)

<div class="topic-metadata">

**Author:** [@Stuart\_Budd](https://forum.ansible.com/u/Stuart_Budd)\
**Replies:** 22\
**Last updated:** [September 5, 2017, 6:28pm UTC](https://forum.ansible.com/t/ansible-ssh-as-one-user-and-sudo-as-another/17281 "2017-09-05T18:28:36Z")

</div>

I am having trouble with configuring Ansible and sudo to allow me to SSH into a server and run a command as another user. I have gone through the questions / answers below and the Ansible documentation here: http://docs…

---

## [Ansible winrm to connect to windows guest via certificate.](https://forum.ansible.com/t/ansible-winrm-to-connect-to-windows-guest-via-certificate/25116)

<div class="topic-metadata">

**Author:** [@Rui\_Pereira](https://forum.ansible.com/u/Rui_Pereira)\
**Replies:** 2\
**Last updated:** [September 5, 2017, 4:52pm UTC](https://forum.ansible.com/t/ansible-winrm-to-connect-to-windows-guest-via-certificate/25116 "2017-09-05T16:52:42Z")

</div>

Hello Guys, I’m trying to understand the way to go here. I want to secure as much as possible my connection from my ansible box to the guests. In terms of Linux i already have all the communication based on SSH keys. In…

---

## [How to get all the instances per VPC and get security group of each instance for a particular zone.](https://forum.ansible.com/t/how-to-get-all-the-instances-per-vpc-and-get-security-group-of-each-instance-for-a-particular-zone/25401)

<div class="topic-metadata">

**Author:** [@Nirjhar\_Banik](https://forum.ansible.com/u/Nirjhar_Banik)\
**Replies:** 2\
**Last updated:** [September 5, 2017, 4:08pm UTC](https://forum.ansible.com/t/how-to-get-all-the-instances-per-vpc-and-get-security-group-of-each-instance-for-a-particular-zone/25401 "2017-09-05T16:08:02Z")

</div>

I’m trying to pull all the information of all the instances per VPC and get security group of each instance for a particular zone. I am using ec2\_vpc (it is deprecated) module to get the information about an existing VPC…

---

## [install help from source](https://forum.ansible.com/t/install-help-from-source/25104)

<div class="topic-metadata">

**Author:** [@Imam\_Toufique](https://forum.ansible.com/u/Imam_Toufique)\
**Replies:** 1\
**Last updated:** [September 5, 2017, 1:36pm UTC](https://forum.ansible.com/t/install-help-from-source/25104 "2017-09-05T13:36:28Z")

</div>

Hi, I am new to Ansible. I am looking into using ansible, but I don’t want to install this from rpm or deb packages. I was trying to install from source, but I can’t seem to find out the exact process of installing it i…

---

## [vmware\_guest module configure networks with distributed switch / Portgroup](https://forum.ansible.com/t/vmware-guest-module-configure-networks-with-distributed-switch-portgroup/25408)

<div class="topic-metadata">

**Author:** [@Jorg\_Mainzer](https://forum.ansible.com/u/Jorg_Mainzer)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 1:28pm UTC](https://forum.ansible.com/t/vmware-guest-module-configure-networks-with-distributed-switch-portgroup/25408 "2017-09-05T13:28:54Z")

</div>

Hello, on creation or reconfiguration of a vmware guest I got an error: fatal: \[localhost\]: FAILED! =\> {“changed”: true, “failed”: true, “msg”: “Das Objekt oder Element, auf das Bezug genommen wurde, konnte nicht gefun…

---

## [Ansible API run playbook on specific tasks using tags](https://forum.ansible.com/t/ansible-api-run-playbook-on-specific-tasks-using-tags/25407)

<div class="topic-metadata">

**Author:** [@Anonymous1](https://forum.ansible.com/u/Anonymous1)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 1:18pm UTC](https://forum.ansible.com/t/ansible-api-run-playbook-on-specific-tasks-using-tags/25407 "2017-09-05T13:18:48Z")

</div>

HI, It would be great if someone can help me to specify tags while running ansible playbook via Ansible API 2.0. I have below code taken from https://stackoverflow.com/questions/27590039/running-ansible-playbook-using-…

---

## [Building an ini file based on user input](https://forum.ansible.com/t/building-an-ini-file-based-on-user-input/25241)

<div class="topic-metadata">

**Author:** [@chipcha](https://forum.ansible.com/u/chipcha)\
**Replies:** 2\
**Last updated:** [September 5, 2017, 11:23am UTC](https://forum.ansible.com/t/building-an-ini-file-based-on-user-input/25241 "2017-09-05T11:23:10Z")

</div>

Hi all, I developed a small playbook which uses an inventory file to store my variables. I chose an ini format since it is more easy to define groups and it makes the file more organize and readable. My first question…

---

## [Managing Microsoft Clusters](https://forum.ansible.com/t/managing-microsoft-clusters/25403)

<div class="topic-metadata">

**Author:** [@MKPhil](https://forum.ansible.com/u/MKPhil)\
**Replies:** 1\
**Last updated:** [September 5, 2017, 11:12am UTC](https://forum.ansible.com/t/managing-microsoft-clusters/25403 "2017-09-05T11:12:09Z")

</div>

Has anyone looked at managing Microsoft Clusters with Ansible? I’m thinking of creating a module (or modules, plural) to create and administer MS Clusters but don’t want to re-invent the wheel! Phil

---

## [Commands needed for NPM Set registry, NPM set proxy and untar  a tgz file in ansible](https://forum.ansible.com/t/commands-needed-for-npm-set-registry-npm-set-proxy-and-untar-a-tgz-file-in-ansible/25405)

<div class="topic-metadata">

**Author:** [@ManiGandan\_T](https://forum.ansible.com/u/ManiGandan_T)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 9:09am UTC](https://forum.ansible.com/t/commands-needed-for-npm-set-registry-npm-set-proxy-and-untar-a-tgz-file-in-ansible/25405 "2017-09-05T09:09:13Z")

</div>

Hi Team, I am logically creating a code in ansible-container with reference of a nodejs application container code written using docker. I am not able to find the exact syntax to change the below docker code. Could some…

---

## [Python API 2.0 Ansible Fail](https://forum.ansible.com/t/python-api-2-0-ansible-fail/25404)

<div class="topic-metadata">

**Author:** [@TranceWorldLogic](https://forum.ansible.com/u/TranceWorldLogic)\
**Replies:** 0\
**Last updated:** [September 5, 2017, 8:18am UTC](https://forum.ansible.com/t/python-api-2-0-ansible-fail/25404 "2017-09-05T08:18:36Z")

</div>

Hi, I was trying to invoke ansible plabook from python and got various blocker. 1\> I have used dict formated data for ansible playbook tasks. And then tried to executed it working fine (as shown example in below link) …

---

## [ec2\_group is not idempotent](https://forum.ansible.com/t/ec2-group-is-not-idempotent/25396)

<div class="topic-metadata">

**Author:** [@Stephen\_Nelson-Smith](https://forum.ansible.com/u/Stephen_Nelson-Smith)\
**Replies:** 2\
**Last updated:** [September 5, 2017, 5:29am UTC](https://forum.ansible.com/t/ec2-group-is-not-idempotent/25396 "2017-09-05T05:29:34Z")

</div>

I have a task which creates a security group: name: Create Production Security Group ec2\_group: name: “Production Security Group” description: “Allow access on ssh and 8080” vpc\_id: “{{ prd\_vpc\_id }}” rules: proto…

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

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