23 lines
850 B
YAML
23 lines
850 B
YAML
---
|
|
- name: Download Roundcube Archive from GitHub Released Page
|
|
ansible.builtin.get_url:
|
|
url: "https://github.com/roundcube/roundcubemail/releases/download/{{ roundcube_version }}/roundcubemail-{{ roundcube_version }}-complete.tar.gz"
|
|
dest: "/opt/roundcube_{{ roundcube_version }}.tar.gz"
|
|
checksum: "{{ roundcube_version_sha256 }}"
|
|
mode: '644'
|
|
force: false
|
|
- name: Ensure Roundcube Base Dir exsists
|
|
ansible.builtin.file:
|
|
dest: "{{ roundcube_base_dir }}"
|
|
mode: '0755'
|
|
state: 'directory'
|
|
- name: Unarchive Roundcube release
|
|
ansible.builtin.unarchive:
|
|
src: "/opt/roundcube_{{ roundcube_version }}.tar.gz"
|
|
dest: "{{ roundcube_base_dir }}"
|
|
creates: "{{ roundcube_base_dir }}/roundcubemail-{{ roundcube_version }}"
|
|
owner: "{{ roundcube_user }}"
|
|
group: "{{ roundcube_user }}"
|
|
remote_src: true
|
|
|