docker: check if ftype exists

When deploying with --stack-only, the playbooks aren't executed so if a
variable is processed lated, it needs to be checked if it's actually
defined or not otherwise Ansible will fail.

Change-Id: I16a2eed003b8f7fd4c775cdeead3f3b51f8aa467
This commit is contained in:
Emilien Macchi 2018-12-19 11:04:06 +00:00
parent 88c26d2cda
commit 61760f2fc1
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@
XFS volumes formatted using ftype=0 are incompatible
with the docker overlayfs driver.
when:
- not ansible_check_mode
- ftype.stdout == 'ftype=0'
- name: ensure docker is installed