Files @ 2006d7eebe25
Branch filter:

Location: majic-ansible-roles/roles/backup_client/tasks/facts.yml

branko
MAR-22: Initial test implementation for role 'common':

- Added Molecule configuration covering all platforms with two hosts for testing
mandatory and optional parameters, as well as helper machine.
- Created test playbook for deploying necessary roles to servers with specific
configuration settings.
- Added sample data used by the test playbook.
- Added stock test file.
---

# Determine how to invoke the GnuPG binary based on Debian version.
- set_fact: gnupg_binary="gpg2"
  when: "ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'"
- set_fact: gnupg_binary="gpg"
  when: "ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'"

# Determine cut-off for the GnuPG key ID (long vs short) based on Debian
# version.
- set_fact: gnupg_key_cutoff="{8}"
  when: "ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'"
- set_fact: gnupg_key_cutoff="{0}"
  when: "ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'"