galaxyproject / ansible-galaxy

An Ansible role for managing a Galaxy server
https://galaxy.ansible.com/galaxyproject/galaxy
57 stars 75 forks source link

Why preventing mutable configurations from being overwritten? #179

Closed drosofff closed 1 year ago

drosofff commented 1 year ago

https://github.com/galaxyproject/ansible-galaxy/blob/2b89a7c8759d417198d65d74ab6aaeade08b744f/tasks/mutable_setup.yml#L11

If I understand correctly, to change a mutable configuration using this role, you'll have first to delete the current config from the host before replaying the playbook ?

hexylena commented 1 year ago

Yes, this is correct. The mutable directory, once created, is more or less "maintained" by a lot of different galaxy processes. Manually changing the files is possible, but if we overwrote the file on deploy, we'd be constantly losing changes Galaxy is trying to make to those files (e.g. installation of genomes/etc)