Skip to content

Instantly share code, notes, and snippets.

@samueljon
Created September 15, 2021 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueljon/fb8daec54e4ec4bc6165e13c2eaef25a to your computer and use it in GitHub Desktop.
Save samueljon/fb8daec54e4ec4bc6165e13c2eaef25a to your computer and use it in GitHub Desktop.
---
# tasks file for xrd-ansible-onboard
- name: Ansible onboarding
vmware_vm_shell:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: no
datacenter: "{{ datacenter }}"
folder: "{{ vcenter_folder }}"
vm_id: "{{ hostname }}.{{ domainname }}"
vm_username: root
vm_password: "{{ root_pass }}"
vm_shell: "/usr/bin/curl"
vm_shell_args: "-L https://path.to.payload.sh | bash "
wait_for_process: yes
timeout: 300
delegate_to: localhost
register: shell_command_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment