Skip to content

Commit

Permalink
chore: improve commented example
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Nov 20, 2024
1 parent f4efada commit 6c0d60a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
block:

- name: Copy some content to a file
ansible.builtin.copy: # instead of 'content', you can also pass the 'src' argument to copy a file
ansible.builtin.copy:
dest: "{{ testfile }}"
mode: "0700"
owner: root
group: root
content: "{{ _src_component_bar | split | map('regex_replace', 'X', '') | join }}" # You can create pipes using filters
# src: foo.txt # instead of 'content', you can also pass the 'src' argument to copy an entire file

- name: Cat the contents of this file
ansible.builtin.command:
Expand Down

0 comments on commit 6c0d60a

Please sign in to comment.