1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/ansistrano.deploy/tasks/update-code/gcs.yml

15 lines
579 B
YAML
Raw Permalink Normal View History

2022-05-02 17:37:08 +02:00
---
- name: ANSISTRANO | GC storage | Create release folder
file:
state: directory
path: "{{ ansistrano_release_path.stdout }}"
- name: ANSISTRANO | GC storage | Get object from GC storage
gc_storage:
bucket: "{{ ansistrano_gcs_bucket }}"
object: "{{ ansistrano_gcs_object }}"
region: "{{ ansistrano_gcs_region }}"
gs_access_key: "{{ ansistrano_gcs_access_key | default(omit) }}"
gs_secret_key: "{{ ansistrano_gcs_secret_key | default(omit) }}"
dest: "{{ ansistrano_release_path.stdout }}/{{ ansistrano_gcs_object | basename }}"
mode: get