Hey!

I'm attempting to add a Windows element to one of my Linux playbooks.

They're both separate roles at the moment. The Linux one has hosts set to 
localhost, but the Windows part needs to be delegated elsewhere, AND 
keeping variables from the Linux part.

I've attended to add Windows commands with delegate to my Linux playbook, 
but no dice. I'm getting a port 22 refused. For reference here's my 
playbook:

---
- hosts: localhost
  vars_files:
    - vault/core_db_vars.yml
  roles:
  - vm-deploy

This then runs through the role, but at the end, I have:

  - name: Create directory C:\Temp
    win_file:
      path: C:\Temp
      state: directory
    delegate_to: windows_host.domain

Is there a 'proper' way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to