ssh: Migrate ssh-hardening to use the new collection

This patch migrates to the new devsec.hardening collection, because the role is now included in the collection instead and will only be updated there.

See: https://github.com/dev-sec/ansible-ssh-hardening#ssh-hardening-ansible-role
This commit is contained in:
saibotk 2021-02-03 11:41:48 +01:00
parent d91103792d
commit 022984594b
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,4 @@
--- ---
- src: dev-sec.ssh-hardening collections:
version: 9.7.0 - name: devsec.hardening
version: 7.1.0

View file

@ -18,9 +18,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
- hosts: ssh - hosts: ssh
collections:
- devsec.hardening
roles: roles:
- role: ssh - role: ssh
- role: dev-sec.ssh-hardening - role: devsec.hardening.ssh_hardening
become: true become: true
- role: epel - role: epel
- role: fail2ban - role: fail2ban