Updated with bitbucket repository creation and deletion scripts.
diff --git a/bitbucket-create-repos.yml b/bitbucket-create-repos.yml
new file mode 100644
index 0000000..c53e87a
--- /dev/null
+++ b/bitbucket-create-repos.yml
@@ -0,0 +1,22 @@
+---
+- name: Create repositories in BitBucket
+ hosts: localhost
+ connection: local
+ vars:
+ bitbucket_url: "https://onestash.verizon.com/rest/api/1.0/projects/CELVW/repos"
+ tasks:
+ - name: Create repositories if necessary
+ uri:
+ url: "{{ bitbucket_url }}"
+ method: POST
+ user: "{{ vz_windows_user }}"
+ password: "{{ vz_windows_password }}"
+ force_basic_auth: yes
+ status_code: 201,409
+ body_format: json
+ body:
+ name: "{{ item.repo_name }}"
+ scmId: git
+ forkable: True
+ with_items: "{{ repo_names }}"
+
diff --git a/bitbucket-remove-repos.yml b/bitbucket-remove-repos.yml
new file mode 100644
index 0000000..1b30add
--- /dev/null
+++ b/bitbucket-remove-repos.yml
@@ -0,0 +1,15 @@
+---
+- name: Create repositories in BitBucket
+ hosts: localhost
+ connection: local
+ vars:
+ onestash_url: "https://onestash.verizon.com/rest/api/1.0/projects/CELVW/repos"
+ tasks:
+ - name: Remove repo
+ uri:
+ url: "{{ onestash_url }}/delete_test_repo"
+ method: DELETE
+ user: "{{ vz_windows_user }}"
+ password: "{{ vz_windows_password }}"
+ status_code: 202,204
+ force_basic_auth: yes
diff --git a/setup-ec2.yml b/setup-ec2.yml
index 9d09514..d7c4dbf 100644
--- a/setup-ec2.yml
+++ b/setup-ec2.yml
@@ -4,9 +4,7 @@
gather_facts: no
vars_files:
- ~/.apigee/credentials.yml
-
tasks:
-
- name: Validate that aws_secret_key is provided
fail:
msg: Please indicate the aws_secret_key