Skip to content

Instantly share code, notes, and snippets.

@mkokho
Created October 12, 2018 03:14
Show Gist options
  • Save mkokho/404697db091182372bf62e27245c91a2 to your computer and use it in GitHub Desktop.
Save mkokho/404697db091182372bf62e27245c91a2 to your computer and use it in GitHub Desktop.
$ ansible-playbook upgrade-cluster.yml -b -K -i inventory/non-prod.cfg --check
SUDO password:
[WARNING]: Could not match supplied host pattern, ignoring: bastion
PLAY [bastion[0]] *******************************************************************************************************************************************************
skipping: no hosts matched
PLAY [k8s-cluster:etcd:calico-rr] ***************************************************************************************************************************************
TASK [download : include_tasks] *****************************************************************************************************************************************
Friday 12 October 2018 16:13:47 +1300 (0:00:00.044) 0:00:00.044 ********
TASK [download : Download items] ****************************************************************************************************************************************
Friday 12 October 2018 16:13:47 +1300 (0:00:00.150) 0:00:00.194 ********
TASK [download : Sync container] ****************************************************************************************************************************************
Friday 12 October 2018 16:13:47 +1300 (0:00:00.209) 0:00:00.404 ********
TASK [kubespray-defaults : Configure defaults] **************************************************************************************************************************
Friday 12 October 2018 16:13:47 +1300 (0:00:00.203) 0:00:00.607 ********
ok: [akl0ap9u7] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap9u8] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap9u6] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g3] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g4] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g5] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g0] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g1] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
ok: [akl0ap8g2] => {
"msg": "Check roles/kubespray-defaults/defaults/main.yml"
}
TASK [bootstrap-os : Fetch /etc/os-release] *****************************************************************************************************************************
Friday 12 October 2018 16:13:47 +1300 (0:00:00.229) 0:00:00.836 ********
TASK [bootstrap-os : Set bootstrap_os] **********************************************************************************************************************************
Friday 12 October 2018 16:13:48 +1300 (0:00:00.214) 0:00:01.051 ********
fatal: [akl0ap9u7]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap9u8]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap9u6]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g4]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g5]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
fatal: [akl0ap8g2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: Unable to look up a name or access an attribute in template string ({%- if 'Ubuntu' in os_release.stdout -%} ubuntu {%- elif 'Debian' in os_release.stdout -%} debian {%- elif 'CoreOS' in os_release.stdout -%} coreos {%- elif 'Fedora' in os_release.stdout -%} fedora {%- elif 'CentOS' in os_release.stdout -%} centos {%- elif 'OpenSUSE' in os_release.stdout -%} opensuse {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/Users/kokhom/projects/kube/kubespray-prod/roles/bootstrap-os/tasks/main.yml': line 7, 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: Set bootstrap_os\n ^ here\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment