Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 36443eb9 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

refactor: add Christophe suggestion

parent 6f96af44
No related branches found
No related tags found
1 merge request!38Resolve "double-check Ansible tags"
Pipeline #7295 passed with warnings
...@@ -21,22 +21,30 @@ ...@@ -21,22 +21,30 @@
ansible.builtin.command: ansible-galaxy install m3nu.ansible_role_borgbackup,v0.9.0 -p ~/.ansible/roles ansible.builtin.command: ansible-galaxy install m3nu.ansible_role_borgbackup,v0.9.0 -p ~/.ansible/roles
delegate_to: localhost delegate_to: localhost
become: False become: False
tags: borg tags:
- backup
- borg
- name: run BorgBackup role - name: run BorgBackup role
ansible.builtin.import_role: ansible.builtin.import_role:
name: m3nu.ansible_role_borgbackup name: m3nu.ansible_role_borgbackup
tags: borg tags:
- backup
- borg
- name: Create backup folder for BorgBackup repository - name: Create backup folder for BorgBackup repository
ansible.builtin.file: ansible.builtin.file:
path: "{{ borg_repository }}" path: "{{ borg_repository }}"
state: directory state: directory
mode: '0750' mode: '0750'
tags: borg tags:
- backup
- borg
- name: Configure host for Borg Remote repository - name: Configure host for Borg Remote repository
tags: borg tags:
- backup
- borg
block: block:
- name: deploy ssh public key for BorgBackup - name: deploy ssh public key for BorgBackup
ansible.builtin.copy: ansible.builtin.copy:
...@@ -62,7 +70,9 @@ ...@@ -62,7 +70,9 @@
line: "{{ ynh_ssh_borg_command }}" line: "{{ ynh_ssh_borg_command }}"
state: present state: present
when: ynh_ssh_borg_command is defined when: ynh_ssh_borg_command is defined
tags: borg tags:
- backup
- borg
- name: change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}" - name: change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}"
...@@ -71,7 +81,9 @@ ...@@ -71,7 +81,9 @@
regexp: "archive_name_format:" regexp: "archive_name_format:"
line: " archive_name_format: {{ borg_archive_name_format }}" line: " archive_name_format: {{ borg_archive_name_format }}"
state: present state: present
tags: borg tags:
- backup
- borg
- name: Create borg launch script in /usr/local/bin - name: Create borg launch script in /usr/local/bin
ansible.builtin.copy: ansible.builtin.copy:
...@@ -83,8 +95,12 @@ ...@@ -83,8 +95,12 @@
owner: root owner: root
group: root group: root
mode: "0755" mode: "0755"
tags: borg tags:
- backup
- borg
- name: Initialize a new Borg repository - name: Initialize a new Borg repository
ansible.builtin.command: "{{ borg_init_command }}" ansible.builtin.command: "{{ borg_init_command }}"
tags: borg tags:
- backup
- borg
...@@ -26,4 +26,6 @@ ...@@ -26,4 +26,6 @@
- name: Use Borg Backup with YunoHost - name: Use Borg Backup with YunoHost
ansible.builtin.include_tasks: borgbackup.yml ansible.builtin.include_tasks: borgbackup.yml
when: ynh_borg_backup_scheduled when: ynh_borg_backup_scheduled
tags: borg tags:
- backup
- borg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment