diff --git a/devfile.yaml b/devfile.yaml index e259d6f..87a4131 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,10 +1,11 @@ +--- schemaVersion: 2.2.0 metadata: name: ansible-snow-development components: - container: - args: ['tail', '-f', '/dev/null'] - image: 'towerpah.shadowman.dev/devee:latest' + args: [tail, -f, /dev/null] + image: towerpah.shadowman.dev/devee:latest memoryRequest: 256M memoryLimit: 6Gi cpuRequest: 250m diff --git a/roles/servicenow_catalog_create/tasks/main.yml b/roles/servicenow_catalog_create/tasks/main.yml index 5621ef1..d79f201 100644 --- a/roles/servicenow_catalog_create/tasks/main.yml +++ b/roles/servicenow_catalog_create/tasks/main.yml @@ -10,9 +10,9 @@ resource: sc_category action: post data: - title: "Ansible Jobs" - sc_catalog: "Service Catalog" - description: "Jobs launced from AAP" + title: Ansible Jobs + sc_catalog: Service Catalog + description: Jobs launced from AAP active: true when: categoryresult.record | length == 0 @@ -27,11 +27,11 @@ resource: sc_cat_item action: post data: - name: "Provision VM" - sc_catalogs: "Service Catalog" - category: "Ansible Jobs" + name: Provision VM + sc_catalogs: Service Catalog + category: Ansible Jobs active: true - short_description: "Deploy a new virtual machine" + short_description: Deploy a new virtual machine when: catalogitemresult.record | length == 0 - name: Create Single Line Variable to enter VM Name @@ -39,10 +39,10 @@ resource: item_option_new action: post data: - type: "Single Line Text" - cat_item: "Provision VM" - question_text: "What is your VM name?" - name: "vm_name" + type: Single Line Text + cat_item: Provision VM + question_text: What is your VM name? + name: vm_name active: true mandatory: true order: 100 @@ -53,10 +53,10 @@ resource: item_option_new action: post data: - type: "Select Box" - cat_item: "Provision VM" - question_text: "Pick your OS" - name: "operating_system" + type: Select Box + cat_item: Provision VM + question_text: Pick your OS + name: operating_system order: 200 active: true mandatory: true @@ -67,15 +67,15 @@ resource: question_choice action: post data: - type: "Select Box" - cat_item: "Provision VM" - question: "Pick your OS" + type: Select Box + cat_item: Provision VM + question: Pick your OS text: "{{ item.text }}" value: "{{ item.value }}" order: "{{ item.order }}" loop: - - { text: 'RHEL7', value: 'RHEL7', order: '100' } - - { text: 'RHEL8', value: 'RHEL8', order: '200' } - - { text: 'RHEL9', value: 'RHEL9', order: '300' } - - { text: 'Win2016', value: 'Win2016', order: '400' } + - { text: RHEL7, value: RHEL7, order: "100" } + - { text: RHEL8, value: RHEL8, order: "200" } + - { text: RHEL9, value: RHEL9, order: "300" } + - { text: Win2016, value: Win2016, order: "400" } when: catalogitemresult.record | length == 0 diff --git a/roles/servicenow_change_request_wait/tasks/main.yml b/roles/servicenow_change_request_wait/tasks/main.yml index 21a2502..d51d82b 100644 --- a/roles/servicenow_change_request_wait/tasks/main.yml +++ b/roles/servicenow_change_request_wait/tasks/main.yml @@ -6,8 +6,8 @@ servicenow.itsm.change_request: type: normal short_description: "{{ cr_description }}" - description: "{{ owner | default('Shadowman') }} requests {{ operating_system | default('') }} server in - {{ shadowman_provision_hypervisor | default('') }} with name {{ vm_name | default('') }} and environment {{ env | default('test') }}" + description: "{{ owner | default('Shadowman') }} requests {{ operating_system | default('') }} server in {{ shadowman_provision_hypervisor | default('') }} + with name {{ vm_name | default('') }} and environment {{ env | default('test') }}" priority: high risk: moderate impact: low @@ -33,8 +33,8 @@ password: "{{ EMAIL_PASSWORD }}" port: "{{ EMAIL_PORT }}" subject: Approval request for ServiceNow Change Request {{ request.record.number }} - body: "You have a new CR Approval request. Please click on this URL to approve: - {{ lookup('env', 'SN_HOST') }}nav_to.do?uri=change_request.do?sysparm_query=number={{ request.record.number }}" + body: "You have a new CR Approval request. Please click on this URL to approve: {{ lookup('env', 'SN_HOST') }}nav_to.do?uri=change_request.do?sysparm_query=number={{ + request.record.number }}" from: tower@shadowman.dev to: "{{ to_email }}" delegate_to: localhost