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