mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-11-24 06:01:26 +00:00
fcdf86b31c
This commit appends the README.md to state that yaml files should start with `---` and end with `...`. This also addresses some linting warnings that were not appearing during pre-commit on local system.
61 lines
1.4 KiB
YAML
61 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
|
|
...
|