Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
A
ansible
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • funkwhale
  • ansible
  • Issues
  • #6

Closed
Open
Opened Jan 31, 2020 by Jean@popindavibeContributor
  • Report abuse
  • New issue
Report abuse New issue

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 Jan 31, 2020 by Jean
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: funkwhale/ansible#6