---
- name: Addding Artifactory OSS apt repository key
  apt_key: url='https://bintray.com/user/downloadSubjectPublicKey?username=jfrog' state=present

- name: Adding Artifactory OSS apt repository sources
  apt_repository: repo='deb https://jfrog.bintray.com/artifactory-debs stretch main' state=present

- name: Installing Artifactory OSS
  apt: name={{ item }} update_cache=yes state=present
  with_items:
    - jfrog-artifactory-oss
