MAS DevOps Ansible Collection Ansible CLI
Home Ansible Automation Platform OCP Install Cloud Pak For Data Install Core Add AIBroker Add IoT Add Manage Add Monitor Add Optimizer Add Predict Add Visual Inspection Update Upgrade Uninstall Core Backup & Restore ocp_cluster_monitoring ocp_config ocp_deprovision ocp_efs ocp_github_oauth ocp_login ocp_node_config ocp_provision ocp_roks_upgrade_registry_storage ocp_upgrade ocp_verify appconnect aws_bucket_access_point aws_documentdb_user aws_policy aws_route53 aws_user_creation aws_vpc cert_manager cis common-services configure_manage_eventstreams cos cos_bucket cp4d_admin_pwd_update cp4d cp4d_service db2 dro eck grafana ibm_catalogs kafka nvidia_gpu mongodb ocs sls turbonomic uds mirror_case_prepare mirror_extras_prepare mirror_images mirror_ocp ocp_idms ocp_simulate_disconnected_network registry suite_app_config suite_app_install suite_app_uninstall suite_app_upgrade suite_app_rollback suite_app_backup_restore suite_certs suite_config suite_db2_setup_for_manage suite_dns suite_install suite_manage_attachments_config suite_manage_birt_report_config suite_manage_bim_config suite_manage_customer_files_config suite_manage_imagestitching_config suite_manage_import_certs_config suite_manage_load_dbc_scripts suite_manage_logging_config suite_manage_pvc_config suite_uninstall suite_upgrade suite_rollback suite_verify suite_backup_restore ansible_version_check entitlement_key_rotation gencfg_jdbc gencfg_watsonstudio gencfg_workspace gencfg_mongo

MAS DevOps Ansible Collection¤

The ibm.mas_devops Ansible Collection is published on Ansible Galaxy and works with all supported releases of IBM Maximo Application Suite. Release information for the collection can be found in GitHub.

Usage¤

Run a Playbook¤

The collection includes a number of playbooks that string together multiple roles, you can directly invoke them after installing the collection:

ansible-playbook ibm.mas_devops.lite_core_roks

Run a Role¤

If you only want to perform a single action, you can directly invoke one of our roles from the command line without the need to build a playbook:

ansible localhost -m include_role -a name=ibm.mas_devops.ocp_verify

You can also use the run_role playbook:

ROLE_NAME=cert_manager ansible-playbook ibm.mas_devops.run_role

Running in Docker¤

The easiest way to use this collection is to take advantage of the ibmmas/cli container image, this negates the need to install anything on your local machine (other than docker - or podman if you prefer).

docker run -ti --rm --pull always quay.io/ibmmas/cli

Local Install¤

Install Python & Ansible¤

Python 3.9 is recommended as it is the most widely used version of Python within our development team, but any in-support 3.x version of Python should work fine.

python3 --version
python3 -m pip install ansible junit_xml pymongo xmljson jmespath kubernetes==12.0.1 openshift==0.12.1
ansible --version
ansible-playbook --version

We recommend using the latest version of ansible-core at all times (at time of writing this was v2.12.3) and the collection has a minimum supported version of ansible-core v2.10.3 which is enforced by the ibm.mas_devops.ansible_version_check role.

Install OpenShift CLI¤

If you do not already have the oc command line tool, you can download it as below:

wget -q https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.7/openshift-client-linux-4.14.7.tar.gz
tar -zxf openshift-client-linux.tar.gz
mv oc kubectl /usr/local/bin/
rm -rf openshift-client-linux.tar.gz
oc version

Install IBM Cloud CLI¤

If you are using this collection to manage an OpenShift cluster in IBM Cloud RedHat OpenShift Kubernetes Service (ROKS), then you must also install the IBM Cloud CLI:

curl -sL https://raw.githubusercontent.com/IBM-Cloud/ibm-cloud-developer-tools/master/linux-installer/idt-installer | bash
ibmcloud version`

Install the Ansible Collection¤

Install the collection direct from Ansible Galaxy

ansible-galaxy collection install ibm.mas_devops

Optionally, you can also pin the version of the collection that you install, allowing you to control exactly what version of the collection is in use in your automation:

ansible-galaxy collection install ibm.mas_devops:18.10.4

Ansible Automation Platform¤

If you wish to use Red Hat Ansible Automation Platform then a Automation Execution Environment image is available at quay.io/ibmmas/ansible-devops-ee that contains the ibm.mas_devops collection at the same release level, plus required client packages and access to the automation content collections supported by Red Hat.

More details on how to use the ansible-devops execution environment can be found here

Support¤

This Ansible collection is developed by the IBM Maximo Application Suite development team, customers may raise support tickets via the same routes they would an issue with the product itself, or raise an issue directly in the GitHub repository.