From 013c9a669273c9d0781eb0cef4bc3c2581863aca Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 21 Sep 2018 09:39:04 +0000 Subject: [PATCH] install atom packages from atom repository --- defaults/main.yml | 2 -- tasks/main.yml | 17 +++++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index fdef014..e69de29 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +0,0 @@ -atom_release: v1.30.0 -atom_deb_checksum: sha256:fa63b33e4647a84e20e5faa96bf8c3aa92332098cf5d9a43a1890896acfb11c3 diff --git a/tasks/main.yml b/tasks/main.yml index b52cad1..80c9037 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,12 +6,17 @@ with_items: - ca-certificates -- 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: atom repository key + apt_key: + url: https://packagecloud.io/AtomEditor/atom/gpgkey + state: present + +- apt_repository: + repo: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main + state: present + filename: atom - name: install atom apt: - deb: /opt/atom-amd64.deb + pkg: atom + state: latest