36 lines
782 B
YAML
36 lines
782 B
YAML
|
---
|
||
|
# See https://help.passbolt.com/hosting/install/ce/from-source.html
|
||
|
|
||
|
- name: Clone passbolt project
|
||
|
git:
|
||
|
repo: "{{ passbolt_repo }}"
|
||
|
dest: "{{ passbolt_path }}"
|
||
|
version: "{{ passbolt_version }}"
|
||
|
become: true
|
||
|
become_user: "{{ passbolt_user }}"
|
||
|
|
||
|
- name: Install passbolt dependencies
|
||
|
apt:
|
||
|
name:
|
||
|
- composer
|
||
|
- php-intl
|
||
|
- php-gnupg
|
||
|
- php-gd
|
||
|
state: present
|
||
|
update_cache: yes
|
||
|
register: apt_result
|
||
|
retries: 3
|
||
|
until: apt_result is succeeded
|
||
|
|
||
|
# Setup dependencies
|
||
|
- name: Install passbolt PHP dependencies
|
||
|
composer:
|
||
|
command: install
|
||
|
working_dir: "{{ passbolt_path }}"
|
||
|
no_dev: true
|
||
|
become: true
|
||
|
become_user: "{{ passbolt_user }}"
|
||
|
register: composer_result
|
||
|
retries: 3
|
||
|
until: composer_result is succeeded
|