Last active
August 29, 2015 13:56
-
-
Save jdewit/9038743 to your computer and use it in GitHub Desktop.
Ansible unoconv task. Tested on Ubuntu 12.04
This file contains hidden or 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
--- | |
# 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