From 0977596360b0a2c6a875114624d4afc8b9823718 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 11 Apr 2021 04:33:35 +0200 Subject: add new config file barrier for core/sshd --- chaos-at-home/ch-jump.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chaos-at-home/ch-jump.yml') diff --git a/chaos-at-home/ch-jump.yml b/chaos-at-home/ch-jump.yml index 38d794ab..5c170e07 100644 --- a/chaos-at-home/ch-jump.yml +++ b/chaos-at-home/ch-jump.yml @@ -8,3 +8,12 @@ - role: core/zsh - role: core/ntp - role: core/admin-users + post_tasks: + - name: blub + blockinfile: + marker: "# {mark} ansible jump-host specific config" + block: | + Match user blub + PasswordAuthentication no + insertafter: '^### ansible core/sshd config barrier ###' + dest: /etc/ssh/sshd_config -- cgit v1.2.3