@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
11 lines (10 loc) • 480 B
YAML
# @todo Improvement: Add feature that installs Go packages defined in the `go_packages` variable
# @action Installs Go
# Ensures Go is installed on macOS, Linux, and Windows systems
- 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"