Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-2113

Create ansible role for installing JDKs from nfs share

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • testing
    • None
    • AMQ Broker 1845

      Create ansible role like this: (add copy & paste od JDKs)

      ---
      mount_location: "/qa/tools"
      java_bin: "/bin/java"
      javac_bin: "/bin/javac"
      
      - name: Mount MW QE tools nfs shared disk device
        mount:     path: "{{ mount_location }}"
          src: "nfs-int.rhev-ci.eng.rdu2.redhat.com:/rhev-ci-all-tools"
          fstype: nfs
          opts: _netdev,ro,nolock
          state: present
      
      
      - name: Install java alternative for specified jdks (all)
        alternatives:     name: "java"
          link: "/usr/bin/java"
          path: "{{ item }}{{ java_bin }}"
        with_items:     - {{ mount_location }}/{{ ansible_architecture }}/jdk1.8.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk11_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk10_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.9.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.8.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.7.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk11_last
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.10.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.9.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.8.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.7.0
          - {{ mount_location }}/{{ ansible_architecture }}/ibm-java-80
          - {{ mount_location }}/{{ ansible_architecture }}/ibm-java-70
      
      
      - name: Install javac alternative for specified jdks (all)
        alternatives:     name: "java"
          link: "/usr/bin/javac"
          path: "{{ item }}{{ javac_bin }}"
        with_items:     - {{ mount_location }}/{{ ansible_architecture }}/jdk1.8.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk11_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk10_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.9.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.8.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/jdk1.7.0_last
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk11_last
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.10.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.9.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.8.0
          - {{ mount_location }}/{{ ansible_architecture }}/openjdk-1.7.0
          - {{ mount_location }}/{{ ansible_architecture }}/ibm-java-80
          - {{ mount_location }}/{{ ansible_architecture }}/ibm-java-70
      
      

              mtoth@redhat.com Michal Toth
              mtoth@redhat.com Michal Toth
              Jiri Daněk Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 hours Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h