Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to install extra plugins from local sources #56

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading