Skip to content

Commit

Permalink
fix: move db configuration task from db.yml to configure.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Jun 20, 2023
1 parent 373858c commit 1b18d34
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
10 changes: 10 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
mode: 0755
notify: Restart Jira

- name: 'Configure Jira database connection'
ansible.builtin.template:
src: 'dbconfig.xml.j2'
dest: '{{ jira_home_path }}/dbconfig.xml'
owner: '{{ jira_username }}'
group: '{{ jira_group }}'
mode: 0600
notify: Restart Jira
when: jira_db_configuration | bool

- name: 'Ensure Jira is running and enabled at boot'
ansible.builtin.systemd:
name: jira
Expand Down
10 changes: 0 additions & 10 deletions tasks/db.yml

This file was deleted.

4 changes: 0 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@

- name: 'Include tasks for Configure Jira'
ansible.builtin.import_tasks: 'configure.yml'

- name: 'Include tasks for connecting Jira to database'
ansible.builtin.import_tasks: 'db.yml'
when: jira_db_configuration | bool

0 comments on commit 1b18d34

Please sign in to comment.