summaryrefslogtreecommitdiff
path: root/tests/fixtures/config/remote-action-modules/git/org_project/playbooks/roles/patch-test/tasks/main.yaml
blob: c1c4ccba85914c53b9719a3636b9adaabf9d309e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Create a destination directory for copied files
  tempfile:
    state: directory
  register: destdir

- name: Copy readme
  copy:
    src: readme.txt
    dest: "{{destdir.path}}/readme.txt"

- name: Patch
  patch:
    src: "{{src_file}}"
    basedir: "{{destdir.path}}"
    strip: 1