Created
July 29, 2024 16:16
-
-
Save rpelisse/fe0ca5c6f2c8c14a5d70c7e97359da45 to your computer and use it in GitHub Desktop.
Ansible run for updating EAP7 to the latest version
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
PLAY [Update EAP to latest {{ eap_patch_version }}] **************************** | |
TASK [Gathering Facts] ********************************************************* | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Validating arguments against arg spec 'main'] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure prerequirements are fullfilled.] ********* | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_install/tasks/prereqs.yml for localhost | |
TASK [redhat.eap.eap_install : Validate credentials] *************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Validate existing zipfiles jboss-eap-7.4.0.zip for offline installs] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Validate patch version for offline installs] **** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Validate existing additional zipfiles jboss-eap-7.4.0.zip for offline installs] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Validate node identifier length] **************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check that required packages list has been provided.] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Add JDK package java-11-openjdk-headless to packages list] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Add selinux package java-11-openjdk-headless to packages list] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Install required packages (8)] ****************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure required local user exists.] ************* | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_install/tasks/user.yml for localhost | |
TASK [redhat.eap.eap_install : Check arguments] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Set eap group] ********************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure group eap exists.] *********************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure user eap exists.] ************************ | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure required directories exists.] ************ | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_install/tasks/prepdirs.yml for localhost | |
TASK [redhat.eap.eap_install : Check if work directory /opt/jboss_eap/ exists] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check if work directory /opt/jboss_eap/ is readable] *** | |
ok: [localhost] => { | |
"changed": false, | |
"msg": "Archive directory /opt/jboss_eap/ is readable" | |
} | |
TASK [redhat.eap.eap_install : Create archive_dir /opt/jboss_eap/, if not exists.] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Check if archive directory /opt/jboss_eap/ exists] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check if archive directory /opt/jboss_eap/ is readable] *** | |
ok: [localhost] => { | |
"changed": false, | |
"msg": "Archive directory /opt/jboss_eap/ is readable" | |
} | |
TASK [redhat.eap.eap_install : Create archive_dir /opt/jboss_eap/, if not exists.] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Ensure server is installed] ********************* | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_install/tasks/install.yml for localhost | |
TASK [redhat.eap.eap_install : Check arguments] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check local download archive path] ************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Set download paths] ***************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check target archive: /opt/jboss_eap//jboss-eap-7.4.0.zip] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Retrieve archive from website: https://github.com/eap/eap/releases/download] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Retrieve archive from RHN] ********************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Install server using RPM] *********************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Check downloaded archive] *********************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Copy archive to target nodes] ******************* | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Check target archive: /opt/jboss_eap//jboss-eap-7.4.0.zip] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Verify target archive state: /opt/jboss_eap//jboss-eap-7.4.0.zip] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Read target directory information: /opt/jboss_eap/jboss-eap-7.4/] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Extract files from /opt/jboss_eap//jboss-eap-7.4.0.zip into /opt/jboss_eap/.] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Note: decompression was not executed] *********** | |
ok: [localhost] => { | |
"msg": "/opt/jboss_eap/jboss-eap-7.4/ already exists and version unchanged, skipping decompression" | |
} | |
TASK [redhat.eap.eap_install : Read information on server home directory: /opt/jboss_eap/jboss-eap-7.4/] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Check state of server home directory: /opt/jboss_eap/jboss-eap-7.4/] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Deploy custom configuration] ******************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Deploy configuration] *************************** | |
ok: [localhost] | |
TASK [Apply latest cumulative patch] ******************************************* | |
TASK [redhat.eap.eap_utils : Check installation] ******************************* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Set patch directory] ****************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Set download patch archive path] ****************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_utils : Check download patch archive path] **************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_utils : Check local download archive path] **************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Check local downloaded archive: {{ patch_bundle }}] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_utils : Retrieve product download using JBossNetwork API] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine patch versions list] ******************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine latest version] ************************* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine install zipfile from search results] **** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine selected patch from supplied version: {{ eap_patch_version }}] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_utils : Check remote downloaded archive: /opt/jboss-eap-7.4.17-patch.zip] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Download Red Hat EAP patch] *********************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Update patch archive path after download] ********* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Check remote download patch archive path] ********* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Copy patch archive to target nodes] *************** | |
changed: [localhost] | |
TASK [redhat.eap.eap_utils : Check patch state] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Set checksum file path for patch] ***************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Check /opt/jboss_eap/jboss-eap-7.4//.applied_patch_checksum_5b5941241998bfd38d5c2109dc9b3d14914e18a8.txt state] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Print when patch has been applied already] ******** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_utils : Check if management interface is reachable] ******* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Set apply CP conflict default strategy to default (if not defined): --override-all] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Apply patch /opt/jboss-eap-7.4.17-patch.zip to server installed in /opt/jboss_eap/jboss-eap-7.4/] *** | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_utils/tasks/jboss_cli.yml for localhost | |
TASK [redhat.eap.eap_utils : Ensure required params for JBoss CLI have been provided] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine CLI port (if port offset is used: 0)] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Ensure server's management interface is reachable] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Execute CLI query 'patch apply --override-all /opt/jboss-eap-7.4.17-patch.zip'] *** | |
changed: [localhost] | |
TASK [redhat.eap.eap_utils : Reset CLI port to default] ************************ | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Display patching result] ************************** | |
ok: [localhost] => { | |
"msg": "Apply patch operation result: {\n \"outcome\" : \"success\",\n \"response-headers\" : {\n \"operation-requires-restart\" : true,\n \"process-state\" : \"restart-required\"\n }\n}" | |
} | |
TASK [redhat.eap.eap_utils : Set checksum file] ******************************** | |
changed: [localhost] | |
TASK [redhat.eap.eap_utils : Set latest patch file] **************************** | |
changed: [localhost] | |
TASK [redhat.eap.eap_utils : Restart server to ensure patch content is running] *** | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_utils/tasks/jboss_cli.yml for localhost | |
TASK [redhat.eap.eap_utils : Ensure required params for JBoss CLI have been provided] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Determine CLI port (if port offset is used: 0)] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Ensure server's management interface is reachable] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Execute CLI query 'shutdown --restart'] *********** | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Reset CLI port to default] ************************ | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Wait for management interface is reachable] ******* | |
ok: [localhost] | |
TASK [redhat.eap.eap_utils : Stop service if it was started for patching] ****** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Ensure required parameters for elytron adapter are provided.] *** | |
skipping: [localhost] | |
TASK [Install elytron adapter] ************************************************* | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Install server using Prospero] ****************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_install : Check eap install directory state] ************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Validate conditions] **************************** | |
ok: [localhost] | |
TASK [Ensure firewalld configuration allows server port (if enabled).] ********* | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Validating arguments against arg spec 'main'] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Check arguments] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Validate node identifier length] **************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Ensure that version is correct for yaml config extension] *** | |
skipping: [localhost] | |
TASK [Ensure required local user and group exists.] **************************** | |
TASK [redhat.eap.eap_install : Check arguments] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Set eap group] ********************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure group eap exists.] *********************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_install : Ensure user eap exists.] ************************ | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Check if PID directory exists] ****************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Create PID directory path if not exists] ******** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Ensure server configuration and systemd configuration are set] *** | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_systemd/tasks/systemd.yml for localhost | |
TASK [redhat.eap.eap_systemd : Create basedir /opt/jboss_eap/jboss-eap-7.4//standalone for instance: eap] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Create deployment directories for instance: eap] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Ensure configuration directory exists] ********** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Find properties for colocated instance] ********* | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Deploy properties for colocated instance] ******* | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Deploy configuration] *************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Deploy custom configuration] ******************** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Include YAML configuration extension] *********** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Check YAML configuration is disabled] *********** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Determine JAVA_HOME for selected JVM] *********** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Determine JAVA_HOME for selected JVM] *********** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Deploy service instance configuration: /etc/sysconfig/eap.conf] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Deploy Systemd unit for service: /etc/systemd/system/eap.service] *** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Perform daemon-reload to ensure the changes are picked up] *** | |
skipping: [localhost] | |
TASK [redhat.eap.eap_systemd : Ensure service is started] ********************** | |
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_systemd/tasks/service.yml for localhost | |
TASK [redhat.eap.eap_systemd : Check arguments] ******************************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Set instance eap state to started] ************** | |
ok: [localhost] | |
TASK [redhat.eap.eap_systemd : Ensure server's apps are deployed] ************** | |
skipping: [localhost] | |
RUNNING HANDLER [redhat.eap.eap_install : Execute restorecon] ****************** | |
ok: [localhost] | |
PLAY RECAP ********************************************************************* | |
localhost : ok=87 changed=4 unreachable=0 failed=0 skipped=31 rescued=0 ignored=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment