2026-03-05 09:33:02 +00:00
|
|
|
---
|
|
|
|
|
- name: Install madmail/deltachat
|
|
|
|
|
hosts: all
|
|
|
|
|
become: true
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Create madmail directory
|
2026-03-06 09:04:11 +00:00
|
|
|
ansible.builtin.file:
|
2026-03-05 09:33:02 +00:00
|
|
|
path: "/home/{{ butter_user }}/madmail"
|
|
|
|
|
state: directory
|
|
|
|
|
owner: "{{ butter_user }}"
|
|
|
|
|
group: "{{ butter_user }}"
|
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
|
|
- name: Download pre-built madmail archive
|
2026-03-06 09:04:11 +00:00
|
|
|
ansible.builtin.get_url:
|
2026-03-05 09:33:02 +00:00
|
|
|
url: "https://github.com/themadorg/madmail/releases/download/v0.12.7/madmail-linux-{{ go_arch_map[ansible_architecture] }}.tar.gz"
|
|
|
|
|
dest: "/tmp/madmail-linux-{{ go_arch_map[ansible_architecture] }}.tar.gz"
|
|
|
|
|
mode: '0644'
|
|
|
|
|
|
|
|
|
|
- name: Untar madmail
|
2026-03-06 09:04:11 +00:00
|
|
|
ansible.builtin.unarchive:
|
2026-03-05 09:33:02 +00:00
|
|
|
src: "/tmp/madmail-linux-{{ go_arch_map[ansible_architecture] }}.tar.gz"
|
|
|
|
|
dest: "/home/{{ butter_user }}/madmail"
|
2026-03-06 09:04:11 +00:00
|
|
|
remote_src: true
|
|
|
|
|
# extra_opts: [--strip-components=1]
|
2026-03-05 09:33:02 +00:00
|
|
|
|
|
|
|
|
- name: Ensure butter_user owns madmail directory
|
2026-03-06 09:04:11 +00:00
|
|
|
ansible.builtin.file:
|
2026-03-05 09:33:02 +00:00
|
|
|
path: "/home/{{ butter_user }}/madmail"
|
|
|
|
|
state: directory
|
2026-03-06 09:04:11 +00:00
|
|
|
recurse: true
|
|
|
|
|
owner: "{{ butter_user }}"
|
|
|
|
|
group: "{{ butter_user }}"
|