Merge pull request #10514 from bcoca/fix_password_template_error
now ansible ignores tempate errors on passwords
This commit is contained in:
commit
278c1e6514
1 changed files with 6 additions and 2 deletions
|
@ -934,8 +934,12 @@ class Runner(object):
|
||||||
|
|
||||||
# user/pass may still contain variables at this stage
|
# user/pass may still contain variables at this stage
|
||||||
actual_user = template.template(self.basedir, actual_user, inject)
|
actual_user = template.template(self.basedir, actual_user, inject)
|
||||||
actual_pass = template.template(self.basedir, actual_pass, inject)
|
try:
|
||||||
self.become_pass = template.template(self.basedir, self.become_pass, inject)
|
actual_pass = template.template(self.basedir, actual_pass, inject)
|
||||||
|
self.become_pass = template.template(self.basedir, self.become_pass, inject)
|
||||||
|
except:
|
||||||
|
# ignore password template errors, could be triggered by password charaters #10468
|
||||||
|
pass
|
||||||
|
|
||||||
# make actual_user available as __magic__ ansible_ssh_user variable
|
# make actual_user available as __magic__ ansible_ssh_user variable
|
||||||
inject['ansible_ssh_user'] = actual_user
|
inject['ansible_ssh_user'] = actual_user
|
||||||
|
|
Loading…
Reference in a new issue