Skip to content

Commit

Permalink
🔧 Build Etherpad when sources changed
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Jan 15, 2025
1 parent 1283df1 commit 979cff0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
---
- name: Build etherpad-lite
ansible.builtin.shell: |
pnpm i
pnpm run build:etherpad
args:
executable: /bin/bash
chdir: "{{ etherpad_path }}"
environment:
NODE_ENV: "development"
PATH: "{{ etherpad_environment_path }}"
become: true
become_user: "{{ etherpad_user }}"
check_mode: false
changed_when: true
notify: Restart etherpad-lite

- name: Restart etherpad-lite
ansible.builtin.service:
name: etherpad-lite
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
roles:
- role: ansible-role-etherpad
vars:
etherpad_repository_version: 2.0.3
etherpad_repository_version: 2.2.7
etherpad_api_key: "secure_api_key"
etherpad_abiword_enabled: true
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
depth: 1
become: true
become_user: "{{ etherpad_user }}"
register: etherpad_repository
notify: Restart etherpad-lite
notify: Build etherpad-lite

- name: Copy configuration file
ansible.builtin.template:
Expand Down

0 comments on commit 979cff0

Please sign in to comment.