From ff44b35cc86ca880801beee0639e419e2010919d Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sat, 24 Apr 2021 01:19:07 -0700 Subject: [PATCH] bugzilla --- ansible/playbooks/tasks/bugzilla.yml | 4 ++-- ansible/playbooks/tasks/bugzilla_install.yml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ansible/playbooks/tasks/bugzilla.yml b/ansible/playbooks/tasks/bugzilla.yml index 93dd8a4..fb24b71 100644 --- a/ansible/playbooks/tasks/bugzilla.yml +++ b/ansible/playbooks/tasks/bugzilla.yml @@ -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' diff --git a/ansible/playbooks/tasks/bugzilla_install.yml b/ansible/playbooks/tasks/bugzilla_install.yml index 31b8210..7d6f96b 100644 --- a/ansible/playbooks/tasks/bugzilla_install.yml +++ b/ansible/playbooks/tasks/bugzilla_install.yml @@ -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