update..
This commit is contained in:
37
roles/common/tasks/copy_files.yml
Normal file
37
roles/common/tasks/copy_files.yml
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
|
||||
|
||||
|
||||
- name: (copy_files.yml) Copy plain files
|
||||
copy:
|
||||
src: '{{ item.src_path }}'
|
||||
dest: '{{ item.dest_path }}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ copy_plain_files }}"
|
||||
loop_control:
|
||||
label: 'dest: {{ item.name }}'
|
||||
when:
|
||||
- copy_plain_files is defined
|
||||
- copy_plain_files|length > 0
|
||||
tags:
|
||||
- copy-files
|
||||
- copy-plain-files
|
||||
|
||||
- name: (copy_files.yml) Copy template files
|
||||
template:
|
||||
src: '{{ item.src_path }}'
|
||||
dest: '{{ item.dest_path }}'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
loop: "{{ copy_template_files }}"
|
||||
loop_control:
|
||||
label: 'dest: {{ item.name }}'
|
||||
when:
|
||||
- copy_template_files is defined
|
||||
- copy_template_files|length > 0
|
||||
tags:
|
||||
- copy-files
|
||||
- copy-template-files
|
Reference in New Issue
Block a user