corbins

Untitled

Mar 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ---
  2. - name: create esxi host group
  3. hosts: all
  4. connection: local
  5.  
  6. tasks:
  7. - name: create temporary esxi host group
  8. add_host:
  9. name: "{{ esxi_host }}"
  10. groups: esxi
  11. ansible_user: "{{ esxi_user }}"
  12. ansible_ssh_pass: "{{ esxi_pass }}"
  13. run_once: true
  14.  
  15. PLAY [create esxi host group] *************************************************************************************************
  16.  
  17. TASK [create temporary esxi host group] ***************************************************************************************
  18. 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