Description of problem:
Prometheus configuration via ansible fails with an error.
Version-Release number of selected component (if applicable):
features: Basic-Auth GSSAPI Kerberos SPNEGO
rpm -qa | grep 'ansible'
Steps to Reproduce:
1. Prepare hosts file and try to configure prometheus using - 'ansible-playbook -vvv -i <inventory> /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/roles/openshift_prometheus/tasks/install_prometheus.yaml'
[root@dhcp47-177 ~]# ansible-playbook -vvv -i /root/.config/openshift/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/roles/openshift_prometheus/tasks/install_prometheus.yaml
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
Using /etc/ansible/ansible.cfg as config file
Parsed /root/.config/openshift/hosts inventory source with ini plugin
ERROR! 'include_tasks' is not a valid attribute for a Play
The error appears to have been in '/usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/roles/openshift_prometheus/tasks/install_prometheus.yaml': line 3, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# set facts
- include_tasks: facts.yaml
Installation should proceed or readme has to be updated on which playbook should be used to configure prometheus.
Created attachment 1398094 [details]
hosts inventory file
The prometheus playbook is now in ~/openshift-ansible/playbooks/openshift-prometheus/config.yml
The origin docs point to this location: https://docs.openshift.org/latest/install_config/install/advanced_install.html#running-the-advanced-installation-individual-components
I guess the appropriate doc just hasn't been updated yet, which readme are you looking at?
Setting severity to low since I believe this is just a doc issue.
(In reply to Paul Gier from comment #2)
> The prometheus playbook is now in
> The origin docs point to this location:
I was able to setup prometheus using the playbook available here --> ~/openshift-ansible/playbooks/openshift-prometheus/config.yml
> I guess the appropriate doc just hasn't been updated yet, which readme are
> you looking at?
I was looking at the readme here --> /root/.config/openshift/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/roles/openshift_prometheus/
Moving to QA to verify that the readme is updated for 3.9.
Documentation is updated, pPometheus Install uses the correct playbook in  now,
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.