ansible-community / ansible-nomad

:watch: Ansible role for Nomad
https://galaxy.ansible.com/brianshumate/nomad
BSD 2-Clause "Simplified" License
294 stars 163 forks source link

Make sure to remove configuration files that are no longer needed #121

Closed ygalblum closed 3 years ago

ygalblum commented 3 years ago

Make sure the role specific configuration file is removed if the instace no longer has the role

Do the same for the custom configuration file

Fixes: #120

lanefu commented 3 years ago

@ygalblum I feel like there should be a failsafe for for this to avoid an undesired cleanup.

maybe pair with a default var like nomad_allow_purge_config: false

ygalblum commented 3 years ago

@lanefu Done