"Unexpected parameter type in action" error

11 views
Skip to first unread message

Colin Coe

unread,
Sep 8, 2020, 9:37:26 AM9/8/20
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages