From c4ffbb00e22211a2e34e7800a6cc660b05b1e0fc Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Thu, 5 Mar 2026 09:33:02 +0000 Subject: [PATCH] Add delta chat ansible playbook --- ansible/delta-chat.yml | 31 +++++++++++++++++++++++++++++++ ansible/main.yml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 ansible/delta-chat.yml diff --git a/ansible/delta-chat.yml b/ansible/delta-chat.yml new file mode 100644 index 0000000..5f17f0b --- /dev/null +++ b/ansible/delta-chat.yml @@ -0,0 +1,31 @@ +--- +- name: Install madmail/deltachat + hosts: all + become: true + tasks: + - name: Create madmail directory + file: + path: "/home/{{ butter_user }}/madmail" + state: directory + owner: "{{ butter_user }}" + group: "{{ butter_user }}" + mode: "0755" + + - name: Download pre-built madmail archive + get_url: + 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 + unarchive: + src: "/tmp/madmail-linux-{{ go_arch_map[ansible_architecture] }}.tar.gz" + dest: "/home/{{ butter_user }}/madmail" + remote_src: yes + #extra_opts: [--strip-components=1] + + - name: Ensure butter_user owns madmail directory + file: + path: "/home/{{ butter_user }}/madmail" + state: directory + recurse: yes diff --git a/ansible/main.yml b/ansible/main.yml index 770412c..7687838 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -4,6 +4,8 @@ - "base" - "ap" - "matrix" +- import_playbook: delta-chat.yml + tags: "delta-chat" - import_playbook: install-rasp-ap.yml tags: "ap" when: ap_mode_supported | bool