* Replace apt_key with get_url
Removing deprecated call to apt_key and replacing with a direct download of the key into trusted.gpg.d due to the apt-key command returning an error on newer releases.
* Dearmor GPG key
* Use new apt keyring method when supported
Changed playbook logic to run classic apt-key task for older Debian releases and use new keyring location for newer releases
ID is specified so ansible can check if the key is already there without
downloading the file. Useful to keep the role woring when the key has
already been added on systems where DL won't work with the module
because of certificate validation (Ubuntu 14.04).
- Added some commenting inside of defaults to clarify which variables
adjust which files
- Split up the role taking items out of main.yml in tasks. This is to
improve clarity of what each bit of Ansible code is doing.
- Tags were defined for each and every task within the Debian.yml moved
ths up to main.yml so they don't need repeating every task adding
clutter.
- Added some extra default plugins, as of current release version these
are now within the default configuration but were missing from this
role.
- Added some commenting inside the templates and the top of some tasks
to clarify where the templated file was coming from.
Testing Debian with Molecule, Ansible will see the ansible_lsb defined
but the codename attribute is not. Testing its definition will prevent
access to an undifined attribute.
Use ansible_lsb.codename to set the path to the influxdb repo because "hybrid" distros (when you have testing+unstable, for example) don't work otherwise
Ansible was not getting the package properly on ubuntu 14.04 because of SSL problems. Could be resolved by installing additional pip packages but this is cleaner.