roles: rkt: Add support for SUSE distributions
The RPM file that's provided by upstream can be used for SUSE distributions as well. Moreover we simplify the playbook to use the 'package' module to install packages across different distros. Link: https://github.com/rkt/rkt/pull/3904pull/2380/head
parent
d07f75b389
commit
02bf742e15
|
@ -15,22 +15,11 @@
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
- name: install rkt pkg on ubuntu
|
- name: install rkt pkg
|
||||||
apt:
|
package:
|
||||||
deb: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
|
name: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
|
||||||
state: present
|
state: present
|
||||||
register: rkt_task_result
|
register: rkt_task_result
|
||||||
until: rkt_task_result|succeeded
|
until: rkt_task_result|succeeded
|
||||||
retries: 4
|
retries: 4
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
delay: "{{ retry_stagger | random + 3 }}"
|
||||||
when: ansible_os_family == "Debian"
|
|
||||||
|
|
||||||
- name: install rkt pkg on centos
|
|
||||||
yum:
|
|
||||||
pkg: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
|
|
||||||
state: present
|
|
||||||
register: rkt_task_result
|
|
||||||
until: rkt_task_result|succeeded
|
|
||||||
retries: 4
|
|
||||||
delay: "{{ retry_stagger | random + 3 }}"
|
|
||||||
when: ansible_os_family == "RedHat"
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
rkt_pkg_name: "rkt-{{ rkt_pkg_version }}.x86_64.rpm"
|
Loading…
Reference in New Issue