8000 ansible.builtin.lineinfile and ansible.builtin.blockinfile charset support · Issue #84817 · ansible/ansible · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ansible.builtin.lineinfile and ansible.builtin.blockinfile charset support #84817
Open
@roded

Description

@roded

Summary

I'm trying to use ansible.builtin.lineinfile and ansible.builtin.blockinfile to make changes to a file which is not UTF-8.

Issue Type

Feature Idea

Component Name

ansible.builtin.lineinfile
ansible.builtin.blockinfile

Additional Information

Suggested usage (similar to ansible.builtin.replace):

- name: Set the license 
  ansible.builtin.lineinfile:
    path: "{{ conf_path }}/licenses.txt"
    line: "{{ license_key }}"
    insertafter: EOF
    encoding: cp037

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue/PR relates to a feature request.has_prThis issue has an associated PR.moduleThis issue/PR relates to a module.waiting_on_contributorThis would be accepted but there are no plans to actively work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0