I am running winrm from my Mac with ansible:

here is my task thats causes a failure, don't know what variable is being 
referred here, any help appreciated.

*My task file for the playbook with the role:*

- name: check if virtualenv exists

  tags: 

    - InstallWiresharkService

    - InstallVirtualEnv

  win_stat: path="C:\\Users\\voiceqa\\venv"

  register: stat_file


- name: debug stat

  tags: InstallWiresharkService

  debug: var=stat_file.stat.exists

  

- name: install virtual environment

  tags: 

    - InstallWiresharkService

    - InstallVirtualEnv

  command: virtualenv C:\Users\voiceqa\venv

  any_errors_fatal: true

  when: not stat_file.stat.exists

  register: out


- debug:  var=out.stderr_lines

  tags: InstallWiresharkService


*playbook Run output snippet at error:*


ok: [10.203.189.4] => {"changed": false, "invocation": {"module_name": 
"win_stat"}, "stat": {"exists": false}}

Perform task: TASK: windows : debug stat (y/n/c): y


Perform task: TASK: windows : debug stat (y/n/c): 
******************************


TASK [windows : debug stat] 
****************************************************

*task path: 
/Users/dnveer/p4_ws/comms/qa/common/python/projects/dlb-ansible-utils/main/dlb-ansible-utils/src/dlb_ansible_utils/playbooks/roles/windows/tasks/main.yml:10*

ok: [10.203.189.4] => {

    "stat_file.stat.exists": false

}

Perform task: TASK: windows : install virtual environment (y/n/c): y


Perform task: TASK: windows : install virtual environment (y/n/c): 
*************


TASK [windows : install virtual environment] 
***********************************

*task path: 
/Users/dnveer/p4_ws/comms/qa/common/python/projects/dlb-ansible-utils/main/dlb-ansible-utils/src/dlb_ansible_utils/playbooks/roles/windows/tasks/main.yml:14*

skipping: [10.203.189.4] => {"changed": false, "invocation": 
{"module_args": {"_raw_params": "virtualenv C:\\Users\\voiceqa\\venv"}, 
"module_name": "raw"}, "skipped": true}

Perform task: TASK: windows : debug (y/n/c): y


Perform task: TASK: windows : debug (y/n/c): 
***********************************


TASK [windows : debug] 
*********************************************************

*task path: 
/Users/dnveer/p4_ws/comms/qa/common/python/projects/dlb-ansible-utils/main/dlb-ansible-utils/src/dlb_ansible_utils/playbooks/roles/windows/tasks/main.yml:23*

ok: [10.203.189.4] => {

    "out.stderr_lines": "VARIABLE IS NOT DEFINED!"

}

Perform task ..




-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/50acb7f3-1ce4-47c6-be9c-2bda51ba8d0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to