base: ansible-lint fixes
This commit is contained in:
parent
c23181edc7
commit
186cd19cd1
3 changed files with 30 additions and 30 deletions
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
- name: set correct hostname
|
||||
- name: Set correct hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
|
||||
- name: install os specific roles
|
||||
- name: Install OS specific roles
|
||||
ansible.builtin.include_role:
|
||||
name: "{{ role }}"
|
||||
with_items:
|
||||
|
@ -12,22 +12,22 @@
|
|||
loop_control:
|
||||
loop_var: role
|
||||
|
||||
- name: install firewall
|
||||
- name: Install firewall
|
||||
ansible.builtin.include_role:
|
||||
name: iptables
|
||||
when: ansible_distribution_major_version|int <= 8
|
||||
|
||||
- name: install firewall
|
||||
- name: Install firewall
|
||||
ansible.builtin.include_role:
|
||||
name: nftables
|
||||
when: ansible_distribution_major_version|int >= 9
|
||||
|
||||
- name: fix selinux context from /export
|
||||
- name: Fix SELinux context from /export
|
||||
community.general.sefcontext:
|
||||
path: "/export"
|
||||
setype: var_t
|
||||
|
||||
- name: check selinux context from /export
|
||||
- name: Check SELinux context from /export
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- matchpathcon
|
||||
|
@ -38,7 +38,7 @@
|
|||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: apply selinux context to /export
|
||||
- name: Apply selinux context to /export
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- restorecon
|
||||
|
@ -46,18 +46,18 @@
|
|||
- /export
|
||||
when: "' should be ' in result.stdout"
|
||||
|
||||
- name: enable tmpfs mount for /tmp
|
||||
- name: Enable tmpfs mount for /tmp
|
||||
ansible.builtin.service:
|
||||
name: tmp.mount
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: install postfix
|
||||
- name: Install postfix
|
||||
ansible.builtin.include_role:
|
||||
name: postfix
|
||||
when: "'mail' not in group_names"
|
||||
|
||||
- name: install packages
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
|
@ -81,7 +81,7 @@
|
|||
- vim-enhanced # working vi :)
|
||||
- xterm # resize
|
||||
|
||||
- name: install el7/el8 packages
|
||||
- name: Install el7/el8 packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
|
@ -89,7 +89,7 @@
|
|||
- mailx
|
||||
when: ansible_distribution_major_version|int <= 8
|
||||
|
||||
- name: install el9 packages
|
||||
- name: Install el9 packages
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
|
@ -97,12 +97,12 @@
|
|||
- s-nail
|
||||
when: ansible_distribution_major_version|int >= 9
|
||||
|
||||
- name: disable grep colors
|
||||
- name: Disable grep colors
|
||||
ansible.builtin.file:
|
||||
dest: /etc/GREP_COLORS
|
||||
state: absent
|
||||
|
||||
- name: store date and time for bash history
|
||||
- name: Store date and time for bash history
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/profile.d/history.sh
|
||||
content: 'export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "'
|
||||
|
@ -110,7 +110,7 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: cron job for downloading yum updates
|
||||
- name: Cron job for downloading yum updates
|
||||
ansible.builtin.cron:
|
||||
name: yum-downloadonly
|
||||
user: root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue