Browse Source

install atom packages from atom repository

master
parent
commit
013c9a6692
2 changed files with 11 additions and 8 deletions
  1. +0
    -2
      defaults/main.yml
  2. +11
    -6
      tasks/main.yml

+ 0
- 2
defaults/main.yml View File

@@ -1,2 +0,0 @@
atom_release: v1.30.0
atom_deb_checksum: sha256:fa63b33e4647a84e20e5faa96bf8c3aa92332098cf5d9a43a1890896acfb11c3

+ 11
- 6
tasks/main.yml View File

@@ -6,12 +6,17 @@
with_items: with_items:
- ca-certificates - 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 - name: install atom
apt: apt:
deb: /opt/atom-amd64.deb
pkg: atom
state: latest

Loading…
Cancel
Save