All articles

Simplifying Passbolt Installation with Ansible

4 min. read

Antony Bartolomucci

Antony Bartolomucci

5 August, 2025

  • Following one of our dedicated documentation;
  • Installing the necessary dependencies;
  • Setting up MySQL or MariaDB databases and users;
  • Performing the installation on the web after the server installation;
  • Adjusting user permissions and ensuring proper security measures.
  • Prerequisites Installation: Ensures that the server is up-to-date and installs the necessary dependencies for Passbolt.
  • Database Configuration: Sets up MySQL/MariaDB with the correct permissions and security settings, including root and user passwords.
  • Passbolt Installation: Automates the installation of the Passbolt CE or Pro edition.
  • SSL Configuration: Automatically generates and configures a self-signed SSL certificate for secure communication.
  • Web Server (NGINX) Configuration: Installs and configures NGINX to serve the Passbolt API, ensuring that everything is properly linked and ready to handle secure connections.
  • First Admin Setup: Once everything is set up, the first account creation link is thrown, to start using passbolt right away.
  • group_vars: Contains your environment-specific variables like database credentials and PHP version.
  • Tasks folder: Houses all the tasks for installing Passbolt, configuring NGINX, PHP, and setting up the database.
  • Templates folder: Contains the NGINX and PHP configuration templates that are dynamically filled based on your environment variables.
git clone [email protected]:passbolt/lab-passbolt-ansible-install-playbook.git
cd lab-passbolt-ansible-install-playbook
cp group_vars/all.example.yaml group_vars/all.yaml
vim inventory
[passbolt_server]
YOUR_SERVER_IP ansible_user=YOUR_USER ansible_ssh_private_key_file=PATH_TO_YOUR_KEY
ansible-playbook -i inventory playbook.yaml

Post-Installation Steps

sudo su -s /bin/bash -c "/usr/share/php/passbolt/bin/cake passbolt healthcheck" www-data #or nginx instead of www-data if RPM machine
  • Consistency: Ensures that every installation is identical, reducing errors caused by manual steps.
  • Time Efficiency: Drastically reduces the time spent on manual configuration.
  • Scalability: Allows you to easily replicate the installation on multiple servers with minimal effort.
  • Flexibility: The playbook is easily customizable, allowing you to modify settings for your particular use case.

Continue reading

Set Up Your Local Passbolt Development Environment in Minutes with DDEV

3 min. read

Set Up Your Local Passbolt Development Environment in Minutes with DDEV

Get your Passbolt dev environment running quickly with DDEV—automatic HTTPS, built-in Xdebug, Mailpit, and Adminer included.

LP

Leonardo Pagani

23 July, 2025

The road to Passbolt version 5 - Getting started with the new resource types (beta)

5 min. read

The road to Passbolt version 5 - Getting started with the new resource types (beta)

Learn how to enable encrypted metadata in Passbolt v5 to benefit from advanced resource types and improved security.

CA

Cedric Alfonsi

16 July, 2025

Flag of European UnionMade in Europe. Privacy by default.