mirror of
https://github.com/status-im/infra-role-s3cmd-upload.git
synced 2025-02-16 10:26:35 +00:00
Also changed prefix of variables to `s3cmd_upload_` from `backup_`. Signed-off-by: Jakub Sokołowski <jakub@status.im>
17 lines
337 B
YAML
17 lines
337 B
YAML
---
|
|
- name: Create directory for backup script
|
|
file:
|
|
path: '{{ item }}'
|
|
state: directory
|
|
group: adm
|
|
mode: 0775
|
|
with_items:
|
|
- '{{ s3cmd_upload_script_dir }}'
|
|
- '{{ s3cmd_upload_directory }}'
|
|
|
|
- name: Create backup script
|
|
template:
|
|
src: 'upload.sh.j2'
|
|
dest: '{{ s3cmd_upload_script }}'
|
|
mode: 0755
|