From 491fed14a815bcebc9453861324c03406dd7381a Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Mon, 18 Sep 2017 11:25:39 +0000 Subject: [PATCH] improve installation commands --- tasks/main.yml | 10 +++++++++- vars/main.yml | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 vars/main.yml diff --git a/tasks/main.yml b/tasks/main.yml index 36771ce..e1b55fb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,11 @@ +--- + +- name: download atom deb package + get_url: + url: https://github.com/atom/atom/releases/download/{{atom_release}}/atom-amd64.deb + dest: /opt/atom-amd64.deb + checksum: "{{atom_deb_checksum}}" + - name: install atom apt: - deb: https://github.com/atom/atom/releases/download/v1.19.7/atom-amd64.deb + deb: /opt/atom-amd64.deb diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..375d30c --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,2 @@ +atom_release: v1.20.0 +atom_deb_checksum: sha256:4029f2d323cab956f9c007e1bf50ac1d991abe245c34c47a930d1d6f0951f7cb