c12s-kubespray/roles/rkt/tasks/install.yml

26 lines
832 B
YAML
Raw Normal View History

2016-12-13 15:36:17 +00:00
---
- name: gather os specific variables for rkt
include_vars: "{{ item }}"
with_first_found:
- files:
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_release }}.yml"
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_major_version|lower|replace('/', '_') }}.yml"
- "{{ ansible_distribution|lower }}.yml"
- "{{ ansible_os_family|lower }}.yml"
- defaults.yml
2016-12-13 15:36:17 +00:00
paths:
- ../vars
2016-12-13 15:36:17 +00:00
skip: true
tags:
- facts
2016-12-13 15:36:17 +00:00
- name: install rkt pkg
package:
name: "{{ rkt_download_url }}/{{ rkt_pkg_name }}"
2016-12-13 15:36:17 +00:00
state: present
register: rkt_task_result
until: rkt_task_result|succeeded
2016-12-13 15:36:17 +00:00
retries: 4
delay: "{{ retry_stagger | random + 3 }}"