Skip to content

Instantly share code, notes, and snippets.

@mpolednik
Created July 23, 2017 19:09
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 mpolednik/3be277e34ac8e27e17b5ca291796de7a to your computer and use it in GitHub Desktop.
Save mpolednik/3be277e34ac8e27e17b5ca291796de7a to your computer and use it in GitHub Desktop.
- hosts: engine
remote_user: root
tasks:
- name: stop ovirt-engine service
service:
name: 'ovirt-engine'
state: stopped
- name: uninstall old ovirt-engine
yum:
name: 'ovirt-engine'
state: absent
- name: update everything
yum:
name: '*'
state: latest
- name: install new ovirt-engine
yum:
name: 'ovirt-engine'
state: latest
- name: run engine-setup
command: engine-setup --accept-defaults
- name: start ovirt-engine service
service:
name: 'ovirt-engine'
state: started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment