ansible-dolibarr-role/tasks/install-deps.yml
2023-07-21 14:19:33 +02:00

32 lines
702 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
- name: "Install apache deps"
ansible.builtin.apt:
name: "{{ dolibarr_apache_dependencies }}"
update_cache: true