Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created November 30, 2017 13:18
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 jrisch/a1f27bd775f3d9e00fc73e50e73d2b6b to your computer and use it in GitHub Desktop.
Save jrisch/a1f27bd775f3d9e00fc73e50e73d2b6b to your computer and use it in GitHub Desktop.
- name: Install Xentools on deployed vm
hosts: deployed_vms
tasks:
- name: Mount xentools CD
command: mount /dev/xvdd /mnt
- name: Run the xentools installer
command: /mnt/Linux/install.sh -n
- name: Unmount the xentools CD
command: umount /mnt
- name: Eject xentools CD
hosts: xenservers
tasks:
- name: Eject the xentools CD
command: xe vm-cd-eject vm={{ vmuuid.stdout }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment