46 lines
1 KiB
YAML
46 lines
1 KiB
YAML
|
---
|
||
|
##
|
||
|
## Duplicity
|
||
|
##
|
||
|
|
||
|
# FIXME: test if duplicity is installed
|
||
|
# FIXME: test if duplicity is the right version
|
||
|
|
||
|
- name: Download duplicity 0.8.18
|
||
|
get_url:
|
||
|
url: https://launchpadlibrarian.net/516340710/duplicity-0.8.18.tar.gz
|
||
|
dest: /usr/src/duplicity-0.8.18.tar.gz
|
||
|
checksum: sha256:2643fea0f52920a0fb114069c78389f9621f1c24db7f26bda77bbc239b01ae53
|
||
|
|
||
|
- name: Extract duplicity 0.8.18
|
||
|
unarchive:
|
||
|
remote_src: "yes"
|
||
|
src: /usr/src/duplicity-0.8.18.tar.gz
|
||
|
dest: /usr/src
|
||
|
creates: /usr/src/duplicity-0.8.18
|
||
|
|
||
|
- name: Install duplicity setuptools
|
||
|
shell:
|
||
|
cmd: pip3 install setuptools wheel
|
||
|
chdir: /usr/src/duplicity-0.8.18
|
||
|
|
||
|
- name: Install duplicity requirements
|
||
|
shell:
|
||
|
cmd: pip3 install -r requirements.txt
|
||
|
chdir: /usr/src/duplicity-0.8.18
|
||
|
|
||
|
- name: Install duplicity
|
||
|
shell:
|
||
|
cmd: python3 setup.py install
|
||
|
chdir: /usr/src/duplicity-0.8.18
|
||
|
|
||
|
|
||
|
- name: Create duplicity work directory
|
||
|
file:
|
||
|
path: "{{duplicity_work_directory}}"
|
||
|
state: directory
|
||
|
mode: '0700'
|
||
|
owner: root
|
||
|
group: root
|
||
|
#
|