ansible/roles/common/tasks/main.yml in subspace-2.2.3 vs ansible/roles/common/tasks/main.yml in subspace-2.3.0

- old
+ new

@@ -250,6 +250,32 @@ state: directory become: true tags: - maintenance + - name: Grab OS version + shell: uname --kernel-release + register: stats_os_version + when: send_stats == true and stats_url is defined and stats_api_key is defined + tags: + - maintenance + - stats + + - name: Send OS stats to URL + uri: + url: "{{stats_url}}" + method: POST + headers: + X-API-Version: 1 + X-Client-Api-key: "{{stats_api_key}}" + body_format: json + body: + client_stat: + key: os_version + value: "{{stats_os_version.stdout}}" + hostname: "{{hostname}}" + when: send_stats == true and stats_url is defined and stats_api_key is defined + tags: + - maintenance + - stats + - import_tasks: swap.yml