mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
71fcc22a51
* 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.
51 lines
1.2 KiB
YAML
51 lines
1.2 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: gnupg2
|
|
distribution: Fedora
|
|
- name: gnupg2
|
|
distribution: Ubuntu
|
|
- name: gnupg
|
|
distribution: Debian
|
|
- name: gnupg
|
|
distribution: Alpine
|
|
|
|
- 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
|