diff --git a/tasks/apache.yml b/tasks/apache.yml index 8ca1771..0663e50 100644 --- a/tasks/apache.yml +++ b/tasks/apache.yml @@ -1,7 +1,7 @@ --- - name: "Apache | Copy virtualhost configuration" ansible.builtin.template: - src: apache2.conf.j2 + src: apache.conf.j2 dest: "/etc/apache2/sites-available/{{ dmarcsrg_domain }}.conf" mode: "0644" notify: Reload apache2 diff --git a/tasks/install.yml b/tasks/install.yml index 87e8487..bb479c9 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -46,7 +46,7 @@ - src: "{{ dmarcsrg_home }}/{{ latest_version.stdout }}" dest: "{{ dmarcsrg_home }}/current" - src: "{{ overrides_path }}/conf.php" - dest: "{{ dmarcsrg_home }}/{{ latest_version.stdout }}/conf.php" + dest: "{{ dmarcsrg_home }}/{{ latest_version.stdout }}/config/conf.php" - name: "Install | Initiate database" ansible.builtin.command: diff --git a/tasks/user.yml b/tasks/user.yml index 28489ba..57e6c2a 100644 --- a/tasks/user.yml +++ b/tasks/user.yml @@ -10,5 +10,5 @@ - name: "User | Add www-data to user group" ansible.builtin.user: name: www-data - groups: "{{ dmarcsrg }}" + groups: "{{ dmarcsrg_user }}" append: true diff --git a/templates/conf.php.j2 b/templates/conf.php.j2 index 16a03fa..19daed5 100644 --- a/templates/conf.php.j2 +++ b/templates/conf.php.j2 @@ -7,8 +7,8 @@ $database = [ 'host' => '{{ database_host }}', 'type' => 'mysql', 'name' => '{{ dmarcsrg_database }}', - 'user' => '{{ dmarcsrg_datababse }}', - 'password' => '{{ dmarcsrg_datababse_password }}', + 'user' => '{{ dmarcsrg_database }}', + 'password' => '{{ dmarcsrg_database_password }}', 'table_prefix' => '' ];