mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
invoke systemd test for ubuntu >= 15.04 else invoke upstart test
This commit is contained in:
parent
f864fa8727
commit
6c265cde49
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@
|
|||
- include: 'sysv_setup.yml'
|
||||
when: ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and (ansible_distribution_version|version_compare('6', '>=') and ansible_distribution_version|version_compare('7', '<'))
|
||||
- include: 'systemd_setup.yml'
|
||||
when: (ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and (ansible_distribution_version|version_compare('7', '>=') and ansible_distribution_version|version_compare('8', '<'))) or ansible_distribution == 'Fedora'
|
||||
when: (ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and (ansible_distribution_version|version_compare('7', '>=') and ansible_distribution_version|version_compare('8', '<'))) or ansible_distribution == 'Fedora' or (ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('15.04', '>='))
|
||||
- include: 'upstart_setup.yml'
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare('15.04', '<')
|
||||
|
||||
- name: enable the ansible test service
|
||||
service: name=ansible_test enabled=yes
|
||||
|
|
Loading…
Reference in a new issue