mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
add archive role
This commit is contained in:
parent
87e16e7d6e
commit
1270d0eb4b
6 changed files with 49 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
3
roles/archive/meta/main.yml
Normal file
3
roles/archive/meta/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
dependencies:
|
||||
- { role: base }
|
||||
5
roles/archive/tasks/atool.yml
Normal file
5
roles/archive/tasks/atool.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Install atool
|
||||
pacman: name=atool state=present
|
||||
tags:
|
||||
- atool
|
||||
18
roles/archive/tasks/hashdeep.yml
Normal file
18
roles/archive/tasks/hashdeep.yml
Normal 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 }}"
|
||||
4
roles/archive/tasks/main.yml
Normal file
4
roles/archive/tasks/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- include: atool.yml
|
||||
- include: hashdeep.yml
|
||||
- include: par2.yml
|
||||
18
roles/archive/tasks/par2.yml
Normal file
18
roles/archive/tasks/par2.yml
Normal 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 }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue