Skip to content

Instantly share code, notes, and snippets.

@rpelisse
Created August 5, 2024 10:03
Show Gist options
  • Select an option

  • Save rpelisse/0aabefe608dffd9c9ace0291075d5aca to your computer and use it in GitHub Desktop.

Select an option

Save rpelisse/0aabefe608dffd9c9ace0291075d5aca to your computer and use it in GitHub Desktop.
PLAY [Update EAP7 to latest EAP8] **********************************************
TASK [Gathering Facts] *********************************************************
ok: [localhost]
TASK [Ensure previous version of EAP is not running] ***************************
changed: [localhost]
TASK [Perform EAP {{ eap_patch_version }} installation] ************************
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-8.0.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-8.0.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] ***
skipping: [localhost]
TASK [redhat.eap.eap_install : Install required packages (7)] ******************
skipping: [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_eap8/ exists] ***
ok: [localhost]
TASK [redhat.eap.eap_install : Check if work directory /opt/jboss_eap8/ is readable] ***
skipping: [localhost]
TASK [redhat.eap.eap_install : Create archive_dir /opt/jboss_eap8/, if not exists.] ***
changed: [localhost]
TASK [redhat.eap.eap_install : Check if archive directory /opt/jboss_eap8/ exists] ***
ok: [localhost]
TASK [redhat.eap.eap_install : Check if archive directory /opt/jboss_eap8/ is readable] ***
ok: [localhost] => {
"changed": false,
"msg": "Archive directory /opt/jboss_eap8/ is readable"
}
TASK [redhat.eap.eap_install : Create archive_dir /opt/jboss_eap8/, if not exists.] ***
skipping: [localhost]
TASK [redhat.eap.eap_install : Ensure server is installed] *********************
skipping: [localhost]
TASK [redhat.eap.eap_install : Install server using Prospero] ******************
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_install/tasks/install/prospero.yml for localhost
TASK [redhat.eap.eap_install : Ensure required parameter(s) are provided.] *****
ok: [localhost]
TASK [Install server using Prospero.] ******************************************
TASK [redhat.eap.eap_utils : Ensure required parameter(s) are provided.] *******
ok: [localhost]
TASK [redhat.eap.eap_utils : Ensure eap version is supported] ******************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Ensure workdir /opt/prospero exists.] *************
changed: [localhost]
TASK [redhat.eap.eap_utils : Ensure installer is installed.] *******************
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_utils/tasks/prospero/install.yml for localhost
TASK [redhat.eap.eap_utils : Check local download archive path] ****************
ok: [localhost]
TASK [redhat.eap.eap_utils : Set download paths] *******************************
ok: [localhost]
TASK [redhat.eap.eap_utils : Check target archive: /opt/prospero/jboss-eap-installation-manager-1.1.6.Final-redhat-00001.zip] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Download Prospero to /work/jboss-eap-installation-manager-1.1.6.Final-redhat-00001.zip] ***
skipping: [localhost]
TASK [Download JBoss Installation Manager from RHN to /work/jboss-eap-installation-manager-1.1.6.Final-redhat-00001.zip.] ***
TASK [redhat.eap.eap_install : Check arguments] ********************************
ok: [localhost]
TASK [Download JBoss EAP from CSP] *********************************************
TASK [redhat.eap.eap_utils : Check arguments] **********************************
ok: [localhost]
TASK [redhat.eap.eap_utils : Retrieve product download using JBoss Network API] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Determine install zipfile jboss-eap-8.0.0-installation-manager.zip from search results.] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Verify that filtered products has been properly populated.] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Download Red Hat JBoss Enterprise Application Platform] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Check downloaded archive] *************************
ok: [localhost]
TASK [redhat.eap.eap_utils : Copy archive to target nodes] *********************
changed: [localhost]
TASK [redhat.eap.eap_utils : Read target directory information: /opt/prospero] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Ensure Prospero is installed on target.] **********
changed: [localhost]
TASK [redhat.eap.eap_utils : Read target directory information: /opt/jboss_eap8//jboss-eap8] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Verify metadata on /opt/jboss_eap8//jboss-eap8 are available.] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Set default command arguments] ********************
ok: [localhost]
TASK [redhat.eap.eap_utils : Override repositories parameter] ******************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Override provisioning manifest] *******************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Display prospero command arguments] ***************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Run Prospero to install server in /opt/jboss_eap8//jboss-eap8.] ***
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_utils/tasks/prospero/run_cli.yml for localhost
TASK [redhat.eap.eap_utils : Ensure all required parameters are provided.] *****
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [redhat.eap.eap_utils : Run tool to install server in /opt/jboss_eap8//jboss-eap8.] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Verify that tool stdout is available] *************
ok: [localhost]
TASK [redhat.eap.eap_utils : Determine available updates for server in /opt/jboss_eap8//jboss-eap8] ***
skipping: [localhost]
TASK [redhat.eap.eap_utils : Check if any updates are available] ***************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Verify results from update query.] ****************
skipping: [localhost]
TASK [redhat.eap.eap_utils : Run prospero to update server in /opt/jboss_eap8//jboss-eap8.] ***
skipping: [localhost]
TASK [redhat.eap.eap_utils : Ensure that /opt/jboss_eap8//jboss-eap8 belongs to appropriate user - if defined.] ***
changed: [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] ********
changed: [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_eap8//jboss-eap8/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] ***************************
changed: [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] ***
changed: [localhost]
TASK [redhat.eap.eap_systemd : Deploy Systemd unit for service: /etc/systemd/system/eap.service] ***
changed: [localhost]
TASK [redhat.eap.eap_systemd : Perform daemon-reload to ensure the changes are picked up] ***
ok: [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] **************
changed: [localhost]
TASK [redhat.eap.eap_systemd : Ensure server's apps are deployed] **************
skipping: [localhost]
TASK [redhat.eap.eap_validation : Validating arguments against arg spec 'main'] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Ensure required parameters are provided.] ****
ok: [localhost]
TASK [redhat.eap.eap_validation : Ensure user eap were created.] ***************
ok: [localhost]
TASK [redhat.eap.eap_validation : Validate state of user: eap] *****************
ok: [localhost]
TASK [redhat.eap.eap_validation : Ensure group eap were created.] **************
ok: [localhost]
TASK [redhat.eap.eap_validation : Validate state of group: eap.] ***************
ok: [localhost]
TASK [redhat.eap.eap_validation : Verify server's installation directory] ******
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/verify_owner_and_group.yml for localhost
TASK [redhat.eap.eap_validation : Load metadata on installation directory /opt/jboss_eap8//jboss-eap8] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Ensure installation directory /opt/jboss_eap8//jboss-eap8 exists and belong to the appropriate user/group eap/eap] ***
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [redhat.eap.eap_validation : Ensure user of the installation: eap] ********
ok: [localhost]
TASK [redhat.eap.eap_validation : Print files or directories owned by wrong user] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Fail if there are files/directories owned by different user than] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Ensure group of installation: eap] ***********
ok: [localhost]
TASK [redhat.eap.eap_validation : Print files or directories added to wrong group] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Fail if there are files/directories that belong to different group] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Verify that main logfile exists and confirms server is started.] ***
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/logfile.yml for localhost
TASK [redhat.eap.eap_validation : Ensure required parameter(s) are provided.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Slurp logfile {{ path_to_file }}] ************
ok: [localhost]
TASK [redhat.eap.eap_validation : Extract content of logfile {{ path_to_file }}.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Printout logfile content] ********************
skipping: [localhost]
TASK [redhat.eap.eap_validation : Ensure requested pattern {{ search_pattern }} is present in logfile {{ path_to_file }}] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Wait for HTTP port 8080 to become available.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Wait for HTTPS port 8443 to become available.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Check if HTTP web connector is accessible] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Check if HTTPS web connector is accessible] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Verify installation user and group] **********
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/verify_owner_and_group.yml for localhost
TASK [redhat.eap.eap_validation : Load metadata on installation directory /opt/jboss_eap8//jboss-eap8] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Ensure installation directory /opt/jboss_eap8//jboss-eap8 exists and belong to the appropriate user/group eap/eap] ***
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [redhat.eap.eap_validation : Ensure user of the installation: eap] ********
ok: [localhost]
TASK [redhat.eap.eap_validation : Print files or directories owned by wrong user] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Fail if there are files/directories owned by different user than] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Ensure group of installation: eap] ***********
ok: [localhost]
TASK [redhat.eap.eap_validation : Print files or directories added to wrong group] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Fail if there are files/directories that belong to different group] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Verify systemd service state.] ***************
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/systemd.yml for localhost
TASK [redhat.eap.eap_validation : Populate services list] **********************
ok: [localhost]
TASK [redhat.eap.eap_validation : Check if service is running] *****************
ok: [localhost]
TASK [redhat.eap.eap_validation : Load metadata on PIDFile: /run/eap/eap.pid] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Verify metadatas] ****************************
ok: [localhost]
TASK [redhat.eap.eap_validation : Verify server's internal configuration] ******
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/verify_with_cli_queries.yml for localhost => (item={'query': '/core-service=server-environment:read-attribute(name=start-gracefully)'})
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_validation/tasks/verify_with_cli_queries.yml for localhost => (item={'query': '/subsystem=undertow/server=default-server/http-listener=default:read-attribute(name=enabled)'})
TASK [redhat.eap.eap_validation : Ensure required parameters are provided.] ****
ok: [localhost]
TASK [Use CLI query to validate service state: /core-service=server-environment:read-attribute(name=start-gracefully)] ***
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 '/core-service=server-environment:read-attribute(name=start-gracefully)'] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Reset CLI port to default] ************************
ok: [localhost]
TASK [redhat.eap.eap_validation : Validate CLI query was successful] ***********
ok: [localhost]
TASK [redhat.eap.eap_validation : Transform output to JSON] ********************
ok: [localhost]
TASK [redhat.eap.eap_validation : Display transformed result] ******************
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query was successfully performed.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is not undefined.] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is same as expected value.] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is undefined.] *******
skipping: [localhost]
TASK [redhat.eap.eap_validation : Ensure required parameters are provided.] ****
ok: [localhost]
TASK [Use CLI query to validate service state: /subsystem=undertow/server=default-server/http-listener=default:read-attribute(name=enabled)] ***
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 '/subsystem=undertow/server=default-server/http-listener=default:read-attribute(name=enabled)'] ***
ok: [localhost]
TASK [redhat.eap.eap_utils : Reset CLI port to default] ************************
ok: [localhost]
TASK [redhat.eap.eap_validation : Validate CLI query was successful] ***********
ok: [localhost]
TASK [redhat.eap.eap_validation : Transform output to JSON] ********************
ok: [localhost]
TASK [redhat.eap.eap_validation : Display transformed result] ******************
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query was successfully performed.] ***
ok: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is not undefined.] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is same as expected value.] ***
skipping: [localhost]
TASK [redhat.eap.eap_validation : Check that query result is undefined.] *******
skipping: [localhost]
TASK [redhat.eap.eap_validation : Verify server's configuration] ***************
skipping: [localhost]
TASK [redhat.eap.eap_validation : Verify JDBC drivers deployment (if any)] *****
skipping: [localhost]
RUNNING HANDLER [redhat.eap.eap_systemd : Restart eap] *************************
included: /root/.ansible/collections/ansible_collections/redhat/eap/roles/eap_systemd/tasks/service.yml for localhost
RUNNING HANDLER [redhat.eap.eap_systemd : Check arguments] *********************
ok: [localhost]
RUNNING HANDLER [redhat.eap.eap_systemd : Set instance eap state to restarted] ***
changed: [localhost]
RUNNING HANDLER [redhat.eap.eap_install : Execute restorecon] ******************
skipping: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=120 changed=12 unreachable=0 failed=0 skipped=46 rescued=0 ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment