base: Convert modules to use FQCN and use smartd role

This commit is contained in:
Timo Makinen 2022-04-14 13:29:44 +00:00
parent b9aeb7ee06
commit 711cec9b54
3 changed files with 33 additions and 41 deletions

View file

@ -1,6 +1,6 @@
---
- name: install os specific roles
include_role:
ansible.builtin.include_role:
name: "{{ role }}"
with_items:
- selinux # selinux first to get fcontexts working
@ -10,12 +10,12 @@
loop_var: role
- name: fix selinux context from /export
sefcontext:
community.general.sefcontext:
path: "/export"
setype: var_t
- name: check selinux context from /export
command:
ansible.builtin.command:
argv:
- matchpathcon
- -V
@ -26,7 +26,7 @@
failed_when: false
- name: apply selinux context to /export
command:
ansible.builtin.command:
argv:
- restorecon
- -iv
@ -34,18 +34,18 @@
when: "' should be ' in result.stdout"
- name: enable tmpfs mount for /tmp
service:
ansible.builtin.service:
name: tmp.mount
state: started
enabled: true
- name: install postfix
include_role:
ansible.builtin.include_role:
name: postfix
when: "'mail' not in group_names"
- name: install packages
package:
ansible.builtin.package:
name: "{{ item }}"
state: installed
with_items:
@ -70,12 +70,12 @@
- xterm # resize
- name: disable grep colors
file:
ansible.builtin.file:
dest: /etc/GREP_COLORS
state: absent
- name: store date and time for bash history
copy:
ansible.builtin.copy:
dest: /etc/profile.d/history.sh
content: 'export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "'
mode: 0644
@ -83,7 +83,7 @@
group: "{{ ansible_wheel }}"
- name: cron job for downloading yum updates
cron:
ansible.builtin.cron:
name: yum-downloadonly
user: root
hour: "3"