Description of problem: Got below errors: TASK [olm : Apply aggregate-olm-edit ClusterRole manifest] ********************* Monday 13 August 2018 08:52:32 +0800 (0:00:01.076) 0:24:14.997 ********* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ^ fatal: [host-8-246-132.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1747, in <module>\n main()\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1740, in main\n rval = OCObject.run_ansible(module.params, module.check_mode)\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1679, in run_ansible\n update = ocobj.needs_update(params['files'], params['content'])\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1588, in needs_update\n data = Utils.get_resource_file(files[0], content_type)\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1298, in get_resource_file\n contents = yaml.safe_load(contents)\n File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 93, in safe_load\n return load(stream, SafeLoader)\n File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 71, in load\n return loader.get_single_data()\n File \"/usr/lib64/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n node = self.get_single_node()\n File \"/usr/lib64/python2.7/site-packages/yaml/composer.py\", line 43, in get_single_node\n event.start_mark)\nyaml.composer.ComposerError: expected a single document in the stream\n in \"<string>\", line 3, column 1:\n kind: ClusterRole\n ^\nbut found another document\n in \"<string>\", line 15, column 1:\n ---\n ^\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1} Version-Release number of selected component (if applicable): Openshift-ansible master branch How reproducible: always Steps to Reproduce: 1. Enable the olm in the inventroy file: openshift_enable_olm: true 2. Install it via openshift-ansible Actual results: Install failed: TASK [olm : Apply aggregate-olm-edit ClusterRole manifest] ********************* Monday 13 August 2018 08:52:32 +0800 (0:00:01.076) 0:24:14.997 ********* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ^ fatal: [host-8-246-132.host.centralci.eng.rdu2.redhat.com]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1747, in <module>\n main()\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1740, in main\n rval = OCObject.run_ansible(module.params, module.check_mode)\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1679, in run_ansible\n update = ocobj.needs_update(params['files'], params['content'])\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1588, in needs_update\n data = Utils.get_resource_file(files[0], content_type)\n File \"/tmp/ansible_o7kVSh/ansible_module_oc_obj.py\", line 1298, in get_resource_file\n contents = yaml.safe_load(contents)\n File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 93, in safe_load\n return load(stream, SafeLoader)\n File \"/usr/lib64/python2.7/site-packages/yaml/__init__.py\", line 71, in load\n return loader.get_single_data()\n File \"/usr/lib64/python2.7/site-packages/yaml/constructor.py\", line 37, in get_single_data\n node = self.get_single_node()\n File \"/usr/lib64/python2.7/site-packages/yaml/composer.py\", line 43, in get_single_node\n event.start_mark)\nyaml.composer.ComposerError: expected a single document in the stream\n in \"<string>\", line 3, column 1:\n kind: ClusterRole\n ^\nbut found another document\n in \"<string>\", line 15, column 1:\n ---\n ^\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1} Expected results: The OLM install success. Additional info:
This should be fixed in master, see: https://github.com/openshift/openshift-ansible/blob/master/roles/olm/files/20-aggregated-edit.clusterrole.yaml
Should be in openshift-ansible-3.11.0-0.15.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2652