Skip to content
Snippets Groups Projects
Verified Commit 168f1eb1 authored by jooola's avatar jooola
Browse files

chore: format files using pre-commit

parent 5594a195
No related branches found
No related tags found
1 merge request!32chore: add pre-commit tool
--- ---
stages: stages:
- test - test
- deploy - deploy
......
This diff is collapsed.
...@@ -51,9 +51,7 @@ ...@@ -51,9 +51,7 @@
db: "{{ funkwhale_database_name }}" db: "{{ funkwhale_database_name }}"
name: "{{ myext }}" name: "{{ myext }}"
login_user: postgres login_user: postgres
loop: ['unaccent', 'citext'] loop: ["unaccent", "citext"]
loop_control: loop_control:
loop_var: myext loop_var: myext
delegate_to: "{{ funkwhale_database_host_ansible or inventory_hostname }}" delegate_to: "{{ funkwhale_database_host_ansible or inventory_hostname }}"
...
--- ---
- name: Check latest version - name: Check latest version
when: funkwhale_version is not defined or funkwhale_version == "latest" when: funkwhale_version is not defined or funkwhale_version == "latest"
uri: uri:
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
owner: "{{ funkwhale_username }}" owner: "{{ funkwhale_username }}"
group: "{{ funkwhale_username }}" group: "{{ funkwhale_username }}"
state: directory state: directory
mode: '755' mode: "755"
with_items: with_items:
- "{{ funkwhale_install_path }}" - "{{ funkwhale_install_path }}"
- "{{ funkwhale_media_path }}" - "{{ funkwhale_media_path }}"
...@@ -58,7 +57,7 @@ ...@@ -58,7 +57,7 @@
copy: copy:
content: "{{ result_secret_key_generation.stdout }}" content: "{{ result_secret_key_generation.stdout }}"
dest: "{{ funkwhale_config_path }}/django_secret_key" dest: "{{ funkwhale_config_path }}/django_secret_key"
mode: '600' mode: "600"
- name: "Setup a dummy secret key" - name: "Setup a dummy secret key"
when: ansible_check_mode when: ansible_check_mode
...@@ -87,7 +86,6 @@ ...@@ -87,7 +86,6 @@
notify: notify:
- restart funkwhale - restart funkwhale
- name: Download front-end files - name: Download front-end files
become: true become: true
become_user: "{{ funkwhale_username }}" become_user: "{{ funkwhale_username }}"
...@@ -249,7 +247,6 @@ ...@@ -249,7 +247,6 @@
insertafter: "EOF" insertafter: "EOF"
block: "{{ funkwhale_custom_settings }}" block: "{{ funkwhale_custom_settings }}"
- name: "Collect static files" - name: "Collect static files"
command: "{{ funkwhale_install_path }}/virtualenv/bin/python api/manage.py collectstatic --no-input" command: "{{ funkwhale_install_path }}/virtualenv/bin/python api/manage.py collectstatic --no-input"
become: true become: true
......
--- ---
- name: set a password for postgresql DB (remote psql server only) - name: set a password for postgresql DB (remote psql server only)
tags: [ db ] tags: [db]
set_fact: set_fact:
# Look up for the key 'vault_funkwhale_database_password' (for you to create, ideally in a vault). # Look up for the key 'vault_funkwhale_database_password' (for you to create, ideally in a vault).
# If no key is found,it will search inside ./pgsql_funkwhale.credentials.txt. # If no key is found,it will search inside ./pgsql_funkwhale.credentials.txt.
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
template: template:
src: funkwhale_proxy.conf.j2 src: funkwhale_proxy.conf.j2
dest: "/etc/nginx/funkwhale_proxy.conf" dest: "/etc/nginx/funkwhale_proxy.conf"
mode: '644' mode: "644"
notify: notify:
- reload nginx - reload nginx
...@@ -76,6 +76,6 @@ ...@@ -76,6 +76,6 @@
template: template:
src: nginx.conf.j2 src: nginx.conf.j2
dest: "/etc/nginx/sites-enabled/{{ funkwhale_hostname }}.conf" dest: "/etc/nginx/sites-enabled/{{ funkwhale_hostname }}.conf"
mode: '644' mode: "644"
notify: notify:
- reload nginx - reload nginx
--- ---
- name: "Create {{ funkwhale_systemd_service_name }}-* systemd file" - name: "Create {{ funkwhale_systemd_service_name }}-* systemd file"
become: true become: true
when: funkwhale_systemd_managed when: funkwhale_systemd_managed
......
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