diff options
Diffstat (limited to 'salt/openbook')
| -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 |
