Last active
April 6, 2022 08:25
-
-
Save Himura2la/4daf4c303bf1f7729d13ce2b9f3a4248 to your computer and use it in GitHub Desktop.
Fix CRLF on file copy in Ansible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: vimrc is up to date | |
copy: | |
content: "{{ lookup('file', '.vimrc') | regex_replace('\\r$', '', multiline=True) }}\n" | |
dest: /home/{{ ansible_user }}/.vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment