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