added os display in tasks name
This commit is contained in:
parent
076c178a0c
commit
22ee27cba0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue