diff --git a/ssh/manifests/init.pp b/ssh/manifests/init.pp index 515e9f5..84daeb8 100644 --- a/ssh/manifests/init.pp +++ b/ssh/manifests/init.pp @@ -178,7 +178,7 @@ class ssh::allowgroups { exec { "ssh-allowgroups-sub": path => "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", cwd => "/etc/ssh", - command => "ruby -pi -e 'sub(/(AllowGroups).*/, \"\\\1 ${ssh_allowgroups_real}\")' sshd_config", + command => "ruby -pi -e 'sub(/(AllowGroups).*/, \"\\\\1 ${ssh_allowgroups_real}\")' sshd_config", unless => "grep -q '^[^#]*AllowGroups ${ssh_allowgroups_real}' sshd_config", notify => Service["sshd"], }