mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-31 06:26:19 -02:30
feat: add openSUSE MicroOS support (#13449)
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
This commit is contained in:
@@ -36,6 +36,16 @@
|
||||
tags:
|
||||
- system-packages
|
||||
|
||||
- name: Reboot openSUSE MicroOS after transactional package changes
|
||||
ansible.builtin.reboot: {}
|
||||
throttle: 1
|
||||
when:
|
||||
- ansible_facts['distribution'] == "openSUSE MicroOS"
|
||||
- pkgs_task_result is defined
|
||||
- pkgs_task_result is changed
|
||||
tags:
|
||||
- system-packages
|
||||
|
||||
- name: Create remote_tmp for it is used by another module
|
||||
file:
|
||||
path: "{{ ansible_remote_tmp | default('~/.ansible/tmp') }}"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: Import openSUSE bootstrap
|
||||
import_tasks: opensuse.yml
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
# OpenSUSE ships with Python installed
|
||||
- name: Gather host facts to get ansible_distribution_version ansible_distribution_major_version
|
||||
- name: Gather host distribution facts
|
||||
setup:
|
||||
gather_subset: '!all'
|
||||
filter: ansible_distribution_*version
|
||||
filter: ansible_distribution*
|
||||
|
||||
- name: Check that /etc/sysconfig/proxy file exists
|
||||
stat:
|
||||
|
||||
Reference in New Issue
Block a user