Skip to content

Commit e750729

Browse files
authored
chore(ssh_hardening): ansible 2.19 compatibility (#868)
* chore(ssh_hardening): jinja2 templates header fixed Signed-off-by: Nemental <15136847+Nemental@users.noreply.github.com> * chore(ssh_hardening): conditional bool handling Signed-off-by: Nemental <15136847+Nemental@users.noreply.github.com> --------- Signed-off-by: Nemental <15136847+Nemental@users.noreply.github.com>
1 parent 1388eea commit e750729

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

roles/ssh_hardening/tasks/hardening.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
notify: Restart sshd
114114
when:
115115
- ssh_server_hardening | bool
116-
- sshd_register_moduli.stdout
116+
- sshd_register_moduli.stdout is truthy
117117

118118
- name: Include tasks to setup ca keys and principals
119119
ansible.builtin.include_tasks: ca_keys_and_principals.yml

roles/ssh_hardening/templates/openssh.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#jinja2: trim_blocks: "true", lstrip_blocks: "true"
1+
#jinja2: trim_blocks:True, lstrip_blocks:True
22
{{ ansible_managed | comment }}
33
# Generated by Ansible role {{ ansible_role_name }}
44

roles/ssh_hardening/templates/opensshd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#jinja2: trim_blocks: "true", lstrip_blocks: "true"
1+
#jinja2: trim_blocks:True, lstrip_blocks:True
22
{{ ansible_managed | comment }}
33
# Generated by Ansible role {{ ansible_role_name }}
44

0 commit comments

Comments
 (0)