This guide provides a full Ansible playbook to deploy LedgerSMB with Docker Compose on Debian 10+, Ubuntu LTS, and RHEL 9+ compatible hosts.
- name: Deploy LedgerSMB with Docker
hosts: ledgersmb
become: true
vars:
app_root: /opt/ledgersmb
app_port: 5762
tasks:
- name: Install Docker on Debian/Ubuntu
apt:
name:
- docker.io
- docker-compose-plugin
state: present
update_cache: true
when: ansible_os_family == "Debian"
- name: Install Docker on RHEL family
dnf:
name:
- docker
- docker-compose-plugin
state: present
when: ansible_os_family == "RedHat"
- name: Enable and start Docker
service:
name: docker
state: started
enabled: true
- name: Create application directory
file:
path: "{{ app_root }}"
state: directory
mode: "0755"
- name: Download official Docker Compose file
get_url:
url: https://raw.githubusercontent.com/ledgersmb/ledgersmb-docker/1.13/docker-compose.yml
dest: "{{ app_root }}/docker-compose.yml"
mode: "0644"
- name: Start application stack
command: docker compose up -d
args:
chdir: "{{ app_root }}"
ledgersmb/ledgersmb-docker repository.http://localhost:5762/setup.pl and login at http://localhost:5762/login.pl.Any questions?
Feel free to contact us. Find all contact information on our contact page.