Remove check for config files to verify MountFlags
Check MountFlags option with systemd rather than with configuration files which can be overriden with different ones. Co-Authored-By: Jeffrey Zhang <jeffrey.zhang@99cloud.net> Change-Id: Ifa4ce62372af3fe75a66b45c8e7cf9ac9f9c2415 Closes-Bug: #1571281
This commit is contained in:
parent
35e9ef860f
commit
47894bb05f
@ -12,11 +12,13 @@
|
||||
failed_when: result | failed
|
||||
or (result.stdout | from_yaml).Server.Version | regex_replace('(\\d+\\.\\d+\\.\\d+).*', '\\1') | version_compare(docker_version_min, '<')
|
||||
|
||||
- name: Checking if 'MountFlags' in /lib/systemd/system/docker.service is set to 'shared'
|
||||
command: cat /lib/systemd/system/docker.service
|
||||
# When MountFlags is set to shared, a signal bit configured on 20th bit of a number
|
||||
# We need to check the 20th bit. 2^20 = 1048576. So we are validating against it.
|
||||
- name: Checking if 'MountFlags' for docker service is set to 'shared'
|
||||
command: systemctl show docker
|
||||
register: result
|
||||
changed_when: false
|
||||
failed_when: result.stdout.find('MountFlags=shared') == -1
|
||||
failed_when: result.stdout.find('MountFlags=1048576') == -1
|
||||
when:
|
||||
- (inventory_hostname in groups['neutron-dhcp-agent']
|
||||
or inventory_hostname in groups['neutron-l3-agent']
|
||||
|
Loading…
Reference in New Issue
Block a user