Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lineinfile module can not inserting double quotes at the beginning and end of the line #10864

Closed
jaypei opened this issue Apr 29, 2015 · 1 comment
Labels
bug This issue/PR relates to a bug.

Comments

@jaypei
Copy link
Contributor

jaypei commented Apr 29, 2015

Issue Type:

Bug Report

Ansible Version:
ansible 1.9.0.1
  configured module search path = None
Environment:

Running on Arch Linux, managing CentOS 5 or Arch Linux.

Summary:

When using the lineinfile module with with double quotes at the beginning and end of the line, double quotes is missing.
Similar problems in #9171 and #8806, has still not been completely solved.

Steps To Reproduce:

$ cat site.yml

---
- hosts: localhost
  tasks:
  - name: insert a line into the quoted file with many double quotation strings
    lineinfile: dest=/tmp/myline.txt line="\"quote\" and \"unquote\"" create=yes
Expected Results:

$ cat /tmp/myline.txt

"quote" and "unquote"
Actual Results:

$ cat /tmp/myline.txt

quote" and "unquote
@abadger
Copy link
Contributor

abadger commented May 17, 2015

Closing This Ticket

Hi!

We believe recent commits (likely detailed above) should resolve this question or problem for you.

This will also be included in the next major release.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular
issue is resolved.

Thank you!

@abadger abadger closed this as completed May 17, 2015
abadger pushed a commit to ansible/ansible-modules-core that referenced this issue Jun 1, 2015
bbaumer pushed a commit to bbaumer/ansible-modules-core that referenced this issue Jun 29, 2015
bbaumer pushed a commit to bbaumer/ansible-modules-core that referenced this issue Jun 29, 2015
jimi-c pushed a commit to ansible/ansible-modules-core that referenced this issue Sep 10, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants