From 2b6dbe02185f7b79bae400600df046bb5b8bff2a Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Mon, 2 Oct 2017 16:22:57 -0600 Subject: adding gradle build capability --- salt/openbook/ansible/files/gradle.yaml | 37 ++++++++++++++++++++++ .../files/install_openbook_docker_slave.yaml | 1 + 2 files changed, 38 insertions(+) create mode 100644 salt/openbook/ansible/files/gradle.yaml (limited to 'salt/openbook') diff --git a/salt/openbook/ansible/files/gradle.yaml b/salt/openbook/ansible/files/gradle.yaml new file mode 100644 index 0000000..4946da0 --- /dev/null +++ b/salt/openbook/ansible/files/gradle.yaml @@ -0,0 +1,37 @@ +--- +- name: "Install gradle" + hosts: target + tasks: + - name: "Update apt" + apt: + update_cache: yes + when: ansible_distribution == "Ubuntu" + + - name: "Install gradle package" + apt: + pkg: "{{ item }}" + state: present + with_items: + - gradle + when: ansible_distribution == "Ubuntu" + + - name: "Update yum cache" + yum: + update_cache: yes + when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" + + - name: "Install gradle package" + yum: + name: "{{ item }}" + state: present + with_items: + - gradle + when: ansible_distribution == "RedHat" or ansible_distribution == "CentOS" + + - name: "Install icedtea package" + portage: + name: "{{ item }}" + state: present + with_items: + - dev-java/gradle-bin + when: ansible_distribution == "Gentoo" diff --git a/salt/openbook/ansible/files/install_openbook_docker_slave.yaml b/salt/openbook/ansible/files/install_openbook_docker_slave.yaml index 2f553c5..ebcec43 100644 --- a/salt/openbook/ansible/files/install_openbook_docker_slave.yaml +++ b/salt/openbook/ansible/files/install_openbook_docker_slave.yaml @@ -3,6 +3,7 @@ - include: docker.yaml - include: mysql_client.yaml - include: openjdk.yaml +- include: gradle.yaml - include: jenkins_user.yaml - include: ssh_keys.yaml - include: ansible.yaml -- cgit v1.3