UNPKG

@installdoc/ansible-gas-station

Version:

An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤

27 lines (23 loc) 1.26 kB
--- - name: Include variables based on the operating system include_vars: "{{ ansible_os_family }}.yml" - name: "Detect the latest {{ app_name }} version" uri: url: https://api.github.com/repos/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/releases/latest register: googleassistant_latest_release_tag delegate_to: localhost - name: "Save the latest {{ app_name }} version to a variable" set_fact: googleassistant_latest_version: "{{ googleassistant_latest_release_tag.json.tag_name | replace('v','') }}" # @action Ensures Google Assistant Unofficial Client is installed # Installs Google Assistant Unofficial Client on Archlinux, CentOS, Debian, Fedora, Ubuntu, MacOS and Windows # @action Ensures Google Assistant Unofficial Client is configured # Copies the provided Client Secret to the right directory # @action Ensures Google Assistant Unofficial Client is configured # Configures Google Assistant Unofficial Client's settings - name: Include tasks based on the operating system become: true become_method: "{{ 'runas' if ansible_os_family == 'Windows' else 'sudo' }}" become_user: "{{ ansible_user if ansible_os_family == 'Windows' else omit }}" block: - include_tasks: "install-{{ ansible_os_family }}.yml"