Clean up testing of systemd
We only support systemd now, no need to check which operating system we are. Change-Id: I946b482ca686841b3536eca7cdb663f8bc99304c Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
fedc3c6666
commit
c14b17cc9d
|
@ -172,8 +172,6 @@
|
|||
stat:
|
||||
path: /etc/systemd/system/zuul-executor.service
|
||||
register: _zuul_executor_service_systemd_stat
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Assert _zuul_executor_service_systemd_stat tests.
|
||||
assert:
|
||||
|
@ -183,15 +181,11 @@
|
|||
- _zuul_executor_service_systemd_stat.stat.pw_name == 'root'
|
||||
- _zuul_executor_service_systemd_stat.stat.gr_name == 'root'
|
||||
- _zuul_executor_service_systemd_stat.stat.mode == '0644'
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Register /etc/systemd/system/zuul-merger.service
|
||||
stat:
|
||||
path: /etc/systemd/system/zuul-merger.service
|
||||
register: _zuul_merger_service_systemd_stat
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Assert _zuul_merger_service_systemd_stat tests.
|
||||
assert:
|
||||
|
@ -201,15 +195,11 @@
|
|||
- _zuul_merger_service_systemd_stat.stat.pw_name == 'root'
|
||||
- _zuul_merger_service_systemd_stat.stat.gr_name == 'root'
|
||||
- _zuul_merger_service_systemd_stat.stat.mode == '0644'
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Register /etc/systemd/system/zuul-scheduler.service
|
||||
stat:
|
||||
path: /etc/systemd/system/zuul-scheduler.service
|
||||
register: _zuul_scheduler_service_systemd_stat
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Assert _zuul_scheduler_service_systemd_stat tests.
|
||||
assert:
|
||||
|
@ -219,8 +209,6 @@
|
|||
- _zuul_scheduler_service_systemd_stat.stat.pw_name == 'root'
|
||||
- _zuul_scheduler_service_systemd_stat.stat.gr_name == 'root'
|
||||
- _zuul_scheduler_service_systemd_stat.stat.mode == '0644'
|
||||
when: (ansible_os_family == 'RedHat') or
|
||||
(ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial')
|
||||
|
||||
- name: Ensure zuul-executor is running.
|
||||
become: yes
|
||||
|
|
Loading…
Reference in New Issue