generated from sebclem/ansible-role-template
34 lines
752 B
YAML
34 lines
752 B
YAML
- name: Install deps for php repo
|
|
ansible.builtin.apt:
|
|
name:
|
|
- ca-certificates
|
|
- curl
|
|
|
|
- name: Save repo key
|
|
ansible.builtin.get_url:
|
|
url: https://packages.sury.org/php/apt.gpg
|
|
dest: /usr/share/keyrings/deb.sury.org-php.gpg
|
|
mode: "644"
|
|
|
|
- name: Add repo
|
|
ansible.builtin.template:
|
|
src: php.list.j2
|
|
dest: /etc/apt/sources.list.d/php.list
|
|
mode: "644"
|
|
|
|
- name: Apt update
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
- name: "Install php deps"
|
|
ansible.builtin.apt:
|
|
name: "{{ dolibarr_php_dependencies }}"
|
|
update_cache: true
|
|
notify: Restart Apache
|
|
|
|
- name: "Install apache deps"
|
|
ansible.builtin.apt:
|
|
name: "{{ dolibarr_apache_dependencies }}"
|
|
update_cache: true
|
|
notify: Restart Apache
|