Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible_lza_server_hardening
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
ansible_lza_server_hardening
Compare revisions
a9c3446d3b1b24c559ace839066b670e5e4d346c to 75ad2e61ebe95790181e84e4e97b0e620c1875c8
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
digital-preservation/ansible_lza_server_hardening
Select target project
No results found
75ad2e61ebe95790181e84e4e97b0e620c1875c8
Select Git revision
Branches
master
1 result
Swap
Target
digital-preservation/ansible_lza_server_hardening
Select target project
digital-preservation/ansible_lza_server_hardening
1 result
a9c3446d3b1b24c559ace839066b670e5e4d346c
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
test: onyl keep paths in vault_identity_list that we expect to exist
· bc6e9d8e
Jörg Sachse
authored
1 month ago
Verified
bc6e9d8e
feat: explicitely configure crypto policy to disable weak ciphers and kex algorithms in SSH
· 75ad2e61
Jörg Sachse
authored
1 month ago
Verified
75ad2e61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
molecule/virtualbox_debian12/molecule.yml
+1
-1
1 addition, 1 deletion
molecule/virtualbox_debian12/molecule.yml
tasks/configure_crypto_policy.yml
+15
-0
15 additions, 0 deletions
tasks/configure_crypto_policy.yml
tasks/main.yml
+5
-0
5 additions, 0 deletions
tasks/main.yml
with
21 additions
and
1 deletion
molecule/virtualbox_debian12/molecule.yml
View file @
75ad2e61
...
...
@@ -26,7 +26,7 @@ provisioner:
# https://stackoverflow.com/questions/57435811/ansible-molecule-pass-multiple-vault-ids
# vault_identity_list: "@$HOME/.ansible/roles/lza_install_common.pass, @$HOME/.ansible/roles/passfile_1.pass"
# vault_identity_list: "${MOLECULE_PROJECT_DIRECTORY}/../../lza_server_hardening.pass"
vault_identity_list
:
"
../lza_server_hardening.pass,
../../../lza_server_hardening.pass"
vault_identity_list
:
"
../../../lza_server_hardening.pass"
display_skipped_hosts
:
false
display_ok_hosts
:
false
vvv
:
false
...
...
This diff is collapsed.
Click to expand it.
tasks/configure_crypto_policy.yml
0 → 100644
View file @
75ad2e61
---
-
name
:
Get crypto policy.
ansible.builtin.command
:
cmd
:
"
/usr/bin/update-crypto-policies
--show"
register
:
crypto_policy
changed_when
:
false
-
name
:
Set crypto policy.
ansible.builtin.command
:
cmd
:
"
/usr/bin/update-crypto-policies
--set
FUTURE"
when
:
"
'FUTURE'
in
crypto_policy.stdout"
notify
:
-
"
restart
sshd"
# The best soluion would be to reboot the server, but we won't do that for availability.
changed_when
:
false
This diff is collapsed.
Click to expand it.
tasks/main.yml
View file @
75ad2e61
...
...
@@ -28,6 +28,11 @@
ansible.builtin.import_tasks
:
"
configure_ssh_hardening.yml"
tags
:
[
ssh
]
-
name
:
Configure crypto policy. Settings in /etc/ssh/sshd_config keep getting overwritten if the crypto policy remains at Default.
ansible.builtin.import_tasks
:
"
configure_crypto_policy.yml"
when
:
ansible_os_family == "RedHat"
# Debian doesn't use crypto-policy
tags
:
[
ssh
,
cryptopolicy
,
crypto-policy
,
crypto_policy
,
cipher
,
kex
]
-
name
:
configure fail2ban
ansible.builtin.import_tasks
:
"
configure_fail2ban.yml"
tags
:
[
fail2ban
,
ssh
]
...
...
This diff is collapsed.
Click to expand it.