This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
forked from ansible/product-demos
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add windows workflow with ServiceNow
- Loading branch information
Showing
3 changed files
with
243 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- hosts: windows | ||
name: Rollback playbook | ||
tasks: | ||
- name: "Rollback this step" | ||
debug: | ||
msg: "Rolling back this step" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
- name: open a change request | ||
hosts: student1-ansible-1 | ||
vars: | ||
change_request: | ||
severity: 2 | ||
priority: 2 | ||
description: Automated Provisioning | ||
justification: Ansible Triggered | ||
implementation_plan: Updated by Red Hat AAP | ||
risk_impact_analysis: Changes are made automatically based on approved changes | ||
test_plan: Run synthetic validation tests post-deployment | ||
short_description: Automated Provisioning | ||
tasks: | ||
- name: Create a change request | ||
servicenow.itsm.change_request: | ||
instance: | ||
host: "https://{{ snow_instance }}.service-now.com" | ||
username: "{{ snow_username }}" | ||
password: "{{ snow_password }}" | ||
type: standard | ||
state: new | ||
requested_by: admin | ||
short_description: "{{ change_request.short_description }}" | ||
description: "{{ change_request.description }}" | ||
priority: moderate | ||
risk: low | ||
impact: low | ||
register: new_incident | ||
|
||
- debug: | ||
var: new_incident.record.number |