ansible-dolibarr-role/tasks/install-deps.yml

34 lines
752 B
YAML
Raw Normal View History

2023-07-21 14:19:33 +02:00
- 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
2023-07-21 13:21:16 +02:00
- name: "Install php deps"
ansible.builtin.apt:
name: "{{ dolibarr_php_dependencies }}"
update_cache: true
2023-07-21 14:26:17 +02:00
notify: Restart Apache
2023-07-21 13:21:16 +02:00
- name: "Install apache deps"
ansible.builtin.apt:
name: "{{ dolibarr_apache_dependencies }}"
update_cache: true
2023-07-21 14:26:17 +02:00
notify: Restart Apache