Merge branch 'passbolt' into 'master'
Passbolt See merge request aurore/ansible!44
This commit is contained in:
commit
cda40556a2
3 changed files with 54 additions and 0 deletions
5
passbolt.yml
Normal file
5
passbolt.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
# Deploy Passbolt
|
||||
- hosts: passbolt.adm.auro.re
|
||||
roles:
|
||||
- passbolt
|
10
roles/passbolt/defaults/main.yml
Normal file
10
roles/passbolt/defaults/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# URL to clone
|
||||
passbolt_repo: https://github.com/passbolt/passbolt_api.git
|
||||
passbolt_version: v2.10.0
|
||||
|
||||
# Install target
|
||||
passbolt_path: /var/www/passbolt
|
||||
|
||||
# User used to run passbolt
|
||||
passbolt_user: www-data
|
39
roles/passbolt/tasks/main.yml
Normal file
39
roles/passbolt/tasks/main.yml
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
# 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-fpm
|
||||
- php-intl
|
||||
- php-gnupg
|
||||
- php-gd
|
||||
- php-mysql
|
||||
- nginx
|
||||
- mariadb-server
|
||||
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
|
Loading…
Reference in a new issue