Skip to content

TROUBLESHOOTING check initial running status of supervisor Failed

Why do that

When trying to deploy using de -t (-tags) attribute.

Error

TASK [supervisor : check initial running status of supervisor (might not be installed yet)] *******************************************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check 'service_manager == \"not_using_systemd\"' failed. The error was: error while evaluating conditional (service_manager == \"not_using_systemd\"): 'service_manager' is undefined\n\nThe error appears to have been in '/data/punchplatform-datamanagement-1node-5.1.0/roles/supervisor/tasks/main.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# tasks to setup supervisor (without any config)\n- name: check initial running status of supervisor (might not be installed yet)\n  ^ here\n"}

PLAY RECAP ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1

What to do

On the top of the deploy-punchplatform-production-cluster.yml document, which is at the punchplatform-deployer-5.X.Y root directory. You have to change

- hosts: punchplatform_cluster
  tags: always
  tasks:
    - set_fact:
        service_manager: '{{ "using_systemd" if ansible_distribution != "Ubuntu" else "not_using_systemd"}}'
by adding the "tags: always".

If the error remain, contact support at support@punchplatform.com