Thursday, August 29, 2019

server ip configuration change using ansible script





### Ansible playbook to backup existing configuration file and inserting the new ip-addresses.
---
- hosts: xxxxx2c.mylabserver.com
  become: yes
  tasks:
    - name: creating xxxx configuration file,adding server entries and backup if it differs
      copy:
        dest: /etc/xxxx/server
        content: |
           10.1.1.11  amazon        3
           10.11.11.11    amazon        3
        backup: yes

Sunday, July 21, 2019

Java Version update on Linux Server

After Installing JAVA 1.8 version you may not see the correct version due to multiple JAVA versions installed on the same server. To resolve it follow below steps.

1) sudo /usr/sbin/alternatives --config java



2) Enter the number which java version you are looking for.

Saturday, July 20, 2019

Sonarqube Upgrade from 9.4.4 to 9.9.4 LTS

 Issue:  1) Java hasbeen upgraded from 11 to Open JDK 17. And Sonarqube is upgraded from 9.4 to 9.9.4. 2) After the upgrade sonarqube servic...