Files @ 0f349663e20c
Branch filter:

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

branko
MAR-30: Fixes for multiple platforms and more extensive testing:

- Include instructions on how to run tests against different platforms (Debian
versions).
- Use correct base box for Debian Stretch when testing role 'preseed'.
- Use fixed hostnames when runnig teets for role 'preseed'.
- Make sure to test preseed configuration file when providing overrides for a
host that does not include overrides as well in role 'preseed'.
---

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