mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-22 02:58:28 +00:00
bugzilla
This commit is contained in:
parent
d532f6a28d
commit
ff44b35cc8
@ -25,7 +25,7 @@
|
||||
|
||||
- name: Create initial directory
|
||||
file:
|
||||
path: "/var/www/bugzilla"
|
||||
path: "{{ bugzilla_dir }}"
|
||||
state: directory
|
||||
mode: '0750'
|
||||
owner: root
|
||||
@ -34,7 +34,7 @@
|
||||
- name: Extract bugzilla
|
||||
unarchive:
|
||||
src: "/tmp/bugzilla-{{ bugzilla_version }}.tar.gz"
|
||||
dest: "/var/www/bugzilla"
|
||||
dest: "{{ bugzilla_dir }}"
|
||||
owner: root
|
||||
group: apache
|
||||
mode: '0640'
|
||||
|
@ -3,13 +3,13 @@
|
||||
|
||||
- name: Check for a localconfig file
|
||||
stat:
|
||||
path: "/var/www/bugzilla/localconfig"
|
||||
path: "{{ bugzilla_dir }}/localconfig"
|
||||
register: conf_result
|
||||
|
||||
- name: Deploy answer file
|
||||
template:
|
||||
src: "var/www/bugzilla/answer"
|
||||
dest: "/var/www/bugzilla/answer"
|
||||
dest: "{{ bugzilla_dir }}/answer"
|
||||
owner: root
|
||||
group: apache
|
||||
mode: "0640"
|
||||
@ -17,21 +17,21 @@
|
||||
|
||||
- name: Run checksetup.pl
|
||||
shell: "set -o pipefail && /usr/bin/perl checksetup.pl /var/www/bugzilla/answer"
|
||||
chdir: "/var/www/bugzilla"
|
||||
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: "/var/www/bugzilla/localconfig"
|
||||
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 }}"
|
||||
chdir: "/var/www/bugzilla"
|
||||
chdir: "{{ bugzilla_dir }}"
|
||||
changed_when: "1 != 1"
|
||||
with_items:
|
||||
- 'Net::SAML2'
|
||||
@ -45,10 +45,10 @@
|
||||
|
||||
- name: Re-run checksetup.pl
|
||||
shell: "set -o pipefail && /usr/bin/perl checksetup.pl"
|
||||
chdir: "/var/www/bugzilla"
|
||||
chdir: "{{ bugzilla_dir }}"
|
||||
changed_when: "1 != 1"
|
||||
|
||||
- name: Remove answer file
|
||||
file:
|
||||
path: "/var/www/bugzilla/answer"
|
||||
path: "{{ bugzilla_dir }}/answer"
|
||||
state: absent
|
||||
|
Loading…
Reference in New Issue
Block a user