samdoran / ansible-role-gitlab

Ansible role for GitLab CE Omnibus
30 stars 21 forks source link

RHEL | Install GitLab GPG key fails on Centos7 #14

Open jardilio opened 6 years ago

jardilio commented 6 years ago

Having issues running from centos7 failing with:

TASK [samdoran.gitlab : RHEL | Install GitLab GPG key] ***** fatal: [gitlab]: FAILED! => {"changed": false, "failed": true, "msg": "gpg: no valid OpenPGP data found.\ngpg: processing message failed: Unknown system error\n"} to retry, use: --limit @/tmp/tmpraUhbO/playbook.retry

Issue seems to be related to https://github.com/ansible/ansible-container/issues/729#issuecomment-339712378

I solved by extending this role and adding a pre-task to install epel-release:

- name: RHEL | Install epel-release
  yum:
    name: epel-release
    state: latest
  when: ansible_os_family == 'RedHat'

- include_role:
    name: samdoran.gitlab