ansible-role-dmarc-srg/tasks/install.yml
phil 1f77350d70 Use Git master version
The latest release is outdated
2023-08-16 21:15:16 +02:00

23 lines
606 B
YAML

---
- name: "Install | Clone repository"
ansible.builtin.git:
repo: "{{ dmarcsrg_githuburl }}"
dest: "{{ dmarcsrg_home }}"
version: "{{ dmarcsrg_version }}"
force: true
- name: "Install | Copy configuration file"
ansible.builtin.template:
src: conf.php.j2
dest: "{{ dmarcsrg_home }}/config/conf.php"
mode: "0640"
owner: "{{ dmarcsrg_user }}"
group: "{{ dmarcsrg_user }}"
- name: "Install | Initiate database"
ansible.builtin.command:
cmd: php utils/database_admin.php init
chdir: "{{ dmarcsrg_home }}"
become: true
become_user: "{{ dmarcsrg_user }}"