Last active
November 5, 2020 02:59
-
-
Save mattpwest/ef0e419b14c25fd91af306ff1b9728ff to your computer and use it in GitHub Desktop.
Sonarqube Ansible Play: Part 1 - Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: sonar | |
become: true | |
roles: | |
- jdauphant.ssl-certs | |
- role: jdauphant.nginx | |
nginx_configs: | |
ssl: | |
- ssl_certificate_key {{ssl_certs_privkey_path}} | |
- ssl_certificate {{ssl_certs_cert_path}} | |
nginx_sites: | |
default: | |
template: sonar.conf.j2 | |
server_name: sonar.entelect.co.za | |
tasks: | |
- name: Add the webupd8team Java PPA | |
apt_repository: | |
repo: ppa:webupd8team/java | |
- name: Automatically select the Oracle License | |
shell: echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
- name: Install Java 8 & PostgreSQL | |
package: name={{item}} state=present | |
with_items: | |
- oracle-java8-installer | |
- postgresql | |
- postgresql-contrib | |
- unzip | |
- python3-psycopg2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment