Skip to content

Instantly share code, notes, and snippets.

@greg-hellings
Created May 26, 2016 13:49
Show Gist options
  • Save greg-hellings/64a2f89f42cd450d6eab89e233d6a132 to your computer and use it in GitHub Desktop.
Save greg-hellings/64a2f89f42cd450d6eab89e233d6a132 to your computer and use it in GitHub Desktop.
- name: do something
lineinfile:
dest: "{{ item.file }}"
line: "{{ item.line }}"
state: present
with_items:
- file: /some/path/file.txt
line: "some line that needs to be there"
- file: /other/path/file.bat
line: "another line"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment