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:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
name: git
|
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:
|
ansible.builtin.apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
name: hostname
|
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:
|
ansible.builtin.systemd:
|
||||||
name: ssh
|
name: ssh
|
||||||
state: restarted
|
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:
|
ansible.builtin.lineinfile:
|
||||||
line: "Banner /etc/banner"
|
line: "Banner /etc/banner"
|
||||||
path: /etc/ssh/sshd_config
|
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:
|
ansible.builtin.yum:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
name: git
|
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:
|
ansible.builtin.yum:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
name: hostname
|
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:
|
ansible.builtin.systemd:
|
||||||
name: sshd
|
name: sshd
|
||||||
state: restarted
|
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:
|
ansible.builtin.lineinfile:
|
||||||
line: "Banner /etc/banner"
|
line: "Banner /etc/banner"
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in New Issue