Skip to content

Major overhaul

Compare
Choose a tag to compare
@tomdaley92 tomdaley92 released this 03 Aug 05:17
· 8 commits to stable since this release
df84219
  • repo/role name change
  • change the value of app_dir to be ~/applications instead of ~/.diesel
  • deprecate/remove variables:
    • Both of these variables probably should have been in the ubuntu role since they are paths specific to that OS, however this role was really centered around common application deployment tasks on a *nix host
      • SSL_CERT_FILE
      • LOCALTIME_FILE
    • docker_dir
      • older versions of the docker ansible role used to depend on this
  • Change how the dynamic variables version and repository get populated. The old model basically defaulted to using the git branch as the version. The new model uses the ansible inventory names as the default version now.
    • these variables are designed to be easily overwritten, if needed.. e.g. --extra_vars version=production

Variable population methods:

repository: Will attempt to get the repository name from the environment variable $DRONE_REPO_NAME that Drone will set automatically within a Drone pipeline. Great, easy enough. If this variable is not present however, we will attempt to grab and use the top-level directory name, which is usually the same as the repository. This works well when running ansible locally from your machine, without Drone being in the mix.

version: Will use the name of your ansible inventory file (minus the extension). This works well if your inventory you pass is a flat single inventory file, e.g. .ansible/inventories/dev.yaml There are however alternative ansible inventory layouts that use a nested folder structure, so if we detect that you are using an inventory structure like .ansible/inventories/dev/hosts we will use the name of the directory instead. The result would be dev for both of these scenarios.