mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Improve usage on SUSE releases (#155)
* Do not install init script on SUSE systems (#152) The last SUSE releases that didn't support systemd were SLE 11 and openSUSE 11.x. The telegraf packages on the Open Build Service all contain systemd service files. openSUSE 11.x is long since dead and buried and SLE 11 has been out of general support since mid-2019. There are no other users of the script and it can be removed. The dependencies required in the molecule configuration can also be removed. * Fix Python package dependencies on SUSE releases (#153) The naming of the packages for the Python libxml and xml modules on SUSE releases is a bit of a mess across releases. SLE12 ships with Python 3.4 which is not new enough for Ansible to use so Python 2 must be used. Those packages are named python-xml and python-libxml2. SLE15 ships with Python 3.6 but the package containing the libxml2 module is named python3-libxml2-python. The xml module is part of python3-base and will be present if the interpreter is present. On later releases, the package containing the libxml2 module has been renamed python3-libxml2 but it still offers an alias for the old name. * Add default repository handling for SUSE releases (#154) The repositories for SUSE releases are in well-known locations and requiring the user to specify them is unnecessary. If the user wishes to override the default repo using the telegraf_zypper_baseurl that will still be honored.
This commit is contained in:
@ -28,8 +28,6 @@
|
||||
- name: "Installing packages on Suse"
|
||||
zypper:
|
||||
name:
|
||||
- sysvinit-tools
|
||||
- insserv-compat
|
||||
- aaa_base
|
||||
state: present
|
||||
when:
|
||||
|
Reference in New Issue
Block a user