Skip to content

Commit

Permalink
Add support to install extra plugins from local sources
Browse files Browse the repository at this point in the history
  • Loading branch information
doobry-systemli committed Sep 27, 2024
1 parent 5e35220 commit 15cdbc6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ roundcube_plugins:
- managesieve
- zipdownload

# extra plugins to be copied from local sources
# roundcube_plugins_extra:
# - example_plugin

# list of additional configs, e.g. for plugins
roundcube_configs_extra:
- plugins/enigma/config.inc.php
Expand Down
10 changes: 10 additions & 0 deletions tasks/extra-plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

- name: "Copy plugin directory of {{ item }}"
ansible.builtin.copy:
src: "roundcube/extra-plugins/{{ item }}"
dest: "{{ roundcube_working_dir }}/current/plugins/"
owner: "{{ roundcube_user }}"
group: "{{ roundcube_group }}"
mode: 0644
directory_mode: 0755
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@
tags:
- getmail

- name: Import extra plugin tasks
ansible.builtin.include_tasks: extra-plugins.yml
when: "roundcube_plugins_extra is defined"
loop: "{{ roundcube_plugins_extra }}"
tags:
- extra-plugins

- name: Ensure the installer directory is deleted
ansible.builtin.file:
path: "{{ roundcube_working_dir }}/current/installer"
Expand Down

0 comments on commit 15cdbc6

Please sign in to comment.