Created
September 15, 2021 10:12
-
-
Save samueljon/fb8daec54e4ec4bc6165e13c2eaef25a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# 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