-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
31 lines (26 loc) · 970 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- hosts: all
become: false
gather_facts: yes
tasks:
- name: Information
ansible.builtin.debug:
msg:
- "Hostname: {{ ansible_hostname }}"
- "OS: {{ ansible_distribution }} {{ ansible_distribution_version }}"
- "KERNEL: {{ ansible_kernel }}"
- "ARCH: {{ ansible_architecture }}"
- "IP: {{ ansible_default_ipv4.address }}"
- name: Confirm
ansible.builtin.pause:
prompt: "Press ENTER to continue with installation of Go (Version: {{ go_version }}) (CTRL + C to cancel)"
when: confirm_playbook
- name: Go Installation (Linux)
ansible.builtin.include_tasks: tasks/go.yml
when: configure_go and ansible_distribution != 'MacOSX'
- name: Go Installation (macOS)
ansible.builtin.include_tasks: tasks/go_MacOSX.yml
when: configure_go and ansible_distribution == 'MacOSX'
- name: Finished
ansible.builtin.debug:
msg: "Done!"