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:
- test
- deploy
......
This diff is collapsed.
......@@ -51,9 +51,7 @@
db: "{{ funkwhale_database_name }}"
name: "{{ myext }}"
login_user: postgres
loop: ['unaccent', 'citext']
loop: ["unaccent", "citext"]
loop_control:
loop_var: myext
delegate_to: "{{ funkwhale_database_host_ansible or inventory_hostname }}"
...
---
- name: Check latest version
when: funkwhale_version is not defined or funkwhale_version == "latest"
uri:
......@@ -31,7 +30,7 @@
owner: "{{ funkwhale_username }}"
group: "{{ funkwhale_username }}"
state: directory
mode: '755'
mode: "755"
with_items:
- "{{ funkwhale_install_path }}"
- "{{ funkwhale_media_path }}"
......@@ -58,7 +57,7 @@
copy:
content: "{{ result_secret_key_generation.stdout }}"
dest: "{{ funkwhale_config_path }}/django_secret_key"
mode: '600'
mode: "600"
- name: "Setup a dummy secret key"
when: ansible_check_mode
......@@ -87,7 +86,6 @@
notify:
- restart funkwhale
- name: Download front-end files
become: true
become_user: "{{ funkwhale_username }}"
......@@ -249,7 +247,6 @@
insertafter: "EOF"
block: "{{ funkwhale_custom_settings }}"
- name: "Collect static files"
command: "{{ funkwhale_install_path }}/virtualenv/bin/python api/manage.py collectstatic --no-input"
become: true
......
---
- name: set a password for postgresql DB (remote psql server only)
tags: [ db ]
tags: [db]
set_fact:
# 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.
......
......@@ -66,7 +66,7 @@
template:
src: funkwhale_proxy.conf.j2
dest: "/etc/nginx/funkwhale_proxy.conf"
mode: '644'
mode: "644"
notify:
- reload nginx
......@@ -76,6 +76,6 @@
template:
src: nginx.conf.j2
dest: "/etc/nginx/sites-enabled/{{ funkwhale_hostname }}.conf"
mode: '644'
mode: "644"
notify:
- reload nginx
---
- name: "Create {{ funkwhale_systemd_service_name }}-* systemd file"
become: true
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