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 499e571e authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

refactor: add var _ansible_role_directory

parent e1d890c0
No related branches found
No related tags found
No related merge requests found
Pipeline #7548 passed with warnings
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# # # #
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
- name: Download BorgBackup role on localhost - name: Download BorgBackup role on localhost
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_role_directory }}"
delegate_to: localhost delegate_to: localhost
become: False become: False
tags: tags:
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# # # #
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
- name: Download Restic role on localhost - name: Download Restic role on localhost
ansible.builtin.command: ansible-galaxy install do1jlr.restic,v0.7.1 -p ~/.ansible/roles ansible.builtin.command: ansible-galaxy install do1jlr.restic,v0.7.1 -p "{{ _ansible_role_directory }}"
delegate_to: localhost delegate_to: localhost
become: False become: False
tags: tags:
......
...@@ -22,3 +22,4 @@ ...@@ -22,3 +22,4 @@
ynh_backup_src_script: "templates/ynh_backup.sh.j2" ynh_backup_src_script: "templates/ynh_backup.sh.j2"
ynh_backup_dest_script: "/usr/local/bin/ynh_backup.sh" ynh_backup_dest_script: "/usr/local/bin/ynh_backup.sh"
_ynh_backup_directory: "/home/yunohost.backup/archives" _ynh_backup_directory: "/home/yunohost.backup/archives"
_ansible_role_directory: "~/.ansible/roles"
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