On Friday, May 8, 2020 at 5:55:14 PM UTC+5:30, Dick Visser wrote:
>
> On Fri, 8 May 2020 at 13:39, Dhilipsingh G <[email protected] 
> <javascript:>> wrote: 
>
> >> - What do the relevant inventory/tasks/playbooks/code/variables look 
> like. 
>
> You forgot the most important information ^^^ 
>  playbook :
>
---

- name: Install Databasedeploy
  hosts: 10.105.83.32
  become_method: runas

  tasks:
  #  - name: copy the bat file
  #    win_copy:
  #      src: /etc/ansible/db.bat
  #      dest:  F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy\
  #  - name: Copy folder contents
  #    win_copy:
  #      src: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy\config_3.txt
  #      dest: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy\config.txt
  #      remote_src: yes

#run the py script1
    - name: Run a script with arguments
      win_command: db.bat
      args:
        chdir: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy
      become_user: lab\dgunasin
# run the script with config 2
    - name: Copy config 2
      win_copy:
        src: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy\config_4.txt
        dest: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy\config.txt
        remote_src: yes

#run the py script1
    - name: Run a script with arguments
      win_command: db.bat
      args:
        chdir: F:\FileShare\FTPRoot\Chidambaram_Files\DBDeploy
        remote_src: yes

host file: 
[Computeserver]
10.105.83.33
[Computeserver:vars]
ansible_user=xxxx
ansible_password=xxxx
ansible_port=5986
ansible_connection=winrm
ansible_winrm_scheme=https
ansible_winrm_server_cert_validation=ignore
ansible_winrm_transport=ntlm
 
No variable and python code is in my client file , unable to copy here .

>
> -- 
> Dick Visser 
> Trust & Identity Service Operations Manager 
> GÉANT 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cc7268ef-77ed-4678-b9ed-160600a1a2da%40googlegroups.com.

Reply via email to