From 234c93c22a8d3be5fdde15338b99a8462747bcf7 Mon Sep 17 00:00:00 2001
From: saibotk <git@saibotk.de>
Date: Wed, 3 Feb 2021 11:47:44 +0100
Subject: [PATCH] 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
---
 requirements.yml | 6 +++---
 ssh.yml          | 4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/requirements.yml b/requirements.yml
index 6b71ab0d..92af358b 100644
--- a/requirements.yml
+++ b/requirements.yml
@@ -1,4 +1,4 @@
 ---
-
-- src: dev-sec.ssh-hardening
-  version: 9.7.0
+collections:
+- name: devsec.hardening
+  version: 7.1.0
diff --git a/ssh.yml b/ssh.yml
index 7a32fbe0..b730948c 100644
--- a/ssh.yml
+++ b/ssh.yml
@@ -18,8 +18,10 @@
 #
 
 - hosts: ssh
+  collections:
+    - devsec.hardening
   roles:
     - sys-upgrade
-    - role: dev-sec.ssh-hardening
+    - role: devsec.hardening.ssh_hardening
       become: true
     - ssh
-- 
GitLab