# Ansible Project

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

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

**Page:** 192

---

## [Network stack](https://forum.ansible.com/t/network-stack/30275)

<div class="topic-metadata">

**Author:** [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Replies:** 4\
**Last updated:** [May 8, 2019, 5:04am UTC](https://forum.ansible.com/t/network-stack/30275 "2019-05-08T05:04:47Z")

</div>

Hi Team, Is network stack consider as single node license in ansible tower? for eg I have network stack contains 4 switches. I need to understand whether have to buy license for four switches or single license is enough…

---

## [This topic needs a title](https://forum.ansible.com/t/this-topic-needs-a-title/30267)

<div class="topic-metadata">

**Author:** [@Gopal\_Dhapa](https://forum.ansible.com/u/Gopal_Dhapa)\
**Replies:** 4\
**Last updated:** [May 8, 2019, 2:31am UTC](https://forum.ansible.com/t/this-topic-needs-a-title/30267 "2019-05-08T02:31:20Z")

</div>

Hello Team, How to see centos server host name using ansible. Please suggest Thanks in advance. Thank you Gopal Dhapa

---

## [Request your help](https://forum.ansible.com/t/request-your-help/30215)

<div class="topic-metadata">

**Author:** [@Vino\_B](https://forum.ansible.com/u/Vino_B)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 12:38am UTC](https://forum.ansible.com/t/request-your-help/30215 "2019-05-08T00:38:06Z")

</div>

Hi All, I am trying to store the output of the ansible task into MySQL database, at present i am able to store the output of the task which does not contain with\_items , but not able to store the data for the task which…

---

## [Shell module output from playboot is lesster than ansible adhoc shell output](https://forum.ansible.com/t/shell-module-output-from-playboot-is-lesster-than-ansible-adhoc-shell-output/30219)

<div class="topic-metadata">

**Author:** [@palani\_b](https://forum.ansible.com/u/palani_b)\
**Replies:** 2\
**Last updated:** [May 8, 2019, 12:34am UTC](https://forum.ansible.com/t/shell-module-output-from-playboot-is-lesster-than-ansible-adhoc-shell-output/30219 "2019-05-08T00:34:53Z")

</div>

Am facing this this weird issue. Am getting less no of lines output for Shell module in playbook where getting full output in ansible adhoc for the same commands. Playbook output: “HOSTNAME - ansiblevm2”, “DATE - Tue …

---

## [Append shell script output on remote server](https://forum.ansible.com/t/append-shell-script-output-on-remote-server/30227)

<div class="topic-metadata">

**Author:** [@Rahul\_Kolan](https://forum.ansible.com/u/Rahul_Kolan)\
**Replies:** 1\
**Last updated:** [May 8, 2019, 12:30am UTC](https://forum.ansible.com/t/append-shell-script-output-on-remote-server/30227 "2019-05-08T00:30:52Z")

</div>

In Ansible is there any way i can append the shell script out to in one file. basically I have script which does some validation like services status up after the OS upgrade. I want to execute the script on remote mach…

---

## [Is there any way to get parsed data from stdout of each task on playbook?](https://forum.ansible.com/t/is-there-any-way-to-get-parsed-data-from-stdout-of-each-task-on-playbook/14803)

<div class="topic-metadata">

**Author:** [@Jinsik\_Kim](https://forum.ansible.com/u/Jinsik_Kim)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 9:46pm UTC](https://forum.ansible.com/t/is-there-any-way-to-get-parsed-data-from-stdout-of-each-task-on-playbook/14803 "2019-05-07T21:46:17Z")

</div>

Hi, I am a newbie in this wonderful tool Ansible. I made a playbook script to test it. But I found that sometimes I need to parse the stdout of each task. For instance name : run and get the result in JSON format o…

---

## [connect without dns or /etc/hosts" resolution](https://forum.ansible.com/t/connect-without-dns-or-etc-hosts-resolution/30274)

<div class="topic-metadata">

**Author:** [@christian.tremel](https://forum.ansible.com/u/christian.tremel)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 2:11pm UTC](https://forum.ansible.com/t/connect-without-dns-or-etc-hosts-resolution/30274 "2019-05-07T14:11:33Z")

</div>

i have a dynamic inventory script which outputs the following. \` “NODE\_A”: { “inventory\_hostname”: “10.0.2.6”, “inventory\_lparname”: “NODE\_A” } \` the nodes are not resolvable via dns or something as this network i…

---

## [Including roles dynamically make dependencies runs multiple time](https://forum.ansible.com/t/including-roles-dynamically-make-dependencies-runs-multiple-time/30255)

<div class="topic-metadata">

**Author:** [@Bleacks](https://forum.ansible.com/u/Bleacks)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 10:58am UTC](https://forum.ansible.com/t/including-roles-dynamically-make-dependencies-runs-multiple-time/30255 "2019-05-06T10:58:01Z")

</div>

Hello everyone, (this is my first post BTW, I’ll try to be as clear as possible) I want to include roles dynamically using this bit of code in my playbook.yml : \` tasks: name: “Including roles dynamically” remote\_…

---

## [Configuring huawei NE series devices using ansible.](https://forum.ansible.com/t/configuring-huawei-ne-series-devices-using-ansible/30268)

<div class="topic-metadata">

**Author:** [@vicky.singh](https://forum.ansible.com/u/vicky.singh)\
**Replies:** 0\
**Last updated:** [May 6, 2019, 7:33am UTC](https://forum.ansible.com/t/configuring-huawei-ne-series-devices-using-ansible/30268 "2019-05-06T07:33:01Z")

</div>

Hey, I see that there are modules available for huawei ce series devices but i couldn’t find any for NE series devices. Is using netconf commands (netconf\_config, netconf\_rpc, netconf\_get) my only option ?

---

## [socket.timout() while connecting to a junos devices via network\_cli](https://forum.ansible.com/t/socket-timout-while-connecting-to-a-junos-devices-via-network-cli/30240)

<div class="topic-metadata">

**Author:** [@vicky.singh](https://forum.ansible.com/u/vicky.singh)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 7:30am UTC](https://forum.ansible.com/t/socket-timout-while-connecting-to-a-junos-devices-via-network-cli/30240 "2019-05-06T07:30:35Z")

</div>

I was exploring ansible and the first step i tried was getting some information from a router (a virtual gns3 image). I am able to connect to the device using ssh, get into it’s cli and run commands normally but not via…

---

## [Enabling delegate\_to on include\_role via block](https://forum.ansible.com/t/enabling-delegate-to-on-include-role-via-block/30266)

<div class="topic-metadata">

**Author:** [@Tim\_Diels](https://forum.ansible.com/u/Tim_Diels)\
**Replies:** 3\
**Last updated:** [May 4, 2019, 11:38pm UTC](https://forum.ansible.com/t/enabling-delegate-to-on-include-role-via-block/30266 "2019-05-04T23:38:56Z")

</div>

Hi, I noticed that while: include\_role: name: myrole delegate\_to: somehost will not delegate the included role, this will: block: include\_role: name: myrole delegate\_to: somehost Is this by design, i.e. I may …

---

## [ERROR! Syntax Error while loading YAML.   mapping values are not allowed in this context](https://forum.ansible.com/t/error-syntax-error-while-loading-yaml-mapping-values-are-not-allowed-in-this-context/30256)

<div class="topic-metadata">

**Author:** [@opitz](https://forum.ansible.com/u/opitz)\
**Replies:** 2\
**Last updated:** [May 4, 2019, 2:14pm UTC](https://forum.ansible.com/t/error-syntax-error-while-loading-yaml-mapping-values-are-not-allowed-in-this-context/30256 "2019-05-04T14:14:43Z")

</div>

I have the following playbook:

---

## [leftover on AMI after using Ansible with Packer](https://forum.ansible.com/t/leftover-on-ami-after-using-ansible-with-packer/30249)

<div class="topic-metadata">

**Author:** [@Wawrzek\_Niewodniczan](https://forum.ansible.com/u/Wawrzek_Niewodniczan)\
**Replies:** 1\
**Last updated:** [May 4, 2019, 2:11pm UTC](https://forum.ansible.com/t/leftover-on-ami-after-using-ansible-with-packer/30249 "2019-05-04T14:11:03Z")

</div>

Hello, I use Ansible to configure OS which is base for Packer to create AMI for AWS and disk image for Azure. AMI bases on Amazon Linux and Azure image on Ubuntu image. The whole process works fine, however somehow o…

---

## [Syntax Error with postgresql\_query module](https://forum.ansible.com/t/syntax-error-with-postgresql-query-module/30264)

<div class="topic-metadata">

**Author:** [@magnani95](https://forum.ansible.com/u/magnani95)\
**Replies:** 3\
**Last updated:** [May 4, 2019, 9:31am UTC](https://forum.ansible.com/t/syntax-error-with-postgresql-query-module/30264 "2019-05-04T09:31:37Z")

</div>

Hi, I have to create and populate a DB with Ansible. I successfully create the db, but when I add the postgresql\_query I got syntax error. I also tried to add the code from documentation (here) but it get the same. Th…

---

## [Copying files from vsphere datastore to host](https://forum.ansible.com/t/copying-files-from-vsphere-datastore-to-host/30259)

<div class="topic-metadata">

**Author:** [@spongebob33167](https://forum.ansible.com/u/spongebob33167)\
**Replies:** 2\
**Last updated:** [May 3, 2019, 6:54pm UTC](https://forum.ansible.com/t/copying-files-from-vsphere-datastore-to-host/30259 "2019-05-03T18:54:24Z")

</div>

With vsphere\_copy, I can upload files to a vsphere datastore, but I want to download a .vmdk file from a datastore to my local server. Is there an ansible module that will let me download from a datastore?

---

## [Check allocation\_unit\_size](https://forum.ansible.com/t/check-allocation-unit-size/30261)

<div class="topic-metadata">

**Author:** [@Maxime\_Gendrot](https://forum.ansible.com/u/Maxime_Gendrot)\
**Replies:** 0\
**Last updated:** [May 3, 2019, 2:23pm UTC](https://forum.ansible.com/t/check-allocation-unit-size/30261 "2019-05-03T14:23:41Z")

</div>

Hi, I Would like to use win\_disk\_facts to check allocation\_unit\_size for each disk. I can do it with powershell: ($wql = “SELECT Label, Blocksize, Name FROM Win32\_Volume WHERE FileSystem=‘NTFS’” Get-WmiObject -Query …

---

## [Can use setup module with in Vcenter](https://forum.ansible.com/t/can-use-setup-module-with-in-vcenter/30254)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 0\
**Last updated:** [May 3, 2019, 7:30am UTC](https://forum.ansible.com/t/can-use-setup-module-with-in-vcenter/30254 "2019-05-03T07:30:43Z")

</div>

I need obtain network info (IP, netmask, gateway, Broadcast…) in vcenter machines with my ansible machine and I obtain network with setup module, but of my Ansible machine. Can use hostname, password, username… ?

---

## [how do I properly set ANSIBLE\_BECOME\_PASS ?](https://forum.ansible.com/t/how-do-i-properly-set-ansible-become-pass/30232)

<div class="topic-metadata">

**Author:** [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 4:16pm UTC](https://forum.ansible.com/t/how-do-i-properly-set-ansible-become-pass/30232 "2019-05-02T16:16:25Z")

</div>

Hello! Sorry to be so lame. What combination of environment vars do I need to set in order to not get prompted for a SUDO password?! I’ve tried setting ANSIBLE\_BECOME\_PASS and ANSIBLE\_ASK\_BECOME\_PASS=False but I still g…

---

## [conflicting action statements: shell, async](https://forum.ansible.com/t/conflicting-action-statements-shell-async/30213)

<div class="topic-metadata">

**Author:** [@grimlinzz](https://forum.ansible.com/u/grimlinzz)\
**Replies:** 1\
**Last updated:** [May 2, 2019, 3:41pm UTC](https://forum.ansible.com/t/conflicting-action-statements-shell-async/30213 "2019-05-02T15:41:42Z")

</div>

Hello, i installed ansible 2.7.10 with pip. Extract from the playbook : \` \` name: stop the host shell: sleep 2 && shutdown -h now “Ansible updates triggered” async: 1 poll: 0 ignore\_errors: true \` \` when i ru…

---

## [i can't list hard disk info](https://forum.ansible.com/t/i-cant-list-hard-disk-info/30243)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 12:01pm UTC](https://forum.ansible.com/t/i-cant-list-hard-disk-info/30243 "2019-05-02T12:01:37Z")

</div>

Hi, i use this playbook:

---

## [how to use ansible -m setup in playbook?](https://forum.ansible.com/t/how-to-use-ansible-m-setup-in-playbook/30246)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 2\
**Last updated:** [May 2, 2019, 11:52am UTC](https://forum.ansible.com/t/how-to-use-ansible-m-setup-in-playbook/30246 "2019-05-02T11:52:41Z")

</div>

I want to use ansible -m setup in playbook to take ip information and I dont know how to do it

---

## [how to obtain ip info](https://forum.ansible.com/t/how-to-obtain-ip-info/30244)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 11:51am UTC](https://forum.ansible.com/t/how-to-obtain-ip-info/30244 "2019-05-02T11:51:21Z")

</div>

I need ip, gateway and netmask info

---

## [i can't list object](https://forum.ansible.com/t/i-cant-list-object/30241)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 2\
**Last updated:** [May 2, 2019, 11:49am UTC](https://forum.ansible.com/t/i-cant-list-object/30241 "2019-05-02T11:49:30Z")

</div>

Hi, i’m use this playbook

---

## [how to create a new hard disk?](https://forum.ansible.com/t/how-to-create-a-new-hard-disk/30242)

<div class="topic-metadata">

**Author:** [@lander7500](https://forum.ansible.com/u/lander7500)\
**Replies:** 0\
**Last updated:** [May 2, 2019, 6:55am UTC](https://forum.ansible.com/t/how-to-create-a-new-hard-disk/30242 "2019-05-02T06:55:22Z")

</div>

I know to use this task: name: Add HardDisk vmware\_guest: hostname: “{{ hostname }}” username: “{{ username }}” password: “{{ password }}” validate\_certs: no folder: / name: “{{vm}}” disk: size\_gb: “{{gb}}” Cr…

---

## [Sprints during PyCon US 2019](https://forum.ansible.com/t/sprints-during-pycon-us-2019/30238)

<div class="topic-metadata">

**Author:** [@sdoran](https://forum.ansible.com/u/sdoran)\
**Replies:** 0\
**Last updated:** [May 2, 2019, 4:16am UTC](https://forum.ansible.com/t/sprints-during-pycon-us-2019/30238 "2019-05-02T04:16:43Z")

</div>

We will be hosting Ansible sprints during PyCon US 2019 in Cleveland, OH May 6-7. Sprints are free to attend for anyone, even if you are not attending the conference itself. We would love to see you there if you are atte…

---

## [Replacing the existing Jar files with available Jar files and currently with same name available no action is taking](https://forum.ansible.com/t/replacing-the-existing-jar-files-with-available-jar-files-and-currently-with-same-name-available-no-action-is-taking/30233)

<div class="topic-metadata">

**Author:** [@chandrasekhar\_Mallis](https://forum.ansible.com/u/chandrasekhar_Mallis)\
**Replies:** 3\
**Last updated:** [May 2, 2019, 3:32am UTC](https://forum.ansible.com/t/replacing-the-existing-jar-files-with-available-jar-files-and-currently-with-same-name-available-no-action-is-taking/30233 "2019-05-02T03:32:29Z")

</div>

Dear All. Need your help we are in the process of Automating the cognos analytics servers from Linux env with ansible code . Requirement : we have two Jar files named local\_policy.jar and US\_export\_policy.jar in our cu…

---

## [Simple Ansible ping failing](https://forum.ansible.com/t/simple-ansible-ping-failing/15655)

<div class="topic-metadata">

**Author:** [@Chris\_Jones](https://forum.ansible.com/u/Chris_Jones)\
**Replies:** 9\
**Last updated:** [May 1, 2019, 11:14pm UTC](https://forum.ansible.com/t/simple-ansible-ping-failing/15655 "2019-05-01T23:14:54Z")

</div>

Environments: 2 VMs (one VirtualBox with CentOS 7 and one Fusion with Fedora 20) -Python 2.7.5 -Ansible 1.6.6 installed via PIP -host file with IP of other VM -ssh works fine in both directions -sftp on both vms …

---

## [How to truncate oracle table with ansible code](https://forum.ansible.com/t/how-to-truncate-oracle-table-with-ansible-code/30235)

<div class="topic-metadata">

**Author:** [@cassell](https://forum.ansible.com/u/cassell)\
**Replies:** 0\
**Last updated:** [May 1, 2019, 9:05pm UTC](https://forum.ansible.com/t/how-to-truncate-oracle-table-with-ansible-code/30235 "2019-05-01T21:05:38Z")

</div>

This is a better question for the ansible-project list. V/r, James Cassell

---

## [How to truncate a particular table in oracle db automatically with ansible code can you please suggest .](https://forum.ansible.com/t/how-to-truncate-a-particular-table-in-oracle-db-automatically-with-ansible-code-can-you-please-suggest/30234)

<div class="topic-metadata">

**Author:** [@chandrasekhar\_Mallis](https://forum.ansible.com/u/chandrasekhar_Mallis)\
**Replies:** 0\
**Last updated:** [May 1, 2019, 8:28pm UTC](https://forum.ansible.com/t/how-to-truncate-a-particular-table-in-oracle-db-automatically-with-ansible-code-can-you-please-suggest/30234 "2019-05-01T20:28:24Z")

</div>

Requirement : we are in the process of automating the SSL feature in Cognos 11 analytics in that as a first step we need to truncate a table in oracle db Can any one add the Ansible code for truncating a table in oracle…

---

## [Determine which server in inventory is the executor](https://forum.ansible.com/t/determine-which-server-in-inventory-is-the-executor/30231)

<div class="topic-metadata">

**Author:** [@Eric\_Brewer](https://forum.ansible.com/u/Eric_Brewer)\
**Replies:** 0\
**Last updated:** [May 1, 2019, 5:43pm UTC](https://forum.ansible.com/t/determine-which-server-in-inventory-is-the-executor/30231 "2019-05-01T17:43:06Z")

</div>

I have a situation where i need to be able to load new packages on a server, and turn it into an nfs yum repo. I have a playbook that does this, and mounts the directory the repo will live on to the other servers and set…

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

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