2017-09-24 14:03:05 +00:00
|
|
|
---
|
|
|
|
# host to test against
|
|
|
|
- hosts: test-kitchen
|
|
|
|
remote_user: root
|
|
|
|
tasks:
|
|
|
|
- include_tasks: tasks/dependencies.yml
|
|
|
|
|
|
|
|
- name: Install gnupg
|
|
|
|
package:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
state: present
|
|
|
|
when:
|
|
|
|
- ansible_distribution == item.distribution
|
|
|
|
with_items:
|
2017-11-10 18:31:22 +00:00
|
|
|
- name: gnupg
|
|
|
|
distribution: Alpine
|
2017-09-24 14:03:05 +00:00
|
|
|
- name: gnupg2
|
|
|
|
distribution: Fedora
|
|
|
|
- name: gnupg2
|
|
|
|
distribution: Ubuntu
|
|
|
|
- name: gnupg
|
|
|
|
distribution: Debian
|
2017-09-28 23:59:15 +00:00
|
|
|
- name: gnupg
|
|
|
|
distribution: Alpine
|
2017-09-24 14:03:05 +00:00
|
|
|
|
|
|
|
- name: Check for gpg2 binary
|
|
|
|
stat:
|
|
|
|
path: /usr/bin/gpg2
|
|
|
|
register: gpg2
|
|
|
|
|
|
|
|
- name: Make gpg2 default binary
|
|
|
|
file:
|
|
|
|
src: /usr/bin/gpg2
|
|
|
|
dest: /usr/bin/gpg
|
|
|
|
state: link
|
|
|
|
force: yes
|
|
|
|
when:
|
|
|
|
- gpg2.stat.exists
|
|
|
|
- gpg2.stat.islnk == False
|
|
|
|
|
|
|
|
- include_tasks: tasks/prep-tests.yml
|
|
|
|
- include_tasks: tasks/run-tests.yml
|