git-secret/.ci/integration/gnupg1/default.yml
Simon Massey 71fcc22a51 Man pages (#188)
* deploy skip_cleanup: true

* need to deploy when '! -z KITCHEN_REGEXP'

* rsync missing on gnupg1-ubuntu-latest

* fixes missing man pages on gnupg2-ubuntu-rolling

* replace yum with dnf

* ansible comments out dpkg.cfg.d excludes path-exclude=/usr/share/man/.*

* gem 'rspec'

* Install rspec in /usr/local/bin for RedHat based distros

* whitespace in Gemfile.
2018-06-09 07:55:50 +03:00

47 lines
1.1 KiB
YAML

---
# host to test against
- hosts: test-kitchen
remote_user: root
tasks:
- include_tasks: tasks/dependencies.yml
- name: Remove dpkg excludes on Ubuntu
replace:
path: '/etc/dpkg/dpkg.cfg.d/excludes'
regexp: '^(path-exclude=/usr/share/man/.*)'
replace: '#\1'
when:
- ansible_distribution == "Ubuntu"
- name: Install gnupg
package:
name: "{{ item.name }}"
state: present
when:
- ansible_distribution == item.distribution
with_items:
- name: gnupg
distribution: Alpine
- name: gnupg
distribution: Fedora
- name: gnupg1
distribution: Debian
- name: gnupg1
distribution: Alpine
- name: Check for gpg1 binary
stat:
path: /usr/bin/gpg1
register: gpg1
- name: Make gpg1 default binary
file:
src: /usr/bin/gpg1
dest: /usr/bin/gpg
state: link
force: yes
when: gpg1.stat.exists
- include_tasks: tasks/prep-tests.yml
- include_tasks: tasks/run-tests.yml