This directory contains Ansible automation for snow management and operations.
The SNOW automation provides playbooks and roles for managing and configuring snow infrastructure and services.
| Role | Description |
|---|---|
| servicenow_catalog | Role for servicenow catalog |
| servicenow_catalog_create | Role for servicenow catalog create |
| servicenow_change_request | Role for servicenow change request |
| servicenow_change_request_schedule | Role for servicenow change request schedule |
| servicenow_change_request_wait | Role for servicenow change request wait |
| servicenow_cmdb | Role for servicenow cmdb |
| servicenow_ritm_retrieve_eda | Role for servicenow ritm retrieve eda |
| servicenow_ticket | Role for servicenow ticket |
| servicenow_user | Role for servicenow user |
| Playbook | Description | Target Hosts |
|---|---|---|
| ServiceNowCR_and_approve.yml | Playbook for ServiceNowCR and approve | localhost |
| ServiceNowCR_canceled.yml | Playbook for ServiceNowCR canceled | localhost |
| ServiceNowCR_closed.yml | Playbook for ServiceNowCR closed | localhost |
| ServiceNowCR_create.yml | Playbook for ServiceNowCR create | all |
| ServiceNowCR_deleted.yml | Playbook for ServiceNowCR deleted | localhost |
| ServiceNowCR_implement.yml | Playbook for ServiceNowCR implement | localhost |
| ServiceNowCatalog.yml | Playbook for ServiceNowCatalog | localhost |
| ServiceNowCatalogCreate.yml | Playbook for ServiceNowCatalogCreate | localhost |
| ServiceNowEDARITM.yml | Playbook for ServiceNowEDARITM | localhost |
| ServiceNow_change_request_schedule.yml | Playbook for ServiceNow change request schedule | localhost |
| ServiceNow_cmdb_update.yml | Playbook for ServiceNow cmdb update | {{ vm_name |
| ServiceNowticket.yml | Playbook for ServiceNowticket | {{ vm_name |
| ServiceNowticket_close.yml | Playbook for ServiceNowticket close | all |
| ServiceNowticket_eda.yml | Playbook for ServiceNowticket eda | {{ vm_name |
| ServiceNowticket_find.yml | Playbook for ServiceNowticket find | localhost |
| ServiceNowticket_inprogress.yml | Playbook for ServiceNowticket inprogress | all |
| ServiceNowticket_logs.yml | Playbook for ServiceNowticket logs | {{ vm_name |
| ServiceNowticket_logs_update.yml | Playbook for ServiceNowticket logs update | {{ vm_name |
| ServiceNowticket_security.yml | Playbook for ServiceNowticket security | localhost |
| ServiceNowuser_create.yml | Playbook for ServiceNowuser create | localhost |
# Run a playbook
ansible-navigator run ServiceNowCR_and_approve.yml
# Run in stdout mode
ansible-navigator run ServiceNowCR_and_approve.yml -m stdout- hosts: target_hosts
roles:
- servicenow_catalog- Ansible 2.9 or higher (via ansible-navigator)
- Required collections (see
collections/requirements.ymlif present) - Appropriate access credentials configured via environment variables
Ansible-SNOW/
├── roles/ # Ansible roles
├── *.yml # Playbooks
├── collections/ # Collection dependencies (if present)
└── ansible-navigator.yml # Navigator configuration