mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-23 11:28:30 +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.
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
---
|
|
# Configure Bugzilla
|
|
- name: Configure SELinux booleans
|
|
ansible.posix.seboolean:
|
|
name: "{{ item }}"
|
|
persistent: true
|
|
state: true
|
|
with_items:
|
|
- httpd_can_network_connect_db
|
|
- httpd_can_network_connect
|
|
- httpd_can_sendmail
|
|
|
|
- name: Install necessary packages
|
|
yum:
|
|
name: "{{ bugzilla_pkg }}"
|
|
state: present
|
|
tags:
|
|
- packages
|
|
|
|
- name: Download the bugtracker
|
|
get_url:
|
|
url: "https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-{{ bugzilla_version }}.tar.gz"
|
|
dest: "/tmp/bugzilla-{{ bugzilla_version }}.tar.gz"
|
|
checksum: "{{ bugzilla_checksum }}"
|
|
|
|
- name: Create initial directory
|
|
file:
|
|
path: "{{ bugzilla_dir }}"
|
|
state: directory
|
|
mode: '0750'
|
|
owner: root
|
|
group: apache
|
|
|
|
- name: Extract bugzilla
|
|
unarchive:
|
|
src: "/tmp/bugzilla-{{ bugzilla_version }}.tar.gz"
|
|
dest: "{{ bugzilla_dir }}"
|
|
owner: root
|
|
group: apache
|
|
mode: '0640'
|
|
remote_src: true
|
|
extra_opts:
|
|
- '--strip-components=1'
|
|
|
|
- name: Configure httpd
|
|
template:
|
|
src: "etc/httpd/conf.d/bugzilla.conf.j2"
|
|
dest: "/etc/httpd/conf.d/bugzilla.conf"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
|
|
- name: Install necessary pieces
|
|
import_tasks: bugzilla_install.yml
|
|
...
|