Pastebin

Paste #8515: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

  - name: Create folders
    file:
      path: /{{ item.path }}
      state: directory
      mode: '{{ item.mode }}'
    with_filetree: nodes/venus/templates/
    when: item.state == 'directory'

  # explicitly skip directories in order to use the 'src' attribute
  - name: Template files
    template:
      src: '{{ item.src }}'
      dest: /{{ item.path }}
      mode: '{{ item.mode }}'
    with_filetree: nodes/venus/templates/
    when: item.state == 'file'

  - name: Recreate symlinks
    file:
      src: '{{ item.src }}'
      dest: /{{ item.path }}
      state: link
      force: yes
      mode: '{{ item.mode }}'
    with_filetree: nodes/venus/templates/
    when: item.state == 'link'

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.