diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-02 16:22:57 -0600 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-02 16:22:57 -0600 |
| commit | 2b6dbe02185f7b79bae400600df046bb5b8bff2a (patch) | |
| tree | fd003ae1b0984b61b1c0285990ed385d824eee6a /salt/openbook/ansible | |
| parent | 99cf95be512ed5de15045d524f7a5b58fc5a327b (diff) | |
adding gradle build capability
Diffstat (limited to 'salt/openbook/ansible')
| -rw-r--r-- | salt/openbook/ansible/files/gradle.yaml | 37 | ||||
| -rw-r--r-- | salt/openbook/ansible/files/install_openbook_docker_slave.yaml | 1 |
2 files changed, 38 insertions, 0 deletions
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 |
