|
|
@ -60,6 +60,11 @@
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
- ansible_os_family == "RedHat"
|
|
|
|
- ansible_os_family == "RedHat"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install gnupg build dependencies for Alpine based distros
|
|
|
|
|
|
|
|
command: bash -lc "apk add gnutls-dev libksba-dev libgcrypt-dev libgpg-error-dev npth-dev zlib-dev libassuan-dev bzip2-dev sqlite-dev libusb-dev"
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- ansible_os_family == "Alpine"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install rspec in /usr/local/bin for RedHat based distros
|
|
|
|
- name: Install rspec in /usr/local/bin for RedHat based distros
|
|
|
|
command: bash -lc "gem install -n /usr/local/bin rspec"
|
|
|
|
command: bash -lc "gem install -n /usr/local/bin rspec"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
@ -90,6 +95,11 @@
|
|
|
|
retries: 5
|
|
|
|
retries: 5
|
|
|
|
delay: 10
|
|
|
|
delay: 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Make directory /usr/local/src/ for Alpine based distros
|
|
|
|
|
|
|
|
command: bash -lc "mkdir -p /usr/local/src/"
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- ansible_os_family == "Alpine"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Extract gnupg source tarball
|
|
|
|
- name: Extract gnupg source tarball
|
|
|
|
unarchive:
|
|
|
|
unarchive:
|
|
|
|
src: /tmp/gnupg.tar.gz
|
|
|
|
src: /tmp/gnupg.tar.gz
|
|
|
@ -132,6 +142,15 @@
|
|
|
|
command: bash -lc "cd {{ gpg_src_path }} && ./configure {{ gpg_build_config }}"
|
|
|
|
command: bash -lc "cd {{ gpg_src_path }} && ./configure {{ gpg_build_config }}"
|
|
|
|
changed_when: False
|
|
|
|
changed_when: False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# disable gnupg doc build on alpine as it is not detecting an absence of graphical tools such as fig2dev on alpine
|
|
|
|
|
|
|
|
- name: Disable making docs on Alpine
|
|
|
|
|
|
|
|
lineinfile:
|
|
|
|
|
|
|
|
path: "{{ gpg_src_path }}/Makefile"
|
|
|
|
|
|
|
|
regexp: '^doc = doc$'
|
|
|
|
|
|
|
|
line: 'doc = '
|
|
|
|
|
|
|
|
when:
|
|
|
|
|
|
|
|
- ansible_os_family == "Alpine"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Compile gnupg src
|
|
|
|
- name: Compile gnupg src
|
|
|
|
command: bash -lc "cd {{ gpg_src_path }} && make"
|
|
|
|
command: bash -lc "cd {{ gpg_src_path }} && make"
|
|
|
|
changed_when: False
|
|
|
|
changed_when: False
|
|
|
|