roles_lists: Rename role

This commit is contained in:
Timo Makinen 2022-02-25 00:06:58 +00:00
parent 1fb080b009
commit 4d6dcdac82
6 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,43 @@
---
- name: install archiver
copy:
dest: /etc/smrsh/archiver
src: archiver.sh
mode: 0755
owner: root
group: "{{ ansible_wheel }}"
- name: link legacy archiver
file:
dest: /etc/smrsh/archiver.pl
src: /etc/smrsh/archiver
state: link
owner: root
group: "{{ ansible_wheel }}"
follow: false
- name: copy selinux module
copy:
dest: /usr/local/share/selinux/sendmail-spamc.pp
src: sendmail-spamc.pp
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: check if selinux module is loaded
command:
argv:
- semodule
- -l
register: result
check_mode: false
changed_when: false
- name: insall selinux module
command:
argv:
- semodule
- -i
- /usr/local/share/selinux/sendmail-spamc.pp
when: '"sendmail-spamc" not in result.stdout_lines'