Skip to content

Commit

Permalink
Replace " for ' to expand tab characters (#109)
Browse files Browse the repository at this point in the history
When these strings are single quoted, we get a literaly '\t' string
where a TAB character is expected.  Double quoting does the expected
thing.  Tested with Ansible 2.1.0.0.
  • Loading branch information
shaunbrady authored and shepdelacreme committed Aug 22, 2017
1 parent d2e9dfc commit e4e266f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/cat1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
backup: yes
dest: /etc/xinetd.d/tftp
regexp: 'server_args\s+=\s+(/.*$)'
line: '\tserver_args\t\t= -s \1'
line: "\tserver_args\t\t= -s \\1"
backrefs: yes
when: "rhel6stig_tftp_required and 'tftp' in tftp_service_check.rc == 0"
notify: reload xinetd
Expand Down
2 changes: 1 addition & 1 deletion tasks/cat3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
backup: no
dest: /etc/login.defs
regexp: '^#?PASS_WARN_AGE'
line: 'PASS_WARN_AGE\t7'
line: "PASS_WARN_AGE\t7"
tags:
- cat3
- low
Expand Down

0 comments on commit e4e266f

Please sign in to comment.