Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible/roles/backup/tasks/main.yml

43 lignes
967 o
YAML
Brut Vue normale Historique

2017-05-08 06:25:46 +02:00
# TODO Allow autogenerating of GPG keys
- name: Make sure there is a passphrase file
stat:
path: "{{ nyaapantsu_gpg_passphrase_file }}"
register: pass_file
- name: Copy backup script
copy:
src: backup.sh
dest: "{{ backup_script }}"
mode: 0755
become: true
when: pass_file.stat.exists == true
- name: Create (if not exists) cronjob
file:
path: "{{ backup_cron_job }}"
state: touch
become: true
when: pass_file.stat.exists == true
- name: Setup backup cron
template:
src: backup_cron.j2
dest: "{{ backup_cron_job }}"
become: true
when: pass_file.stat.exists == true
- name: Add epel repository
yum_repository:
name: epel
description: EPEL YUM repo
baseurl: https://download.fedoraproject.org/pub/epel/$releasever/$basearch/
gpgcheck: 1
gpgkey: https://getfedora.org/static/352C64E5.txt
become: true
- name: Install mktorrent
yum:
name: mktorrent
state: present
become: true