From 94518c096f6003fd2246e9c2f9c75cb2b077a543 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 25 Oct 2014 17:01:36 +0900 Subject: [PATCH] ansible/sshd_config: Add pam config --- ansible/sshd_config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/sshd_config.yml b/ansible/sshd_config.yml index 0e0f15d..6e3dc6a 100644 --- a/ansible/sshd_config.yml +++ b/ansible/sshd_config.yml @@ -47,6 +47,11 @@ regexp="^(#)?UseDNS" line="UseDNS no" notify: restart sshd + - name: UsePAM no + lineinfile: dest={{conf}} + regexp="^(#)?UsePAM" + line="UsePAM no" + notify: restart sshd handlers: - name: restart sshd