# Running perl script on remote host as applcation user

**URL:** <https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [February 27, 2020, 9:35am UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341 "2020-02-27T09:35:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiViNe](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@DiViNe](https://forum.ansible.com/u/DiViNe)\
**Post date:** [February 27, 2020, 9:35am UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341/1 "2020-02-27T09:35:02Z")

</div>

Thank you guys

@Kai Stian Olstad

_\> It’s probably because your script /sgi/atx/src/atxBoxHWM.pl need some_  
_\> environment variables set._

Yes, I guess you’re right on this one. But I thought using “shell:” within the ansible playbook would set the right enviroment.

**@Dick Visser:**  
This the whole playbook with all variables etc.:

> * * *
> 
> - hosts: applicationservername
> 
> tasks:
> 
> - name: Check who’s master and stop DB processe
> 
> become: ture
> 
> become\_user: applicationuser
> 
> shell: /sgi/atx/src/atxBoxHWM.pl
> 
> register: command\_result
> 
> - debug: msg=“{{ command\_result.stdout }}”
> 
> - debug: msg=“{{ command\_result.stderr }}”

Sure, here’s the output:

> ansible-playbook -i …/hosts playbook\_name.yml -vvv  
> ansible-playbook 2.7.10  
> config file = /etc/ansible/ansible.cfg  
> configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]  
> ansible python module location = /usr/lib/python2.7/site-packages/ansible  
> executable location = /usr/bin/ansible-playbook  
> python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]  
> Using /etc/ansible/ansible.cfg as config file  
> /etc/ansible/beh\_test\_hosts did not meet host\_list requirements, check plugin documentation if this is unexpected  
> /etc/ansible/beh\_test\_hosts did not meet script requirements, check plugin documentation if this is unexpected  
> Parsed /etc/ansible/beh\_test\_hosts inventory source with ini plugin
> 
> PLAYBOOK: playbook\_name.yml \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> 1 plays in playbook\_name.yml
> 
> PLAY [applicationservername] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> task path: /etc/ansible/playbook/playbook\_name.yml:2  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’  
> (0, ‘/root\n’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518`” && echo ansible-tmp-1582795747.55-108734989131518=“`echo /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518`” ) && sleep 0’“'”‘’  
> (0, ‘ansible-tmp-1582795747.55-108734989131518=/root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518\n’, ‘’)  
> Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py  
> PUT /root/.ansible/tmp/ansible-local-83798z9BMTv/tmpU8uNUb TO /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/AnsiballZ\_setup.py  
> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f ‘[applicationservername]’  
> (0, ‘sftp\> put /root/.ansible/tmp/ansible-local-83798z9BMTv/tmpU8uNUb /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/AnsiballZ\_setup.py\n’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/ /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/AnsiballZ\_setup.py && sleep 0’”’“‘’  
> (0, ‘’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f -tt applicationservername '/bin/sh -c '”‘"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/AnsiballZ\_setup.py && sleep 0’“'”‘’  
> (0, ‘\r\n{“invocation”: {“module\_args”: {“filter”: “_“, “gather\_subset”: [“all”], “fact\_path”: “/etc/ansible/facts.d”, “gather\_timeout”: 10}}, “ansible\_facts”: {“ansible\_userspace\_architecture”: “x86\_64”, “ansible\_product\_serial”: “DC3C2753-73FF-45E5-A189-73ECC0605117”, “ansible\_form\_factor”: “Other”, “ansible\_user\_gecos”: “root”, “ansible\_distribution\_file\_parsed”: true, “ansible\_fips”: false, “ansible\_service\_mgr”: “systemd”, “ansible\_user\_id”: “root”, “ansible\_selinux\_python\_present”: true, “ansible\_userspace\_bits”: “64”, “ansible\_ssh\_host\_key\_rsa\_public”: “AAAAB3NzaC1yc2EAAAADAQABAAABAQDCEgXNSOW9AJmkqoNB6et9nvgW/Rn05VVB8bBEiz+4XVfjO7TGRnIRN6nH4Us9XuY7ExgR50nkJsOiSqcsoaEHaxwZ+Mea7YFspnuNY5/4bisasPy9agdnpuMBFgcSe11eMc83fU5PAQ8bogRpkTzL/gCRbI5kUtUvmx5lm2M0uENchjuHdHCoyPuFITaSLn+CWGih++DK1hxGXasG4LnupmiqJsuMOgyZmzErzEIiT9GQksyZT9A4W5eNWmJ8+OvOJj8vh9xJEEEQ34Zy80KzgcOhe1RpFcNzc6W3fmiCQ/R6vQGemeI3hi4HcqjGnWx1EJPoGdLFHx2z4rGVwrGr”, “gather\_subset”: [“all”], “ansible\_real\_user\_id”: 0, “ansible\_architecture”: “x86\_64”, “ansible\_local”: {“report”: {“foreman”: “katello-agent.noarch3.3.5-4.el7 / Active”, “upgrade”: " 2019-12-30 16:17 “, “nrpe”: “nrpe.x86\_643.2.1-8.el7 / Active”, “reboot”: “2019-03-20 10:16”, “ossec”: “OSSEC / Active”, “cyberark”: “Feb 27 02:01:12 / Last modified”, “splunk”: “splunkforwarder.x86\_647.0.1-2b5b15c4ee89 / Active”, “OS version”: “Red Hat Enterprise Linux Server release 7.7 (Maipo)”}}, “ansible\_distribution\_version”: “7.7”, “ansible\_domain”: “company\_name.local”, “ansible\_distribution\_file\_path”: “/etc/redhat-release”, “ansible\_user\_shell”: “/bin/bash”, “ansible\_virtualization\_type”: “kvm”, “ansible\_ssh\_host\_key\_ed25519\_public”: “AAAAC3NzaC1lZDI1NTE5AAAAIHJnzQo1kC34fTuwJBEl7l3mvdKuGDh1STiOKL5aMv67”, “ansible\_processor\_cores”: 1, “ansible\_virtualization\_role”: “guest”, “ansible\_distribution\_file\_variety”: “RedHat”, “ansible\_dns”: {“nameservers”: [“10.7.7.7”, “10.7.7.8”], “search”: [“company\_name.local”], “domain”: “company\_name.local”}, “ansible\_effective\_group\_id”: 0, “ansible\_is\_chroot”: false, “ansible\_bios\_version”: “1.9.1-5.el6”, “ansible\_processor”: [“0”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “1”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “2”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “3”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “4”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “5”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “6”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”, “7”, “GenuineIntel”, “Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz”], “ansible\_date\_time”: {“weekday\_number”: “4”, “iso8601\_basic\_short”: “20200227T102927”, “tz”: “CET”, “weeknumber”: “08”, “hour”: “10”, “year”: “2020”, “minute”: “29”, “tz\_offset”: “+0100”, “month”: “02”, “epoch”: “1582795767”, “iso8601\_micro”: “2020-02-27T09:29:27.552716Z”, “weekday”: “Thursday”, “time”: “10:29:27”, “date”: “2020-02-27”, “iso8601”: “2020-02-27T09:29:27Z”, “day”: “27”, “iso8601\_basic”: “20200227T102927552618”, “second”: “27”}, “ansible\_lo”: {“features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “on [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “on [fixed]”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “on [fixed]”, “tx\_tcp\_ecn\_segmentation”: “on”, “rx\_udp\_tunnel\_port\_offload”: “off [fixed]”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “off [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_tcp\_mangleid\_segmentation”: “on”, “tx\_checksumming”: “on”, “vlan\_challenged”: “on [fixed]”, “loopback”: “on [fixed]”, “fcoe\_mtu”: “off [fixed]”, “scatter\_gather”: “on”, “tx\_checksum\_sctp”: “on [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “tx\_gso\_partial”: “off [fixed]”, “rx\_gro\_hw”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on [fixed]”, “rx\_checksumming”: “on [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “on [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_gre\_csum\_segmentation”: “off [fixed]”, “tx\_nocache\_copy”: “off [fixed]”, “tx\_udp\_tnl\_csum\_segmentation”: “off [fixed]”, “udp\_fragmentation\_offload”: “on”, “tx\_sctp\_segmentation”: “on”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “hw\_tc\_offload”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on [fixed]”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “off [fixed]”, “tx\_vlan\_offload”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “off [fixed]”}, “hw\_timestamp\_filters”: [], “mtu”: 65536, “device”: “lo”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “host”, “netmask”: “255.0.0.0”, “network”: “127.0.0.0”, “address”: “127.0.0.1”}, “ipv6”: [{“scope”: “host”, “prefix”: “128”, “address”: “::1”}], “active”: true, “type”: “loopback”}, “ansible\_memtotal\_mb”: 16011, “ansible\_ssh\_host\_key\_ecdsa\_public”: “AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBP/tuAP4nQYXlRsPKsujQ/xyusdnXYUAxQfmSGlZ9t+NO6LLTVESdlmGNFVg1OKckSdV84CvkRgcAAyLMA+SqeY=”, “ansible\_device\_links”: {“masters”: {“sda2”: [“dm-0”, “dm-1”, “dm-10”, “dm-11”, “dm-12”, “dm-2”, “dm-3”, “dm-4”, “dm-5”, “dm-6”, “dm-7”, “dm-8”, “dm-9”]}, “labels”: {“sda1”: [“boot”]}, “ids”: {“dm-10”: [“dm-name-vgRoot-lvHome”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UptXEOe0OcDpzB8wvbVn5OidHcCxhzWA0”], “dm-11”: [“dm-name-vgRoot-lvSGIReleasedat”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UUOLsQV1nG97OnXh9fd50KqIzLhvYHmW9”], “dm-12”: [“dm-name-vgRoot-lvOracle”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UVrlbtGcZZsdfJKwKhN5Gk8dc38pGLCcM”], “sda1”: [“scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896-part1”], “sda2”: [“lvm-pv-uuid-RQCUgj-Tjlj-KWzv-ATdV-ZS3u-YWn6-ziJ7Im”, “scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896-part2”], “sda”: [“scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896”], “dm-8”: [“dm-name-vgRoot-lvTmp”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UTTVaJJf7PJn0uY0WCAOeJXzuIWsRnd1A”], “dm-9”: [“dm-name-vgRoot-lvOpt”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UfqUkuE0k9q1qPQsj3h0jrLXvbmbCLiyi”], “dm-6”: [“dm-name-vgRoot-lvSGI”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UghimvNYTuxDjKobfn5lpwsvzfpzqOmJc”], “dm-7”: [“dm-name-vgRoot-lvVar”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UA9bkaweKHCFEutGcB8POLtaSjU97fabT”], “dm-4”: [“dm-name-vgRoot-lvSGIReleaseBin”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UfA2MA1njxTqZS6mgtrlKt7DEypN7i2c2”], “dm-5”: [“dm-name-vgRoot-lvSGIRelease”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UbdqWterJy8Xp8iKiIwh3xxW2INyHpAGr”], “dm-2”: [“dm-name-vgRoot-lvUsr”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UaFR5SoBYk8FjzCdJo8wOvlffuIGd9CFP”], “dm-3”: [“dm-name-vgRoot-lvUsrLocalInstall”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UdT2t1YcZ8SfAlFMRdCf62p9r39wpnbtF”], “dm-0”: [“dm-name-vgRoot-lvRoot”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UlpIm0yaAAGfA94TXAuENWYtmoGlghW35”], “dm-1”: [“dm-name-vgRoot-lvSwap”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UmHlY2lQCn4ZhKa80AQS6Ep1cHnQoCg6Z”]}, “uuids”: {“dm-10”: [“edd313da-f2e6-4075-b3b3-4545f8b55c39”], “dm-11”: [“5777fce8-aa0f-4ec7-b150-c32e75e5b0bc”], “dm-12”: [“d9b6a6d5-9593-4b12-af55-b4093fb35bc0”], “sda1”: [“5eeb4d76-8e2a-400b-9ee2-e57645072359”], “dm-8”: [“fe79435e-cd62-4006-96fa-348de60707f7”], “dm-9”: [“44eac17a-ebe6-4480-be81-e7acaa7bc1c8”], “dm-6”: [“90f0f03a-a9be-4cad-812e-96900d266434”], “dm-7”: [“33a0b12d-c1c8-412c-a702-616076ecfe86”], “dm-4”: [“a1ed260a-7128-498e-96f0-5e48cbfeed4a”], “dm-5”: [“52c109c5-415c-47ae-8557-2f477b10b57c”], “dm-2”: [“93e2851b-577c-4141-b20c-2df3b8ad4873”], “dm-3”: [“302118aa-56c9-4ff0-81a2-bad2ce258fb0”], “dm-0”: [“093fedb2-6f85-42d6-9f39-7b15b766f328”], “dm-1”: [“5ea4a07d-0f7a-4ca9-8a1a-ee4c6a075355”]}}, “ansible\_default\_ipv4”: {“macaddress”: “50:6b:8d:2d:f1:07”, “network”: “10.21.31.0”, “mtu”: 1500, “broadcast”: “10.21.31.255”, “alias”: “eth0”, “netmask”: “255.255.255.0”, “address”: “10.21.31.202”, “interface”: “eth0”, “type”: “ether”, “gateway”: “10.21.31.1”}, “ansible\_swapfree\_mb”: 7993, “ansible\_default\_ipv6”: {}, “ansible\_distribution\_release”: “Maipo”, “ansible\_system\_vendor”: “Nutanix”, “ansible\_os\_family”: “RedHat”, “ansible\_cmdline”: {“LANG”: “en\_US.UTF-8”, “BOOT\_IMAGE”: “/vmlinuz-3.10.0-957.1.3.el7.x86\_64”, “quiet”: true, “rhgb”: true, “rd.lvm.lv”: “vgRoot/lvUsr”, “ro”: true, “root”: “/dev/mapper/vgRoot-lvRoot”}, “ansible\_effective\_user\_id”: 0, “ansible\_user\_gid”: 0, “ansible\_selinux”: {“status”: “disabled”}, “ansible\_product\_version”: “RHEL 7.3.0 PC (i440FX + PIIX, 1996)”, “ansible\_apparmor”: {“status”: “disabled”}, “ansible\_distribution\_file\_search\_string”: “Red Hat”, “ansible\_product\_uuid”: “DC3C2753-73FF-45E5-A189-73ECC0605117”, “ansible\_system”: “Linux”, “ansible\_pkg\_mgr”: “yum”, “ansible\_memfree\_mb”: 719, “ansible\_devices”: {“dm-10”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “20971520”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvHome”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UptXEOe0OcDpzB8wvbVn5OidHcCxhzWA0”], “uuids”: [“edd313da-f2e6-4075-b3b3-4545f8b55c39”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “10.00 GB”}, “dm-11”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “629145600”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvSGIReleasedat”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UUOLsQV1nG97OnXh9fd50KqIzLhvYHmW9”], “uuids”: [“5777fce8-aa0f-4ec7-b150-c32e75e5b0bc”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “300.00 GB”}, “dm-12”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “41943040”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvOracle”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UVrlbtGcZZsdfJKwKhN5Gk8dc38pGLCcM”], “uuids”: [“d9b6a6d5-9593-4b12-af55-b4093fb35bc0”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “20.00 GB”}, “sda”: {“scheduler\_mode”: “deadline”, “rotational”: “1”, “vendor”: “NUTANIX”, “sectors”: “1048576000”, “links”: {“masters”: [], “labels”: [], “ids”: [“scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896”], “uuids”: []}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “SCSI storage controller: Red Hat, Inc. Virtio SCSI”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: “VDISK”, “partitions”: {“sda2”: {“sectorsize”: 512, “uuid”: null, “links”: {“masters”: [“dm-0”, “dm-1”, “dm-10”, “dm-11”, “dm-12”, “dm-2”, “dm-3”, “dm-4”, “dm-5”, “dm-6”, “dm-7”, “dm-8”, “dm-9”], “labels”: [], “ids”: [“lvm-pv-uuid-RQCUgj-Tjlj-KWzv-ATdV-ZS3u-YWn6-ziJ7Im”, “scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896-part2”], “uuids”: []}, “sectors”: “1046476800”, “start”: “2099200”, “holders”: [“vgRoot-lvRoot”, “vgRoot-lvSwap”, “vgRoot-lvUsr”, “vgRoot-lvUsrLocalInstall”, “vgRoot-lvSGIReleaseBin”, “vgRoot-lvSGIRelease”, “vgRoot-lvSGI”, “vgRoot-lvVar”, “vgRoot-lvTmp”, “vgRoot-lvOpt”, “vgRoot-lvHome”, “vgRoot-lvSGIReleasedat”, “vgRoot-lvOracle”], “size”: “499.00 GB”}, “sda1”: {“sectorsize”: 512, “uuid”: “5eeb4d76-8e2a-400b-9ee2-e57645072359”, “links”: {“masters”: [], “labels”: [“boot”], “ids”: [“scsi-1NUTANIX\_NFS\_3\_0\_357461\_8ef3d31c\_e48d\_47fe\_90bd\_5549714c1896-part1”], “uuids”: [“5eeb4d76-8e2a-400b-9ee2-e57645072359”]}, “sectors”: “2097152”, “start”: “2048”, “holders”: [], “size”: “1.00 GB”}}, “holders”: [], “size”: “500.00 GB”}, “dm-8”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “10485760”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvTmp”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UTTVaJJf7PJn0uY0WCAOeJXzuIWsRnd1A”], “uuids”: [“fe79435e-cd62-4006-96fa-348de60707f7”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “5.00 GB”}, “dm-9”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “4194304”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvOpt”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UfqUkuE0k9q1qPQsj3h0jrLXvbmbCLiyi”], “uuids”: [“44eac17a-ebe6-4480-be81-e7acaa7bc1c8”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “2.00 GB”}, “dm-6”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “8388608”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvSGI”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UghimvNYTuxDjKobfn5lpwsvzfpzqOmJc”], “uuids”: [“90f0f03a-a9be-4cad-812e-96900d266434”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “4.00 GB”}, “dm-7”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “6291456”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvVar”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UA9bkaweKHCFEutGcB8POLtaSjU97fabT”], “uuids”: [“33a0b12d-c1c8-412c-a702-616076ecfe86”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “3.00 GB”}, “dm-4”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “4194304”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvSGIReleaseBin”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UfA2MA1njxTqZS6mgtrlKt7DEypN7i2c2”], “uuids”: [“a1ed260a-7128-498e-96f0-5e48cbfeed4a”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “2.00 GB”}, “dm-5”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “4194304”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvSGIRelease”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UbdqWterJy8Xp8iKiIwh3xxW2INyHpAGr”], “uuids”: [“52c109c5-415c-47ae-8557-2f477b10b57c”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “2.00 GB”}, “dm-2”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “8388608”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvUsr”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UaFR5SoBYk8FjzCdJo8wOvlffuIGd9CFP”], “uuids”: [“93e2851b-577c-4141-b20c-2df3b8ad4873”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “4.00 GB”}, “dm-3”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “37814272”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvUsrLocalInstall”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UdT2t1YcZ8SfAlFMRdCf62p9r39wpnbtF”], “uuids”: [“302118aa-56c9-4ff0-81a2-bad2ce258fb0”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “18.03 GB”}, “dm-0”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “8388608”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvRoot”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UlpIm0yaAAGfA94TXAuENWYtmoGlghW35”], “uuids”: [“093fedb2-6f85-42d6-9f39-7b15b766f328”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “4.00 GB”}, “dm-1”: {“scheduler\_mode”: “”, “rotational”: “1”, “vendor”: null, “sectors”: “16777216”, “links”: {“masters”: [], “labels”: [], “ids”: [“dm-name-vgRoot-lvSwap”, “dm-uuid-LVM-kdpOThPf0kZ4vqMF1tUFUwhdq0NXj71UmHlY2lQCn4ZhKa80AQS6Ep1cHnQoCg6Z”], “uuids”: [“5ea4a07d-0f7a-4ca9-8a1a-ee4c6a075355”]}, “sas\_device\_handle”: null, “sas\_address”: null, “virtual”: 1, “host”: “”, “sectorsize”: “512”, “removable”: “0”, “support\_discard”: “512”, “model”: null, “partitions”: {}, “holders”: [], “size”: “8.00 GB”}}, “ansible\_user\_uid”: 0, “ansible\_lvm”: {“pvs”: {”/dev/sda2”: {“free\_g”: “116.96”, “size\_g”: “499.00”, “vg”: “vgRoot”}}, “lvs”: {“lvOpt”: {“size\_g”: “2.00”, “vg”: “vgRoot”}, “lvRoot”: {“size\_g”: “4.00”, “vg”: “vgRoot”}, “lvUsrLocalInstall”: {“size\_g”: “18.03”, “vg”: “vgRoot”}, “lvSGIReleaseBin”: {“size\_g”: “2.00”, “vg”: “vgRoot”}, “lvSGIReleasedat”: {“size\_g”: “300.00”, “vg”: “vgRoot”}, “lvSwap”: {“size\_g”: “8.00”, “vg”: “vgRoot”}, “lvSGI”: {“size\_g”: “4.00”, “vg”: “vgRoot”}, “lvHome”: {“size\_g”: “10.00”, “vg”: “vgRoot”}, “lvTmp”: {“size\_g”: “5.00”, “vg”: “vgRoot”}, “lvVar”: {“size\_g”: “3.00”, “vg”: “vgRoot”}, “lvUsr”: {“size\_g”: “4.00”, “vg”: “vgRoot”}, “lvOracle”: {“size\_g”: “20.00”, “vg”: “vgRoot”}, “lvSGIRelease”: {“size\_g”: “2.00”, “vg”: “vgRoot”}}, “vgs”: {“vgRoot”: {“free\_g”: “116.96”, “size\_g”: “499.00”, “num\_lvs”: “13”, “num\_pvs”: “1”}}}, “ansible\_distribution”: “RedHat”, “ansible\_user\_dir”: “/root”, “ansible\_env”: {“HISTTIMEFORMAT”: "%Y-%m-%d,%H:%M:%S: ", “HISTFILE”: “/root/.bash\_history\_root”, “ORACLE\_BASE”: “/oracle/software”, “LESSOPEN”: “||/usr/bin/lesspipe.sh %s”, “NLS\_LANG”: “american\_america.we8iso8859p15”, “SSH\_CLIENT”: “10.20.3.5 33526 22”, “LOGNAME”: “root”, “USER”: “root”, “PATH”: “/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/oracle/software/12cR1/client/bin”, “HOME”: “/root”, “REMOTE\_LOCATION”: “10.20.3.5 47380 22”, “LD\_LIBRARY\_PATH”: “:/oracle/software/12cR1/client/lib”, “LANG”: “en\_US.UTF-8”, “TERM”: “xterm”, “SHELL”: “/bin/bash”, “ORACLE\_HOME”: “/oracle/software/12cR1/client”, “SHLVL”: “2”, “HISTFILESIZE”: “1000”, “XDG\_RUNTIME\_DIR”: “/run/user/0”, “ORACLE12C\_HOME”: “/oracle/software/12cR1/client”, “REMOTE\_USER”: “root”, “XDG\_SESSION\_ID”: “101029”, “\_”: “/usr/bin/python”, “SSH\_CONNECTION”: “10.20.3.5 33526 10.21.31.202 22”, “SSH\_TTY”: “/dev/pts/12”, “HISTCONTROL”: “ignoreboth”, “PWD”: “/root”, “MAIL”: “/var/mail/root”, “LS\_COLORS”: "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:_.tar=01;31:_.tgz=01;31:_.arc=01;31:_.arj=01;31:_.taz=01;31:_.lha=01;31:_.lz4=01;31:_.lzh=01;31:_.lzma=01;31:_.tlz=01;31:_.txz=01;31:_.tzo=01;31:_.t7z=01;31:_.zip=01;31:_.z=01;31:_.Z=01;31:_.dz=01;31:_.gz=01;31:_.lrz=01;31:_.lz=01;31:_.lzo=01;31:_.xz=01;31:_.bz2=01;31:_.bz=01;31:_.tbz=01;31:_.tbz2=01;31:_.tz=01;31:_.deb=01;31:_.rpm=01;31:_.jar=01;31:_.war=01;31:_.ear=01;31:_.sar=01;31:_.rar=01;31:_.alz=01;31:_.ace=01;31:_.zoo=01;31:_.cpio=01;31:_.7z=01;31:_.rz=01;31:_.cab=01;31:_.jpg=01;35:_.jpeg=01;35:_.gif=01;35:_.bmp=01;35:_.pbm=01;35:_.pgm=01;35:_.ppm=01;35:_.tga=01;35:_.xbm=01;35:_.xpm=01;35:_.tif=01;35:_.tiff=01;35:_.png=01;35:_.svg=01;35:_.svgz=01;35:_.mng=01;35:_.pcx=01;35:_.mov=01;35:_.mpg=01;35:_.mpeg=01;35:_.m2v=01;35:_.mkv=01;35:_.webm=01;35:_.ogm=01;35:_.mp4=01;35:_.m4v=01;35:_.mp4v=01;35:_.vob=01;35:_.qt=01;35:_.nuv=01;35:_.wmv=01;35:_.asf=01;35:_.rm=01;35:_.rmvb=01;35:_.flc=01;35:_.avi=01;35:_.fli=01;35:_.flv=01;35:_.gl=01;35:_.dl=01;35:_.xcf=01;35:_.xwd=01;35:_.yuv=01;35:_.cgm=01;35:_.emf=01;35:_.axv=01;35:_.anx=01;35:_.ogv=01;35:_.ogx=01;35:_.aac=01;36:_.au=01;36:_.flac=01;36:_.mid=01;36:_.midi=01;36:_.mka=01;36:_.mp3=01;36:_.mpc=01;36:_.ogg=01;36:_.ra=01;36:_.wav=01;36:_.axa=01;36:_.oga=01;36:_.spx=01;36:_.xspf=01;36:”}, “ansible\_distribution\_major\_version”: “7”, “module\_setup”: true, “ansible\_processor\_count”: 8, “ansible\_hostname”: “applicationservername”, “ansible\_processor\_vcpus”: 8, “ansible\_swaptotal\_mb”: 8191, “ansible\_lsb”: {}, “ansible\_real\_group\_id”: 0, “ansible\_bios\_date”: “04/01/2014”, “ansible\_all\_ipv6\_addresses”: [“fe80::526b:8dff:fe2d:f107”], “ansible\_interfaces”: [“lo”, “eth0”], “ansible\_uptime\_seconds”: 29722367, “ansible\_machine\_id”: “3bbd5fafd3574b4eb503bf93b60cc0b4”, “ansible\_kernel”: “3.10.0-957.1.3.el7.x86\_64”, “ansible\_memory\_mb”: {“real”: {“total”: 16011, “used”: 15292, “free”: 719}, “swap”: {“cached”: 0, “total”: 8191, “free”: 7993, “used”: 198}, “nocache”: {“used”: 2910, “free”: 13101}}, “ansible\_iscsi\_iqn”: “”, “ansible\_system\_capabilities\_enforced”: “True”, “ansible\_python”: {“executable”: “/usr/bin/python”, “version”: {“micro”: 5, “major”: 2, “releaselevel”: “final”, “serial”: 0, “minor”: 7}, “type”: “CPython”, “has\_sslcontext”: true, “version\_info”: [2, 7, 5, “final”, 0]}, “ansible\_processor\_threads\_per\_core”: 1, “ansible\_fqdn”: “applicationservername”, “ansible\_mounts”: [{“block\_used”: 81425, “uuid”: “093fedb2-6f85-42d6-9f39-7b15b766f328”, “size\_total”: 4093313024, “block\_total”: 999344, “mount”: “/”, “block\_available”: 917919, “size\_available”: 3759796224, “fstype”: “ext4”, “inode\_total”: 262144, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvRoot”, “inode\_used”: 4754, “block\_size”: 4096, “inode\_available”: 257390}, {“block\_used”: 644371, “uuid”: “93e2851b-577c-4141-b20c-2df3b8ad4873”, “size\_total”: 4093313024, “block\_total”: 999344, “mount”: “/usr”, “block\_available”: 354973, “size\_available”: 1453969408, “fstype”: “ext4”, “inode\_total”: 262144, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvUsr”, “inode\_used”: 91637, “block\_size”: 4096, “inode\_available”: 170507}, {“block\_used”: 55362, “uuid”: “5eeb4d76-8e2a-400b-9ee2-e57645072359”, “size\_total”: 1023303680, “block\_total”: 249830, “mount”: “/boot”, “block\_available”: 194468, “size\_available”: 796540928, “fstype”: “ext4”, “inode\_total”: 65536, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/sda1”, “inode\_used”: 339, “block\_size”: 4096, “inode\_available”: 65197}, {“block\_used”: 424493, “uuid”: “302118aa-56c9-4ff0-81a2-bad2ce258fb0”, “size\_total”: 19001409536, “block\_total”: 4639016, “mount”: “/usr/local/install”, “block\_available”: 4214523, “size\_available”: 17262686208, “fstype”: “ext4”, “inode\_total”: 1136800, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvUsrLocalInstall”, “inode\_used”: 14, “block\_size”: 4096, “inode\_available”: 1136786}, {“block\_used”: 733017, “uuid”: “d9b6a6d5-9593-4b12-af55-b4093fb35bc0”, “size\_total”: 21003583488, “block\_total”: 5127828, “mount”: “/oracle”, “block\_available”: 4394811, “size\_available”: 18001145856, “fstype”: “ext4”, “inode\_total”: 1310720, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvOracle”, “inode\_used”: 12640, “block\_size”: 4096, “inode\_available”: 1298080}, {“block\_used”: 91748, “uuid”: “a1ed260a-7128-498e-96f0-5e48cbfeed4a”, “size\_total”: 2046640128, “block\_total”: 499668, “mount”: “/sgiReleasebin”, “block\_available”: 407920, “size\_available”: 1670840320, “fstype”: “ext4”, “inode\_total”: 131072, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvSGIReleaseBin”, “inode\_used”: 6804, “block\_size”: 4096, “inode\_available”: 124268}, {“block\_used”: 123489, “uuid”: “33a0b12d-c1c8-412c-a702-616076ecfe86”, “size\_total”: 3103539200, “block\_total”: 757700, “mount”: “/var”, “block\_available”: 634211, “size\_available”: 2597728256, “fstype”: “ext4”, “inode\_total”: 196608, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvVar”, “inode\_used”: 4049, “block\_size”: 4096, “inode\_available”: 192559}, {“block\_used”: 116505, “uuid”: “44eac17a-ebe6-4480-be81-e7acaa7bc1c8”, “size\_total”: 2046640128, “block\_total”: 499668, “mount”: “/opt”, “block\_available”: 383163, “size\_available”: 1569435648, “fstype”: “ext4”, “inode\_total”: 131072, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvOpt”, “inode\_used”: 5145, “block\_size”: 4096, “inode\_available”: 125927}, {“block\_used”: 241284, “uuid”: “90f0f03a-a9be-4cad-812e-96900d266434”, “size\_total”: 4160421888, “block\_total”: 1015728, “mount”: “/sgi”, “block\_available”: 774444, “size\_available”: 3172122624, “fstype”: “ext4”, “inode\_total”: 262144, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvSGI”, “inode\_used”: 2532, “block\_size”: 4096, “inode\_available”: 259612}, {“block\_used”: 56514, “uuid”: “52c109c5-415c-47ae-8557-2f477b10b57c”, “size\_total”: 2046640128, “block\_total”: 499668, “mount”: “/sgiRelease”, “block\_available”: 443154, “size\_available”: 1815158784, “fstype”: “ext4”, “inode\_total”: 131072, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvSGIRelease”, “inode\_used”: 5620, “block\_size”: 4096, “inode\_available”: 125452}, {“block\_used”: 8422871, “uuid”: “5777fce8-aa0f-4ec7-b150-c32e75e5b0bc”, “size\_total”: 316932947968, “block\_total”: 77376208, “mount”: “/sgiReleasedat”, “block\_available”: 68953337, “size\_available”: 282432868352, “fstype”: “ext4”, “inode\_total”: 19660800, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvSGIReleasedat”, “inode\_used”: 21171, “block\_size”: 4096, “inode\_available”: 19639629}, {“block\_used”: 75182, “uuid”: “fe79435e-cd62-4006-96fa-348de60707f7”, “size\_total”: 5150212096, “block\_total”: 1257376, “mount”: “/tmp”, “block\_available”: 1182194, “size\_available”: 4842266624, “fstype”: “ext4”, “inode\_total”: 327680, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvTmp”, “inode\_used”: 84, “block\_size”: 4096, “inode\_available”: 327596}, {“block\_used”: 144803, “uuid”: “edd313da-f2e6-4075-b3b3-4545f8b55c39”, “size\_total”: 10434662400, “block\_total”: 2547525, “mount”: “/home”, “block\_available”: 2402722, “size\_available”: 9841549312, “fstype”: “ext4”, “inode\_total”: 655360, “options”: “rw,relatime,stripe=256,data=ordered”, “device”: “/dev/mapper/vgRoot-lvHome”, “inode\_used”: 112, “block\_size”: 4096, “inode\_available”: 655248}], “ansible\_eth0”: {“macaddress”: “50:6b:8d:2d:f1:07”, “features”: {“tx\_checksum\_ipv4”: “off [fixed]”, “generic\_receive\_offload”: “on”, “tx\_checksum\_ipv6”: “off [fixed]”, “tx\_scatter\_gather\_fraglist”: “off [fixed]”, “rx\_all”: “off [fixed]”, “highdma”: “on [fixed]”, “rx\_fcs”: “off [fixed]”, “tx\_lockless”: “off [fixed]”, “tx\_tcp\_ecn\_segmentation”: “on”, “rx\_udp\_tunnel\_port\_offload”: “off [fixed]”, “tx\_tcp6\_segmentation”: “on”, “tx\_gso\_robust”: “off [fixed]”, “tx\_ipip\_segmentation”: “off [fixed]”, “tx\_tcp\_mangleid\_segmentation”: “off”, “tx\_checksumming”: “on”, “vlan\_challenged”: “off [fixed]”, “loopback”: “off [fixed]”, “fcoe\_mtu”: “off [fixed]”, “scatter\_gather”: “on”, “tx\_checksum\_sctp”: “off [fixed]”, “tx\_vlan\_stag\_hw\_insert”: “off [fixed]”, “rx\_vlan\_stag\_hw\_parse”: “off [fixed]”, “tx\_gso\_partial”: “off [fixed]”, “rx\_gro\_hw”: “off [fixed]”, “rx\_vlan\_stag\_filter”: “off [fixed]”, “large\_receive\_offload”: “off [fixed]”, “tx\_scatter\_gather”: “on”, “rx\_checksumming”: “on [fixed]”, “tx\_tcp\_segmentation”: “on”, “netns\_local”: “off [fixed]”, “busy\_poll”: “off [fixed]”, “generic\_segmentation\_offload”: “on”, “tx\_udp\_tnl\_segmentation”: “off [fixed]”, “tcp\_segmentation\_offload”: “on”, “l2\_fwd\_offload”: “off [fixed]”, “rx\_vlan\_offload”: “off [fixed]”, “ntuple\_filters”: “off [fixed]”, “tx\_gre\_csum\_segmentation”: “off [fixed]”, “tx\_nocache\_copy”: “off”, “tx\_udp\_tnl\_csum\_segmentation”: “off [fixed]”, “udp\_fragmentation\_offload”: “on”, “tx\_sctp\_segmentation”: “off [fixed]”, “tx\_sit\_segmentation”: “off [fixed]”, “tx\_checksum\_fcoe\_crc”: “off [fixed]”, “hw\_tc\_offload”: “off [fixed]”, “tx\_checksum\_ip\_generic”: “on”, “tx\_fcoe\_segmentation”: “off [fixed]”, “rx\_vlan\_filter”: “on [fixed]”, “tx\_vlan\_offload”: “off [fixed]”, “receive\_hashing”: “off [fixed]”, “tx\_gre\_segmentation”: “off [fixed]”}, “pciid”: “virtio0”, “module”: “virtio\_net”, “mtu”: 1500, “device”: “eth0”, “promisc”: false, “timestamping”: [“rx\_software”, “software”], “ipv4”: {“broadcast”: “10.21.31.255”, “netmask”: “255.255.255.0”, “network”: “10.21.31.0”, “address”: “10.21.31.202”}, “ipv6”: [{“scope”: “link”, “prefix”: “64”, “address”: “fe80::526b:8dff:fe2d:f107”}], “active”: true, “type”: “ether”, “hw\_timestamp\_filters”: }, “ansible\_nodename”: “applicationservername”, “ansible\_product\_name”: “AHV”, “ansible\_machine”: “x86\_64”, “ansible\_system\_capabilities”: [“cap\_chown”, “cap\_dac\_override”, “cap\_dac\_read\_search”, “cap\_fowner”, “cap\_fsetid”, “cap\_kill”, “cap\_setgid”, “cap\_setuid”, “cap\_setpcap”, “cap\_linux\_immutable”, “cap\_net\_bind\_service”, “cap\_net\_broadcast”, “cap\_net\_admin”, “cap\_net\_raw”, “cap\_ipc\_lock”, “cap\_ipc\_owner”, “cap\_sys\_module”, “cap\_sys\_rawio”, “cap\_sys\_chroot”, “cap\_sys\_ptrace”, “cap\_sys\_pacct”, “cap\_sys\_admin”, “cap\_sys\_boot”, “cap\_sys\_nice”, “cap\_sys\_resource”, “cap\_sys\_time”, “cap\_sys\_tty\_config”, “cap\_mknod”, “cap\_lease”, “cap\_audit\_write”, “cap\_audit\_control”, “cap\_setfcap”, “cap\_mac\_override”, “cap\_mac\_admin”, “cap\_syslog”, “35”, “36+ep”], “ansible\_all\_ipv4\_addresses”: [“10.21.31.202”], “ansible\_python\_version”: “2.7.5”}}\r\n’, ‘Shared connection to applicationservername closed.\r\n’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername ‘/bin/sh -c ‘"’“‘rm -f -r /root/.ansible/tmp/ansible-tmp-1582795747.55-108734989131518/ \> /dev/null 2\>&1 && sleep 0’”’"‘’  
> (0, ‘’, ‘’)  
> ok: [applicationservername]  
> META: ran handlers
> 
> TASK [Check who’s master and stop DB processe] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> task path: /etc/ansible/playbook/playbook\_name.yml:4  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername ‘/bin/sh -c ‘"’“‘echo ~ && sleep 0’”’“‘’  
> (0, ‘/root\n’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername '/bin/sh -c '”‘"’( umask 77 && mkdir -p “`echo /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033`” && echo ansible-tmp-1582795768.07-102440381255033=“`echo /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033`” ) && sleep 0’“'”‘’  
> (0, ‘ansible-tmp-1582795768.07-102440381255033=/root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033\n’, ‘’)  
> Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py  
> PUT /root/.ansible/tmp/ansible-local-83798z9BMTv/tmpY5CwXu TO /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033/AnsiballZ\_command.py  
> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f ‘[applicationservername]’  
> (0, ‘sftp\> put /root/.ansible/tmp/ansible-local-83798z9BMTv/tmpY5CwXu /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033/AnsiballZ\_command.py\n’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f applicationservername ‘/bin/sh -c ‘"’“‘chmod u+x /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033/ /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033/AnsiballZ\_command.py && sleep 0’”’“‘’  
> (0, ‘’, ‘’)  
> ESTABLISH SSH CONNECTION FOR USER: None  
> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/05db216f3f -tt applicationservername '/bin/sh -c '”‘"’/usr/bin/python /root/.ansible/tmp/ansible-tmp-1582795768.07-102440381255033/AnsiballZ\_command.py && sleep 0’“'”‘’

Ansible “freezeses” at this point. No more actions after that; this was the last output.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 27, 2020, 9:41am UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341/2 "2020-02-27T09:41:06Z")

</div>

This typo in the boolean might be the culprit?

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 27, 2020, 9:44am UTC](https://forum.ansible.com/t/running-perl-script-on-remote-host-as-applcation-user/32341/3 "2020-02-27T09:44:49Z")

</div>

> Thank you guys
> 
> @Kai Stian Olstad  
> /\> It's probably because your script /sgi/atx/src/atxBoxHWM.pl need some
> 
> > environment variables set./
> 
> Yes, I guess you're right on this one. But I thought using "shell:" within the ansible playbook would set the right  
> enviroment.
> 
> \*@Dick Visser:\*  
> This the whole playbook with all variables etc.:
> 
> &nbsp;&nbsp;&nbsp;&nbsp;---  
> &nbsp;&nbsp;&nbsp;&nbsp;- hosts: applicationservername  
> &nbsp;&nbsp;&nbsp;&nbsp; tasks:  
> &nbsp;&nbsp;&nbsp;&nbsp; - name: Check who's master and stop DB processe  
> &nbsp;&nbsp;&nbsp;&nbsp; become: ture  
> &nbsp;&nbsp;&nbsp;&nbsp; become\_user: applicationuser  
> &nbsp;&nbsp;&nbsp;&nbsp; shell: /sgi/atx/src/atxBoxHWM.pl  
> &nbsp;&nbsp;&nbsp;&nbsp; register: command\_result  
> &nbsp;&nbsp;&nbsp;&nbsp; - debug: msg="{{ command\_result.stdout }}"  
> &nbsp;&nbsp;&nbsp;&nbsp; - debug: msg="{{ command\_result.stderr }}"

Hello,

1. become: ture should be become: true  
2. use command: instead of shell: (see docs for justification)  
3.  
[https://docs.ansible.com/ansible/latest/reference\_appendices/faq.html#how-do-i-get-ansible-to-notice-a-dead-target-in-a-timely-manner](https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-get-ansible-to-notice-a-dead-target-in-a-timely-manner)

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
