Skip to content

Commit

Permalink
- Add default values to input parameters (cyberark#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivshits authored Jan 6, 2019
1 parent cebef9c commit 5e4a9b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[defaults]

# Default path to roles directory
; roles_path = ./roles
roles_path = ./roles

# Adds timestamp to each task and add a recap on the end of the playbook
callback_whitelist = profile_tasks
; log_path=/var/log/ansible
Expand Down
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
# pvwa git repo
- src: git@github.com:cyberark/pvwa.git
scm: git
version: v10.6

# cpm git repo
- src: git@github.com:cyberark/cpm.git
scm: git
version: v10.6

# psm git repo
- src: git@github.com:cyberark/psm.git
scm: git
version: v10.6
13 changes: 9 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- name: accept_eula
prompt: "Please accept EULA"
default: "No"
private: no

- name: vault_ip
Expand All @@ -18,23 +19,27 @@
private: yes

- name: ansible_user
prompt: "Please enter the Hosts Administrator username"
prompt: "Please enter the Hosts administrator username"
default: "Administrator"
private: no

- name: ansible_password
prompt: "Please enter the Hosts Administrator password"
private: yes

- name: cpm_zip_file_path
prompt: "Please enter cpm package location (etc. /tmp/pas_packages/cpm.zip)"
prompt: "Please enter CPM installation package location"
default: "/tmp/pas_packages/cpm.zip"
private: no

- name: pvwa_zip_file_path
prompt: "Please enter pvwa package location (etc. /tmp/pas_packages/pvwa.zip)"
prompt: "Please enter PVWA installation package location"
default: "/tmp/pas_packages/pvwa.zip"
private: no

- name: psm_zip_file_path
prompt: "Please enter psm package location (etc. /tmp/pas_packages/psm.zip)"
prompt: "Please enter PSM installation package location"
default: "/tmp/pas_packages/psm.zip"
private: no

tasks:
Expand Down

0 comments on commit 5e4a9b7

Please sign in to comment.