Revert "Add openSUSE support" (#2697)

This commit is contained in:
Matthew Mosesohn
2018-04-23 14:28:24 +03:00
committed by GitHub
parent d1b4ea5807
commit 51f4e6585a
18 changed files with 33 additions and 144 deletions

View File

@@ -1,7 +0,0 @@
---
- name: Install required packages (SUSE)
package:
name: "{{ item }}"
state: present
with_items:
- python-cryptography

View File

@@ -11,9 +11,6 @@
- import_tasks: bootstrap-centos.yml
when: bootstrap_os == "centos"
- import_tasks: bootstrap-opensuse.yml
when: bootstrap_os == "opensuse"
- import_tasks: setup-pipelining.yml
- name: check if atomic host
@@ -29,25 +26,18 @@
gather_subset: '!all'
filter: ansible_*
- name: Assign inventory name to unconfigured hostnames (non-CoreOS and Tumbleweed)
- name: Assign inventory name to unconfigured hostnames (non-CoreOS)
hostname:
name: "{{inventory_hostname}}"
when:
- override_system_hostname
- ansible_distribution not in ['openSUSE Tumbleweed']
- ansible_os_family not in ['CoreOS', 'Container Linux by CoreOS']
when: ansible_os_family not in ['CoreOS', 'Container Linux by CoreOS'] and override_system_hostname
- name: Assign inventory name to unconfigured hostnames (CoreOS and Tumbleweed only)
- name: Assign inventory name to unconfigured hostnames (CoreOS only)
command: "hostnamectl set-hostname {{inventory_hostname}}"
register: hostname_changed
when:
- ansible_hostname == 'localhost'
- ansible_distribution in ['openSUSE Tumbleweed'] or ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
- override_system_hostname
when: ansible_hostname == 'localhost' and ansible_os_family in ['CoreOS', 'Container Linux by CoreOS'] and override_system_hostname
- name: Update hostname fact (CoreOS and Tumbleweed only)
- name: Update hostname fact (CoreOS only)
setup:
gather_subset: '!all'
filter: ansible_hostname
when:
- hostname_changed.changed
when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS'] and hostname_changed.changed