You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
948 B
54 lines
948 B
--- |
|
|
|
- name: Install maddy binary |
|
copy: |
|
dest: /usr/local/bin/maddy |
|
src: "{{ inventory_dir }}/vendor/maddy" |
|
owner: root |
|
group: root |
|
mode: 0755 |
|
|
|
- name: Create maddy group |
|
group: |
|
name: maddy |
|
system: True |
|
|
|
- name: Create maddy user |
|
user: |
|
name: maddy |
|
system: True |
|
group: maddy |
|
home: /var/lib/maddy |
|
shell: /bin/bash |
|
|
|
- name: Create /etc/maddy |
|
file: |
|
path: /etc/maddy |
|
state: directory |
|
owner: maddy |
|
group: maddy |
|
mode: 0755 |
|
|
|
- name: Install maddy config |
|
template: |
|
dest: /etc/maddy/maddy.conf |
|
src: etc/maddy/maddy.conf.tmpl |
|
owner: maddy |
|
group: maddy |
|
mode: 0644 |
|
|
|
- name: Add Maddy systemd unit |
|
copy: |
|
dest: /etc/systemd/system/maddy.service |
|
src: "{{ role_path }}/files/maddy.service" |
|
owner: root |
|
group: root |
|
mode: 0755 |
|
notify: reload systemd |
|
|
|
- name: Enable and start maddy |
|
service: |
|
name: maddy |
|
enabled: yes |
|
state: started |
|
|
|
|