1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #12801 from chrismeyersfsu/fix-test_destructive_init

run correct init system tests
This commit is contained in:
James Cammarata 2015-10-27 15:58:19 -04:00
commit 1910f23144

View file

@ -11,11 +11,11 @@
- "install_result.mode == '0755'" - "install_result.mode == '0755'"
- include: 'sysv_setup.yml' - include: 'sysv_setup.yml'
when: ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux'] 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' - include: 'systemd_setup.yml'
when: 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' - 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 - name: enable the ansible test service
service: name=ansible_test enabled=yes service: name=ansible_test enabled=yes