Skip to content

Modify ansible playbook configuration to switch between a blackbox stored configuration and copying a local file

ziggy requested to merge ziggy-dev into master

Previously, setting the ansible var friend_mode would trigger ansible to copy .env file instead of using blackbox on the remote server. This merge requests removes that mode and replaces it with deploy_method.

When deploy_mode is set to "blackbox" it does what friend_mode=off used to do: runs bin/blackbox/postdeploy on the host, which decrypts ".env" on the host.

When deploy_mode is set to "copy" it will instead copy a local version of ".env". By default, this is the local file [REPOROOT]/.env. But that can be changed via the ansible variable deploy_file. This is helpful in the situation where you want to keep multiple staging ".env" files.

Additionally this merge request fixes two other minor issues I encountered

  • Swapfile setup was not idempotent.
  • bin/shutdown failed on a fresh install
Edited by aguestuser

Merge request reports

Loading