added os display in tasks name

This commit is contained in:
Bryan Joshua Pedini 2023-04-23 16:14:45 +02:00
parent 076c178a0c
commit 22ee27cba0
8 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
---
- name: Ensure git is installed and updated
- name: (debian) Ensure git is installed and updated
ansible.builtin.apt:
update_cache: yes
name: git

View File

@ -1,5 +1,5 @@
---
- name: Ensure the hostname package is installed and updated
- name: (debian) Ensure the hostname package is installed and updated
ansible.builtin.apt:
update_cache: yes
name: hostname

View File

@ -1,5 +1,5 @@
---
- name: Restart SSH service to apply new rules
- name: (debian) Restart SSH service to apply new rules
ansible.builtin.systemd:
name: ssh
state: restarted

View File

@ -1,5 +1,5 @@
---
- name: Ensure SSH banner is uncommented and right path in /etc/ssh/sshd_config
- name: (debian) Ensure SSH banner is uncommented and right path in /etc/ssh/sshd_config
ansible.builtin.lineinfile:
line: "Banner /etc/banner"
path: /etc/ssh/sshd_config

View File

@ -1,5 +1,5 @@
---
- name: Ensure git is installed and updated
- name: (rhel) Ensure git is installed and updated
ansible.builtin.yum:
update_cache: yes
name: git

View File

@ -1,5 +1,5 @@
---
- name: Ensure the hostname package is installed and updated
- name: (rhel) Ensure the hostname package is installed and updated
ansible.builtin.yum:
update_cache: yes
name: hostname

View File

@ -1,5 +1,5 @@
---
- name: Restart SSH service to apply new rules
- name: (rhel) Restart SSH service to apply new rules
ansible.builtin.systemd:
name: sshd
state: restarted

View File

@ -1,5 +1,5 @@
---
- name: Ensure SSH banner is uncommented and right path in /etc/ssh/sshd_config
- name: (rhel) Ensure SSH banner is uncommented and right path in /etc/ssh/sshd_config
ansible.builtin.lineinfile:
line: "Banner /etc/banner"
path: /etc/ssh/sshd_config