add archive role

This commit is contained in:
Pig Monkey 2015-12-03 13:59:51 -08:00
parent 87e16e7d6e
commit 1270d0eb4b
6 changed files with 49 additions and 0 deletions

View file

@ -29,6 +29,7 @@
- { role: backup, tags: ['backup'] }
- { role: mapping, tags: ['mapping'] }
- { role: sound, tags: ['sound'] }
- { role: archive, tags: ['archive'] }
vars_prompt:
- name: user_password
prompt: "Enter desired user password"

View file

@ -0,0 +1,3 @@
---
dependencies:
- { role: base }

View file

@ -0,0 +1,5 @@
---
- name: Install atool
pacman: name=atool state=present
tags:
- atool

View file

@ -0,0 +1,18 @@
---
- name: Download hashdeep
command: cower -dq hashdeep
chdir=/home/{{ user.name }}/{{ aur.dir }}
creates=/home/{{ user.name }}/{{ aur.dir }}/hashdeep
tags:
- aur
- hashdeep
become: yes
become_user: "{{ user.name }}"
- name: Build and install hashdeep
command: "{{ aur.makepkg }} --skippgpcheck chdir=/home/{{ user.name }}/{{ aur.dir }}/hashdeep"
tags:
- aur
- hashdeep
become: yes
become_user: "{{ user.name }}"

View file

@ -0,0 +1,4 @@
---
- include: atool.yml
- include: hashdeep.yml
- include: par2.yml

View file

@ -0,0 +1,18 @@
---
- name: Download par2cmdline
command: cower -dq par2cmdline
chdir=/home/{{ user.name }}/{{ aur.dir }}
creates=/home/{{ user.name }}/{{ aur.dir }}/par2cmdline
tags:
- aur
- par2
become: yes
become_user: "{{ user.name }}"
- name: Build and install par2cmdline
command: "{{ aur.makepkg }} --skippgpcheck chdir=/home/{{ user.name }}/{{ aur.dir }}/par2cmdline"
tags:
- aur
- par2
become: yes
become_user: "{{ user.name }}"