Closed obvionaoe closed 2 years ago
Please see the documentation:
ssh_permit_root_login
Default: no
Description: Disable root-login. Set to 'without-password' or 'yes' to enable root-login - The quotes are required!
You need to use quotes:
- hosts: all
become: true
tasks:
- name: SSH Hardening
include_role:
name: roles/ansible_collections/devsec/hardening/roles/ssh_hardening
vars:
network_ipv6_enable: false
ssh_permit_root_login: "yes"
Well this worked before without quotes... Thanks!
You're right, it did work on an older version. But since the permit root option takes other values besides yes and no it was changed to a string.
Gotcha! Thanks
Describe the bug I'm getting an error when using the ssh_hardening role from the collection. I don't know how to debug it since it gives an error from a temporary file.
Expected behavior The role should run without any issues
Actual behavior
Example Playbook
OS / Environment
Ubuntu 20.04
Ansible Version
Role Version
Additional context Add any other context about the problem here.