Uploaded image for project: 'AMQ Documentation'
  1. AMQ Documentation
  2. AMQDOC-3264

[DDF] How future proof is this Ansible solution?

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Major
    • None
    • None
    • Broker DOC
    • None
    • Undefined

    Description

      How future proof is this Ansible solution?

      • name: "Get the version of wildfly-common for {{ amq_version }}"
        command:
        argv:
      • awk
      • "-F:"
      • '/^ - wildfly-common / {print $3"-"$5"."$4}'
        - "{{ amq_install_dir }}/web/META-INF/DEPENDENCIES"
        register: wildfly_common_verion
        changed_when: false
        become: yes
        become_user: "{{ amq_user }}"

        - name: "Get the version of jboss-logmanager for {{ amq_version }}"
        command:
        argv:
        - awk
        - "-F:"
        - '/^ - JBoss Log Manager / {print $3"-"$5"."$4}

        '

      • "{{ amq_install_dir }}/web/META-INF/DEPENDENCIES"
        register: jboss_logmanager_version
        changed_when: false
        become: yes
        become_user: "{{ amq_user }}"
      • name: Check Existence of artemis.profile file
        stat:
        path: "{{ amq_broker_dir }}/etc/artemis.profile"
        register: jboss_amq_profile_exists
        become: yes
        become_user: "{{ amq_user }}"
      • name: "Replace references in artemis.profile for the new AMQ Broker version {{ amq_version }}"
        replace:
        path: "{{ amq_broker_dir }}/etc/artemis.profile"
        regexp: "{{ item.old }}"
        replace: "{{ item.new }}"
        with_items:
      • { old: '(?P^.amq-broker-)\d\.\d\.\d(.)$', new: '\g{{ amq_version }}\2' }
      • { old: 'jboss-logmanager-.*\.jar', new: '{{ jboss_logmanager_version.stdout }}' }
      • { old: 'wildfly-common-.*\.jar', new: '{{ wildfly_common_verion.stdout }}' }
        when: jboss_amq_profile_exists.stat.exists
        become: yes
        become_user: "{{ amq_user }}"

      Reported by: paulwrr

      https://access.redhat.com/documentation/en-us/red_hat_amq/2020.q4/html/managing_amq_broker/patching#annotations:de3b8c96-4a37-4afd-8a57-5702675998a6

      Attachments

        Activity

          People

            jcliffor@redhat.com John Clifford
            ddf-bot DDF Bot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: