Initial changes to integrate new portal
This commit is contained in:
parent
c4ffbb00e2
commit
0fa18af48e
18 changed files with 311 additions and 221 deletions
|
|
@ -4,7 +4,7 @@
|
|||
become: true
|
||||
tasks:
|
||||
- name: Create madmail directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/home/{{ butter_user }}/madmail"
|
||||
state: directory
|
||||
owner: "{{ butter_user }}"
|
||||
|
|
@ -12,20 +12,22 @@
|
|||
mode: "0755"
|
||||
|
||||
- name: Download pre-built madmail archive
|
||||
get_url:
|
||||
ansible.builtin.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:
|
||||
ansible.builtin.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]
|
||||
remote_src: true
|
||||
# extra_opts: [--strip-components=1]
|
||||
|
||||
- name: Ensure butter_user owns madmail directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/home/{{ butter_user }}/madmail"
|
||||
state: directory
|
||||
recurse: yes
|
||||
recurse: true
|
||||
owner: "{{ butter_user }}"
|
||||
group: "{{ butter_user }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue