Files @ 530a5b0abb6d
Branch filter:

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

branko
MAR-107: Test implementation for role 'backup_server':

- Implemented common set of tests.
- Implemented tests for role usage where only mandatory parameters are
supplied.
- Implemented tests that are relevant to optional parameters.
- Tests cover full functionality of the backup server.
---

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