[ansible-project] how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread aditya govindaraju
Am trying to write a playbook in order to execute a python script running on a different subdirectory under the same project folder A python script running on - /home/{username}/project1/reports/test1.py And playbook running on - /home/{username}/project1/test1.yml I need to execute a python

[ansible-project] vmfs device name of datastore

2020-05-27 Thread Sadanand Alegaonkar
Hello All, I am trying to find out vmfs device name i.e. storage Lun number or WWPN (naa.60002ac0 ) I searched in vmware datastore facts module not able to get the exact result. Please help me to get. Thanks Sadanand -- You received this message because you are

[ansible-project] Re: how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread aditya govindaraju
After i added delegate_to:localhost, playbook ran successful but 'ignored' with no output. Output error: fatal: [switch1 -> localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "_raw_params": "python test1.py", "_uses_shell":

Re: [ansible-project] how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread Stefan Hornburg (Racke)
On 5/27/20 12:31 PM, aditya govindaraju wrote: > Am trying to write a playbook in order to execute a python script running on > a different subdirectory under the same > project folder > > A python script running on - /home/{username}/project1/reports/test1.py > > And playbook running on -

Re: [ansible-project] Using variable to compare stdout parameter

2020-05-27 Thread Sivakumar Saravanamuthu
I sorted out - name: read the chrony file shell: grep 'server' /etc/chrony.conf register: source_one - name: Checking the NTP Source when: - source_one.stdout is search("*>*>*>*") and source_one.stdout is search(" *>*>*>* ") - "'AUS' in group_names" debug:

Re: [ansible-project] Re: how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread Stefan Hornburg (Racke)
On 5/27/20 2:43 PM, aditya govindaraju wrote: > After i added delegate_to:localhost, playbook ran successful but 'ignored' > with no output. > > Output error: > > fatal: [switch1 -> localhost]: FAILED! => { >     "changed": false,  >     "invocation": { >         "module_args": { >            

[ansible-project] Re: how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread aditya govindaraju
Please find the below error message The full traceback is: WARNING: The below traceback may *not* be related to the actual failure. File "/tmp/ansible_command_payload_4s7z5o/ansible_command_payload.zip/ansible/modules/commands/command.py", line 278, in main fatal: [switch1]: FAILED! => {

Re: [ansible-project] Re: how to execute python script using ansible, python script running on different sub-directory under same project folder

2020-05-27 Thread Stefan Hornburg (Racke)
On 5/27/20 1:20 PM, aditya govindaraju wrote: > Please find the below error message > > The full traceback is: > WARNING: The below traceback may *not* be related to the actual failure. >   File >

[ansible-project] is it possible to connect ms sql server locally with ansible?

2020-05-27 Thread vinod devops
is it possible to connect ms sql server locally with ansible? I have paas database, i need to execute sql sripts from ansible control machine. first i need to login into paas db and execute the sql scripts. Thanks vinod -- You received this message because you are subscribed to the Google

Re: [ansible-project] How to use cloud-init to customize a windows virtual machine in oracle cloud on first boot using ansible

2020-05-27 Thread BrokeDBA
Hi Rahul, Did you finally get it to run ? I am trying to do the same for an oracle cloud vm launch. On Tuesday, November 26, 2019 at 5:01:15 AM UTC-5, Rahul Rawat wrote: > > Yes, it's the same question. > We just want when windows instance created using oci-ansible-modules from > ansible role.

Re: [ansible-project] vmfs device name of datastore

2020-05-27 Thread Abhijeet Kasurde
Hi Sadanand, Could you please share the playbook that you are using? Thanks On Wed, May 27, 2020 at 4:42 PM Sadanand Alegaonkar < sadanandalegaon...@gmail.com> wrote: > Hello All, > > I am trying to find out vmfs device name i.e. storage Lun number or WWPN >

Re: [ansible-project] vmfs device name of datastore

2020-05-27 Thread Sadanand Alegaonkar
Hello Abhijeet, Thanks for giving reply. As of now i am searching ansible module that will help me to get list of datastore WWPN number, so that not able to write playbook for the same. I tried your existing VMware playbook examples but didnt find vmfs device number in that.. I appreciate your