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/anon-stats.yml
2022-05-02 17:37:08 +02:00

16 lines
501 B
YAML

---
# Sends anonymous stats if the user is ok with it
- name: ANSISTRANO | Send anonymous stats
uri:
url: https://ansistrano.com/deploy
follow_redirects: all
method: POST
timeout: 5
body: "deploy_via={{ ansistrano_deploy_via | default('rsync') }}&version={{ ansible_version.string }}"
headers:
Content-Type: "application/x-www-form-urlencoded"
when: ansistrano_allow_anonymous_stats|bool
run_once: true
ignore_errors: yes
delegate_to: 127.0.0.1
become: false