diff --git a/roles/goss/defaults/main.yml b/roles/goss/defaults/main.yml new file mode 100644 index 0000000..f9e3d71 --- /dev/null +++ b/roles/goss/defaults/main.yml @@ -0,0 +1,3 @@ +depl_url: "http://s-mon.gsb.lan/gsbstore/" +depl_goss: "goss" + diff --git a/roles/goss/tasks/main.yml b/roles/goss/tasks/main.yml index 4af44da..6585e6d 100644 --- a/roles/goss/tasks/main.yml +++ b/roles/goss/tasks/main.yml @@ -5,6 +5,9 @@ register: gossbin - name: install goss - shell: export https_proxy=http://10.121.38.1:8080 && curl -fsSL https://goss.rocks/install | sh + get_url: + url: "{{ depl_url }}/{{ depl_goss }}" + dest: /usr/local/bin/{{ depl_goss }} + mode: 0755 when: gossbin.stat.exists == False