Skip to content

Commit

Permalink
Update demo_setup.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IPvSean committed Sep 6, 2019
1 parent 9145a9f commit dcee7cf
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions demos/servicenow/2-closed_loop_incident_mgmt/demo_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,40 @@
- 'private.yml'
- 'login_info.yml'

# - name: move playbooks to /var/lib/awx/projects/snow_demo
# copy:
# src: "{{playbook_dir}}/"
# dest: /var/lib/awx/projects/snow_demo/
# become: yes
# become_method: sudo
# become_user: awx
# run_once: true
# delegate_to: localhost
#
# - name: add project to tower
# tower_project:
# name: SNOW_CL
# local_path: snow_demo
# organization: Default
# tower_username: "{{ tower_username }}"
# tower_password: "{{ tower_password }}"
# tower_host: https://localhost
# tower_verify_ssl: no
# run_once: true
# delegate_to: localhost
#
# - name: add servicenow custom cred
# tower_credential_type:
# name: "SNOW_CL Credential"
# description: Credential type for SNOW
# inputs: "{{ lookup('file', playbook_dir + '/custom_cred/inputs.yml') | from_yaml }}"
# injectors: "{{ lookup('file', playbook_dir + '/custom_cred/injector.yml') | from_yaml }}"
# state: present
# kind: cloud
# tower_username: "{{ tower_username }}"
# tower_password: "{{ tower_password }}"
# tower_host: https://localhost
# validate_certs: false
- name: move playbooks to /var/lib/awx/projects/snow_demo
copy:
src: "{{playbook_dir}}/"
dest: /var/lib/awx/projects/snow_demo/
become: yes
become_method: sudo
become_user: awx
run_once: true
delegate_to: localhost

- name: add project to tower
tower_project:
name: SNOW_CL
local_path: snow_demo
organization: Default
tower_username: "{{ tower_username }}"
tower_password: "{{ tower_password }}"
tower_host: https://localhost
tower_verify_ssl: no
run_once: true
delegate_to: localhost

- name: add servicenow custom cred
tower_credential_type:
name: "SNOW_CL Credential"
description: Credential type for SNOW
inputs: "{{ lookup('file', playbook_dir + '/custom_cred/inputs.yml') | from_yaml }}"
injectors: "{{ lookup('file', playbook_dir + '/custom_cred/injector.yml') | from_yaml }}"
state: present
kind: cloud
tower_username: "{{ tower_username }}"
tower_password: "{{ tower_password }}"
tower_host: https://localhost
validate_certs: false

- name: Add Custom Credential
command: tower-cli credential create --name="SNOW Credential" --credential-type "SNOW_CL Credential" --inputs "{'username':'{{ username }}','password':'{{ password }}','instance':'{{ instance }}'}" -h https://localhost -u {{ tower_username }} -p {{ tower_password }} --organization Default --insecure
Expand Down

0 comments on commit dcee7cf

Please sign in to comment.