Add influx tooling

main
Nils Gerstner 1 year ago
parent 64ad1c9e22
commit b21e5b7f70

@ -49,6 +49,7 @@
- include: tasks/kubernetes.yml
- include: tasks/task-setup.yml
- include: tasks/ibmmq-setup.yml
- include: tasks/influx-tools.yml
vars:
dest_key: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa"
personal: "{{ lookup('env', 'HOME') }}/personal"

@ -17,9 +17,7 @@
- ansible.builtin.apt_repository:
repo: "deb [trusted=yes] file:/opt/MQServer ./"
state: present
register: ibmmqm_source
name: Add local IBM MQ repository
register: ibmmqm_repo
tags:
- ibmmqm
when: ibmmqm_download.changed
@ -34,7 +32,6 @@
when: ibmmqm_download.changed
- apt:
name: [ "ibmmq-*" ]
register: ibmmqm_install
become: true
name: Install IBM MQ
tags:

@ -0,0 +1,22 @@
- file:
path: "/opt/influx-cli"
state: directory
mode: '0555'
name: Create influx cli folder
tags:
- influx
- name: Download Influx CLI
ansible.builtin.get_url:
url: https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.7.1-linux-amd64.tar.gz
dest: /opt/influx-cli/influxdb2-client-2.7.1-linux-amd64.tar.gz
tags:
- influx
register: influxcli_download
- ansible.builtin.unarchive:
remote_src: yes
src: /opt/influx-cli/influxdb2-client-2.7.1-linux-amd64.tar.gz
dest: /opt/influx-cli
name: Unachive Influx CLI
tags:
- influx
when: influxcli_download.changed

@ -2,6 +2,7 @@
name: [ "openjdk-17-jdk", "openjdk-17-jre", "maven" ]
become: true
name: Install OpenJDK 17 and maven
register: java_install
tags:
- install
- productivity
@ -16,6 +17,7 @@
- productivity
- java
- camel
when: java_install.changed
- name: Set java version
shell: "update-alternatives --set java {{java_version.stdout }}"
@ -24,7 +26,7 @@
- productivity
- java
- camel
when: java_version is defined
when: java_install.changed and java_version is defined
- become: true
become_user: "{{my_user}}"
@ -36,6 +38,7 @@
- productivity
- java
- camel
when: java_install.changed and java_home is defined
- ansible.builtin.lineinfile:
line: export JAVA_HOME={{ java_home.stdout }}
@ -49,5 +52,5 @@
- productivity
- java
- camel
when: java_home is defined
when: java_install.changed and java_home is defined
# JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"

@ -18,4 +18,3 @@
- git
- productivity
- dotfiles
- workspace

Loading…
Cancel
Save