Files @ ec2d038c9332
Branch filter:

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

branko
MAR-107: Initial test config for role 'backup_server':

- Added Molecule configuration with two instances (for testing mandatory and
optional parameters).
- Added test playbook that sets-up the two instances.
- Added test data (SSH keys).
---

# 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'"