diff --git a/ansible/install/collectd-generic.yml b/ansible/install/collectd-generic.yml index b0ede1154..fc62e2fa1 100644 --- a/ansible/install/collectd-generic.yml +++ b/ansible/install/collectd-generic.yml @@ -15,7 +15,7 @@ vars: config_type: baremetal roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - collectd-generic tags: baremetal environment: "{{proxy_env}}" @@ -25,7 +25,7 @@ vars: config_type: guest roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - collectd-generic tags: guest environment: "{{proxy_env}}" @@ -35,7 +35,7 @@ vars: config_type: graphite roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - collectd-generic tags: graphite environment: "{{proxy_env}}" diff --git a/ansible/install/collectd-openstack.yml b/ansible/install/collectd-openstack.yml index 388d0ec86..b8b2a9823 100644 --- a/ansible/install/collectd-openstack.yml +++ b/ansible/install/collectd-openstack.yml @@ -22,7 +22,7 @@ config_type: undercloud roles: - { role: common, when: collectd_undercloud } - - { role: epel, when: collectd_undercloud } + - { role: epel, when: collectd_undercloud and ansible_distribution_major_version == '7'} - { role: repo } - { role: collectd-openstack, when: collectd_undercloud } tasks: @@ -41,7 +41,7 @@ roles: - { role: osp_version } - { role: common, when: collectd_controller } - - { role: epel, when: collectd_controller } + - { role: epel, when: collectd_controller and ansible_distribution_major_version == '7'} - { role: repo } - { role: collectd-openstack, when: collectd_controller } tasks: @@ -59,7 +59,7 @@ config_type: networker roles: - { role: common, when: collectd_networker } - - { role: epel, when: collectd_networker } + - { role: epel, when: collectd_networker and ansible_distribution_major_version == '7'} - { role: repo } - { role: collectd-openstack, when: collectd_networker } tasks: @@ -77,7 +77,7 @@ config_type: blockstorage roles: - { role: common, when: collectd_blockstorage } - - { role: epel, when: collectd_blockstorage } + - { role: epel, when: collectd_blockstorage ansible_distribution_major_version == '7' } - { role: repo } - { role: collectd-openstack, when: collectd_blockstorage } tasks: @@ -95,7 +95,7 @@ config_type: objectstorage roles: - { role: common, when: collectd_objectstorage } - - { role: epel, when: collectd_objectstorage } + - { role: epel, when: collectd_objectstorage ansible_distribution_major_version == '7' } - { role: repo } - { role: collectd-openstack, when: collectd_objectstorage } tasks: @@ -113,7 +113,7 @@ config_type: cephstorage roles: - { role: common, when: collectd_cephstorage } - - { role: epel, when: collectd_cephstorage } + - { role: epel, when: collectd_cephstorage and ansible_distribution_major_version == '7'} - { role: repo } - { role: collectd-openstack, when: collectd_cephstorage } tasks: @@ -132,7 +132,7 @@ roles: - { role: osp_version } - { role: common, when: collectd_compute } - - { role: epel, when: collectd_compute } + - { role: epel, when: collectd_compute and ansible_distribution_major_version == '7'} - { role: repo } - { role: collectd-openstack, when: collectd_compute } tasks: diff --git a/ansible/install/grafana.yml b/ansible/install/grafana.yml index 9af215e3b..f0b1ea377 100644 --- a/ansible/install/grafana.yml +++ b/ansible/install/grafana.yml @@ -6,6 +6,6 @@ - hosts: grafana remote_user: root roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - grafana environment: "{{proxy_env}}" diff --git a/ansible/install/graphite.yml b/ansible/install/graphite.yml index ec38f1caa..2bae968c3 100644 --- a/ansible/install/graphite.yml +++ b/ansible/install/graphite.yml @@ -6,6 +6,6 @@ - hosts: graphite remote_user: root roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - graphite environment: "{{proxy_env}}" diff --git a/ansible/install/statsd.yml b/ansible/install/statsd.yml index 45934b272..77ee1b902 100644 --- a/ansible/install/statsd.yml +++ b/ansible/install/statsd.yml @@ -5,6 +5,6 @@ - hosts: statsd remote_user: root roles: - - epel + - {role: epel, when: ansible_distribution_major_version == '7'} - statsd-install environment: "{{proxy_env}}"