Hi all

I've been bashing my head against this problem for several days.

I have a playbook that is called as part of an Ansible Tower workflow.

The playbook calls another ansible playbook and its this second playbook 
that throws the error.

The main playbook calls the second playbook like so:
    - name: Provision Stage3 Windows Image
      include_tasks: stage3-wds.yml
      when: var_host_role.find('win') != -1
      tags:
        - pxe_boot

The second playbook is:
---
- name: WDS - Prestage host
  hosts: localhost
  gather_facts: false
  vars:
    var_wds_client_name: "{{ var_hostname }}"
    var_wds_client_mac: "{{ hostvars['localhost']['var_vm_mac'] | 
regex_replace(':') }}"
  roles:
    - role: manage_wds
  tags: prestage-wds

- name: Connect to RHV and power the VM on
  ovirt_vm:
    auth: "{{ var_rhv_auth_token }}"
    state: running
    name: "{{ inventory_hostname }}"

Even when I remove the "hosts" and "gather_facts" from the second playbook, 
it still fails with the same message.

Any ideas?

Thanks in advance

-- 
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/51cc676a-8464-4176-961c-e0ebc0441f8dn%40googlegroups.com.

Reply via email to