Skip to content

Commit

Permalink
Merge pull request #1 from michael-balint/deb-pkg-install
Browse files Browse the repository at this point in the history
Added fallback to using a direct deb package install.
  • Loading branch information
michael-balint authored Sep 5, 2019
2 parents 7eae4a3 + 1528895 commit 44de4f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ enroot_ubuntu_repo: none
enroot_packages:
- enroot
- 'enroot+caps'

enroot_package_state: present

enroot_deb_packages:
- 'https://github.com/NVIDIA/enroot/releases/download/v2.0.1/enroot_2.0.1-1_amd64.deb'
- 'https://github.com/NVIDIA/enroot/releases/download/v2.0.1/enroot+caps_2.0.1-1_amd64.deb'

# a block of lines to add to enroot.conf
enroot_config: ''

Expand Down
10 changes: 10 additions & 0 deletions tasks/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@
apt_key:
url: "{{ enroot_ubuntu_repo_key_url }}"
id: "{{ enroot_ubuntu_repo_key_id }}"
when: enroot_ubuntu_repo|bool

- name: repo
apt_repository:
repo: "{{ enroot_ubuntu_repo }}"
when: enroot_ubuntu_repo|bool

- name: enroot packages
apt:
name: "{{ enroot_packages }}"
state: "{{ enroot_package_state }}"
when: enroot_ubuntu_repo|bool

- name: enroot deb packages
apt:
deb: "{{ item }}"
state: "{{ enroot_package_state }}"
with_items: "{{ enroot_deb_packages }}"
when: not enroot_ubuntu_repo|bool

- name: enroot dependency packages
apt:
Expand Down

0 comments on commit 44de4f3

Please sign in to comment.