File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,11 @@ def line(
368368
369369 host .create_fact (
370370 FindInFile ,
371- kwargs = {'path' : path , 'pattern' : match_line },
371+ kwargs = {
372+ 'path' : path ,
373+ 'pattern' : match_line ,
374+ 'interpolate_variables' : interpolate_variables ,
375+ },
372376 data = [replace or line ],
373377 )
374378
@@ -383,7 +387,11 @@ def line(
383387
384388 host .delete_fact (
385389 FindInFile ,
386- kwargs = {'path' : path , 'pattern' : match_line },
390+ kwargs = {
391+ 'path' : path ,
392+ 'pattern' : match_line ,
393+ 'interpolate_variables' : interpolate_variables ,
394+ },
387395 )
388396
389397 # Line(s) exists and we have want to ensure they're correct
@@ -449,7 +457,11 @@ def replace(
449457 )
450458 host .create_fact (
451459 FindInFile ,
452- kwargs = {'path' : path , 'pattern' : match },
460+ kwargs = {
461+ 'path' : path ,
462+ 'pattern' : match ,
463+ 'interpolate_variables' : interpolate_variables ,
464+ },
453465 data = [],
454466 )
455467 else :
You can’t perform that action at this time.
0 commit comments