File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ users_{{ users.googleauth_dir }}:
1919{%- if ' google_auth' in user % }
2020{%- for svc in user[' google_auth' ] % }
2121{%- if user.get(' google_2fa' , True ) % }
22- {%- set repl = ' {0} {1} {2} {3} {4}{5} /{6} _{7} {8} \\ n {9} ' .format(
22+ {%- set repl = ' {0} {1} {2} {3} {4}{5} /{6} _{7} {8} ' .format(
2323 ' auth' ,
2424 ' [success=done new_authtok_reqd=done default=die]' ,
2525 ' pam_google_authenticator.so' ,
@@ -29,13 +29,12 @@ users_{{ users.googleauth_dir }}:
2929 ' ${USER} ' ,
3030 svc,
3131 ' echo_verification_code' ,
32- ' @include common-auth' ,
3332 ) % }
3433users_googleauth- pam- {{ svc }}- {{ name }}:
3534 file .replace:
3635 - name: / etc/ pam.d/ {{ svc }}
37- - pattern: " ^ @include common-auth"
38- - repl: " {{ repl }} "
36+ - pattern: ' ^( @include[ \t ]* common-auth) '
37+ - repl: ' {{ repl }} \n\1 '
3938 - unless: grep pam_google_authenticator.so / etc/ pam.d/ {{ svc }}
4039 - backup: .bak
4140{%- endif % }
You can’t perform that action at this time.
0 commit comments