You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/roles/upload-local-file/tasks/main.yml

34 lines
913 B
YAML

---
- name: "Send mattermost message"
uri:
url: "{{ mattermost_hook_smardigo }}"
method: POST
body: "{{ lookup('template','mattermost-deploy-start.json.j2') }}"
body_format: json
headers:
Content-Type: "application/json"
delegate_to: 127.0.0.1
become: false
when:
- send_status_messages # TODO: Message Refactor :')
- name: "Copy file to remote locations {{ upload_directory }}/{{ upload_file | basename }}"
copy:
src: "{{ upload_file }}"
dest: "{{ upload_directory }}/{{ upload_file | basename }}"
mode: 0644
- name: "Send mattermost message"
uri:
url: "{{ mattermost_hook_smardigo }}"
method: POST
body: "{{ lookup('template','mattermost-deploy-end.json.j2') }}"
body_format: json
headers:
Content-Type: "application/json"
delegate_to: 127.0.0.1
become: false
when:
- send_status_messages # TODO: Message Refactor :')