Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
go: add role
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtamborski committed Jun 3, 2019
1 parent ff53e42 commit 5dc6e78
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions roles/go/tasks/main.yaml
@@ -0,0 +1,28 @@
---

- name: go - main
include_role:
public: yes
name: common
tasks_from: main
vars:
given: "{{ go }}"


- name: download
get_url:
url: "{{ go.url }}"
dest: "/tmp/go.tar.gz"


- name: install
become: yes
unarchive:
src: "/tmp/go.tar.gz"
dest: "/usr/local"


- name: clean up
file:
path: "/tmp/go.tar.gz"
state: absent

0 comments on commit 5dc6e78

Please sign in to comment.