dd
This commit is contained in:
parent
92a7944e00
commit
d525955a33
2 changed files with 12 additions and 28 deletions
|
@ -14,4 +14,12 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
masked: false
|
masked: false
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: "restart ssmtp"
|
||||||
|
become: true
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: ssmtp
|
||||||
|
enabled: true
|
||||||
|
masked: false
|
||||||
|
state: restarted
|
||||||
...
|
...
|
||||||
|
|
|
@ -1,32 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: ensure packages are installed
|
- name: Template ssmtp config
|
||||||
become: true
|
|
||||||
ansible.builtin.package:
|
|
||||||
name: "{{ munin_packages }}"
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Ensure needed dirs exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
mode: '0755'
|
|
||||||
owner: munin
|
|
||||||
group: munin
|
|
||||||
loop: "{{ munin_dirs }}"
|
|
||||||
|
|
||||||
- name: Ensure permissions are set
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: /var/lib/munin/cgi-tmp
|
|
||||||
mode: 'ugo+rw'
|
|
||||||
state: directory
|
|
||||||
owner: munin
|
|
||||||
group: munin
|
|
||||||
recurse: true
|
|
||||||
|
|
||||||
- name: Template apache config
|
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: apache.conf
|
src: ssmtp.conf
|
||||||
dest: /etc/apache2/sites-available/000-default.conf
|
dest: /etc/ssmtp/ssmtp.conf
|
||||||
notify: "restart apache2"
|
notify: "restart ssmtp"
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue