Skip to content

Instantly share code, notes, and snippets.

@jdewit
Last active August 29, 2015 13:56
Show Gist options
  • Save jdewit/9038743 to your computer and use it in GitHub Desktop.
Save jdewit/9038743 to your computer and use it in GitHub Desktop.
Ansible unoconv task. Tested on Ubuntu 12.04
---
# unoconvd template can be found at https://gist.github.com/jdewit/9038765
- name: Unoconv | Install dependencies
action: apt pkg={{ item }} state=installed
tags: unoconv
with_items:
- openjdk-6-jdk
- libreoffice-core
- libreoffice-common
- libreoffice-writer
- python-uno
- make
- name: Unoconv | Clone unoconv rep
git: repo=https://github.com/dagwieers/unoconv.git dest=/tmp/unoconv
tags: unoconv
- name: Unoconv | Build unoconv
shell: 'cd /tmp/unoconv; make install'
tags: unoconv
- name: Unoconv | Cleanup
shell: 'rm -rf /tmp/unoconv'
tags: unoconv
- name: Unoconv | Create unoconv service
action: template src=templates/etc/init.d/unoconvd dest=/etc/init.d/unoconvd mode=755
tags: unoconv
- name: Unoconv | Init service
command: 'update-rc.d unoconvd defaults'
tags: unoconv
- name: Unocnv | Restart unoconv
action: service name=unoconvd state=running
tags: unoconv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment