Skip to content

Errors during playbook rollout

Hello,

Thanks for the playbook!

Few things I noted while deploying that I wanted to bring to your attention:

  • PostGreSQL should handle both local and remote server as part of the role. I set managed=false since my psql server is not local, and got an error later on during deployment:
TASK [funkwhale : Create funkwhale configuration file] ****************************************************************************************************************************************************************************************
Friday 31 January 2020  18:24:51 +0000 (0:00:00.060)       0:00:04.357 ********
fatal: [fuschia]: FAILED! => {
    "changed": false
}

MSG:

AnsibleUndefinedVariable: 'funkwhale_database_url' is undefined

→ declaring the key funkwhale_database_url (postgresql://{{ pg_user }}:{{ pg_password }}@{{ pg_host_app }}:{{ pg_port }}/{{ pg_db }}) in my variables fixed this.

  • If the home directory is configured to a sub-path that does not exist yet, it fails. I added an extra task for this before creating the user:
- name: Ensure home folder can be created
  become: true
  file:
    path: "{{ funkwhale_install_path | dirname }}"
    state: directory
Edited by Jean