mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-23 03:18:29 +00:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
---
|
|
# Install bugzilla properly, including modules and stuff
|
|
|
|
- name: Check for a localconfig file
|
|
stat:
|
|
path: "{{ bugzilla_dir }}/localconfig"
|
|
register: conf_result
|
|
|
|
- name: Deploy answer file
|
|
template:
|
|
src: "var/www/bugzilla/answer"
|
|
dest: "{{ bugzilla_dir }}/answer"
|
|
owner: root
|
|
group: apache
|
|
mode: "0640"
|
|
when: not conf_result.stat.exists
|
|
|
|
- name: Run checksetup.pl
|
|
shell: "set -o pipefail && /usr/bin/perl checksetup.pl {{ bugzilla_dir }}/answer"
|
|
args:
|
|
chdir: "{{ bugzilla_dir }}"
|
|
changed_when: "1 != 1"
|
|
when: not conf_result.stat.exists
|
|
|
|
- name: Deploy proper configuration
|
|
template:
|
|
src: "var/www/bugzilla/localconfig.j2"
|
|
dest: "{{ bugzilla_dir }}/localconfig"
|
|
owner: root
|
|
group: apache
|
|
mode: '0640'
|
|
|
|
- name: Install the proper modules
|
|
shell: "set -o pipefail && /usr/bin/perl install-module.pl {{ item }}"
|
|
changed_when: "1 != 1"
|
|
args:
|
|
chdir: "{{ bugzilla_dir }}"
|
|
with_items:
|
|
- 'Net::SAML2'
|
|
- 'Template'
|
|
- 'Template::Plugin::GD::Image'
|
|
- 'HTML::FormatText::WithLinks'
|
|
- 'PatchReader'
|
|
- 'Crypt::OpenSSL::Verify'
|
|
- 'Crypt::OpenSSL::RSA'
|
|
- 'JSON::RPC'
|
|
- 'XML::Twig'
|
|
- 'Test::Taint'
|
|
|
|
- name: Re-run checksetup.pl
|
|
shell: "set -o pipefail && /usr/bin/perl checksetup.pl"
|
|
args:
|
|
chdir: "{{ bugzilla_dir }}"
|
|
changed_when: "1 != 1"
|
|
|
|
- name: Remove answer file
|
|
file:
|
|
path: "{{ bugzilla_dir }}/answer"
|
|
state: absent
|