Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - name: create esxi host group
- hosts: all
- connection: local
- tasks:
- - name: create temporary esxi host group
- add_host:
- name: "{{ esxi_host }}"
- groups: esxi
- ansible_user: "{{ esxi_user }}"
- ansible_ssh_pass: "{{ esxi_pass }}"
- run_once: true
- PLAY [create esxi host group] *************************************************************************************************
- TASK [create temporary esxi host group] ***************************************************************************************
- fatal: [dps1]: FAILED! => {"msg": "The field 'ssh_common_args' has an invalid value, which includes an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_host'"}
Add Comment
Please, Sign In to add comment