diff --git a/playbooks/groups/jenkins-cloud.yml b/playbooks/groups/jenkins-cloud.yml index 1f5e4e9646..c7b87df97e 100644 --- a/playbooks/groups/jenkins-cloud.yml +++ b/playbooks/groups/jenkins-cloud.yml @@ -45,7 +45,6 @@ - vim - dejavu-s\* - fontconfig - - java-1.8.0-openjdk - httpd - openssh-clients - git @@ -53,6 +52,14 @@ tags: - packages + - name: install java-1.8.0 except on rhel7 for jenkins + action: yum state=present pkg={{ item }} + with_items: + - java-1.8.0-openjdk + tags: + - packages + when: ansible_distribution_major_version != '7' + - name: add jenkins proxy config file for apache action: copy src="{{ files }}/jenkins/master/jenkins-apache.conf" dest=/etc/httpd/conf.d/jenkins-apache.conf