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

style: default filter good convention

- style: remove empty line
parent 60b6b3d3
No related branches found
No related tags found
1 merge request!49Draft: Resolve "feat: integrate containers into YunoHost"
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
ansible.builtin.command: yunohost app install {{ ynh_app.link }} \ ansible.builtin.command: yunohost app install {{ ynh_app.link }} \
--label "{{ ynh_app.label }}" \ --label "{{ ynh_app.label }}" \
--args "{% for key, value in ynh_app.args.items() %}{{ key }}={{ value }}{% if not loop.last %}&{% endif %}{% endfor %}" --args "{% for key, value in ynh_app.args.items() %}{{ key }}={{ value }}{% if not loop.last %}&{% endif %}{% endfor %}"
changed_when: False changed_when: false
tags: apps tags: apps
# Post-installation part # Post-installation part
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
owner: "{{ item.owner | default(ynh_app.link) }}" owner: "{{ item.owner | default(ynh_app.link) }}"
group: "{{ item.group | default('www-data') }}" group: "{{ item.group | default('www-data') }}"
mode: "{{ (item.type == 'script') | ternary('740', '660') }}" mode: "{{ (item.type == 'script') | ternary('740', '660') }}"
loop: "{{ ynh_app.post_install|default([]) }}" loop: "{{ ynh_app.post_install | default([]) }}"
when: ynh_app.post_install when: ynh_app.post_install
tags: apps tags: apps
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
ansible.builtin.command: "{{ ynh_app_post_install.dest }}" ansible.builtin.command: "{{ ynh_app_post_install.dest }}"
args: args:
chdir: /tmp/ chdir: /tmp/
loop: "{{ ynh_app.post_install|default([]) }}" loop: "{{ ynh_app.post_install | default([]) }}"
loop_control: loop_control:
loop_var: ynh_app_post_install loop_var: ynh_app_post_install
when: ynh_app_post_install.type == "script" when: ynh_app_post_install.type == "script"
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ ynh_app_post_install.dest }}" path: "{{ ynh_app_post_install.dest }}"
state: absent state: absent
loop: "{{ ynh_app.post_install|default([]) }}" loop: "{{ ynh_app.post_install | default([]) }}"
loop_control: loop_control:
loop_var: ynh_app_post_install loop_var: ynh_app_post_install
when: ynh_app_post_install.type == "script" when: ynh_app_post_install.type == "script"
......
...@@ -17,11 +17,10 @@ ...@@ -17,11 +17,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # # along with this program. If not, see <http://www.gnu.org/licenses/>. #
# # # #
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
- name: List currently installed apps - name: List currently installed apps
ansible.builtin.command: yunohost app map --output-as json ansible.builtin.command: yunohost app map --output-as json
register: ynh_installed_apps_raw register: ynh_installed_apps_raw
changed_when: False changed_when: false
tags: apps tags: apps
- name: Format json of apps - name: Format json of apps
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
ansible.builtin.file: ansible.builtin.file:
path: "{{ borg_repository }}" path: "{{ borg_repository }}"
state: directory state: directory
mode: '0750' mode: "0750"
tags: tags:
- backup - backup
- borg - borg
...@@ -54,19 +54,19 @@ ...@@ -54,19 +54,19 @@
block: block:
- name: deploy ssh public key for BorgBackup - name: deploy ssh public key for BorgBackup
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ borg_ssh_keys_src }}.pub" src: "{{ borg_ssh_keys_src }}.pub"
dest: "{{ borg_ssh_keys_dest }}.pub" dest: "{{ borg_ssh_keys_dest }}.pub"
owner: "root" owner: "root"
group: "root" group: "root"
mode: 0600 mode: 0600
- name: deploy ssh private key for BorgBackup - name: deploy ssh private key for BorgBackup
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ borg_ssh_keys_src }}.vault" src: "{{ borg_ssh_keys_src }}.vault"
dest: "{{ borg_ssh_keys_dest }}" dest: "{{ borg_ssh_keys_dest }}"
owner: "root" owner: "root"
group: "root" group: "root"
mode: 0600 mode: 0600
when: ynh_borg_backup_remote_repo when: ynh_borg_backup_remote_repo
- name: change SSH command in "/etc/borgmatic/{{ borgmatic_config_name }}" - name: change SSH command in "/etc/borgmatic/{{ borgmatic_config_name }}"
...@@ -80,10 +80,9 @@ ...@@ -80,10 +80,9 @@
- backup - backup
- borg - borg
- name: change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}" - name: change archive name in "/etc/borgmatic/{{ borgmatic_config_name }}"
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: "/etc/borgmatic/{{ borgmatic_config_name }}" path: "/etc/borgmatic/{{ borgmatic_config_name }}"
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
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
#!/bin/bash #!/bin/bash
. /opt/borgmatic/bin/activate . /opt/borgmatic/bin/activate
borg "$@" borg "$@"
dest: /usr/local/bin/borg dest: /usr/local/bin/borg
owner: root owner: root
group: root group: root
mode: "0755" mode: "0755"
......
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