TASK [docker-ce : Fail if base OS not supported] *******************************************************************************************************************************
fatal: [compute001]: FAILED! => {"msg": "The conditional check 'not is_rhel7_or_later' failed. The error was: error while evaluating conditional (not is_rhel7_or_later): 'is_rhel7_or_later' is undefined\n\nThe error appears to be in '/home/centos/elasticluster/src/elasticluster/share/playbooks/roles/docker-ce/tasks/init-RedHat.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: 'Fail if base OS not supported'\n ^ here\n"}
fatal: [compute002]: FAILED! => {"msg": "The conditional check 'not is_rhel7_or_later' failed. The error was: error while evaluating conditional (not is_rhel7_or_later): 'is_rhel7_or_later' is undefined\n\nThe error appears to be in '/home/centos/elasticluster/src/elasticluster/share/playbooks/roles/docker-ce/tasks/init-RedHat.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: 'Fail if base OS not supported'\n ^ here\n"}TASK [docker-ce : Install Docker Community Edition] **************************************************************************************************************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python-apt
fatal: [compute002]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
fatal: [compute001]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
TASK [docker-ce : Install Docker Community Edition] **************************************************************************************************************************************************
[WARNING]: Updating cache and auto-installing missing dependency: python-apt
fatal: [compute002]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
fatal: [compute001]: FAILED! => {"changed": false, "cmd": "apt-get update", "msg": "[Errno 2] No such file or directory", "rc": 2}
It tryes apt-get although I am on Centos7