File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
12
12
- Add support to ensure Docker is not upgraded ([ #17 ] ( ../../issues/17 ) )
13
13
14
+ ### Fixed
15
+
16
+ - /proc/sys/fs/may_detach_mounts does not exists in all kernel 3.10 versions ([ #18 ] ( ../../issues/18 ) )
17
+
14
18
## [ 1.0.1] ( ../../releases/tag/1.0.1 ) - 2017-10-22
15
19
16
20
### Fixed
Original file line number Diff line number Diff line change 37
37
become : true
38
38
when : yum_repo.changed
39
39
40
+ - name : Stat /proc/sys/fs/may_detach_mounts
41
+ stat :
42
+ path : /proc/sys/fs/may_detach_mounts
43
+ register : may_detach_mounts
44
+
40
45
- name : Ensure fs.may_detach_mounts is set to avoid 'Device or resource busy'
41
46
sysctl :
42
47
name : fs.may_detach_mounts
43
48
value : 1
44
49
sysctl_file : /etc/sysctl.d/99-docker.conf
45
50
reload : yes
46
51
become : true
47
- when : ansible_kernel | version_compare('4', '<')
52
+ when : ansible_kernel| version_compare('4', '<') and may_detach_mounts.stat.exists
48
53
49
54
- include : main-Mountflags.yml
50
- when : ansible_kernel | version_compare('4', '<')
55
+ when : ansible_kernel| version_compare('4', '<')
51
56
52
57
- include : main-Generic.yml
You can’t perform that action at this time.
0 commit comments