We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb3558b commit 1180759Copy full SHA for 1180759
tests/test.yml
@@ -2,16 +2,14 @@
2
- hosts: all
3
4
pre_tasks:
5
- # Override initctl on Ubuntu 14.04.
6
- - block:
7
- - name: Remove existing initctl.
8
- file: path=/sbin/initctl state=absent
9
- - name: Copy initctl_faker into place for Ubuntu 14.04.
10
- copy:
11
- src: initctl_faker
12
- dest: /sbin/initctl
13
- mode: 0755
14
- when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
+ - name: Copy initctl_faker into place for Ubuntu 14.04.
+ copy:
+ src: initctl_faker
+ dest: /sbin/initctl
+ mode: 0755
+ force: yes
+ when: ansible_distribution == 'Ubuntu' and ansible_distribution_version|version_compare(16.04, '<')
+ changed_when: false
15
16
roles:
17
- role_under_test
0 commit comments