Skip to content

Commit

Permalink
Disable WebAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Jul 17, 2024
1 parent 44b8a5f commit 28f0e7f
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 75 deletions.
30 changes: 15 additions & 15 deletions db/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,21 @@
hosts: local
gather_facts: no
tasks:
- name: WebAPI Notification
ansible.builtin.uri:
url: '{{ webAPI }}'
method: POST
body_format: json
body:
username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].DBSHORT }} Build Complete"
content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }} \nDB Name - {{ hostvars[item.public_ip_address].DBNAME }} \nDB User - {{ hostvars[item.public_ip_address].DBUSER }} \nDB Port - {{ hostvars[item.public_ip_address].DBPORT }}"
avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
status_code:
- 200
- 202
- 204
loop: '{{ ec2.instances }}'
tags: default
# - name: WebAPI Notification
# ansible.builtin.uri:
# url: '{{ webAPI }}'
# method: POST
# body_format: json
# body:
# username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].DBSHORT }} Build Complete"
# content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }} \nDB Name - {{ hostvars[item.public_ip_address].DBNAME }} \nDB User - {{ hostvars[item.public_ip_address].DBUSER }} \nDB Port - {{ hostvars[item.public_ip_address].DBPORT }}"
# avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
# status_code:
# - 200
# - 202
# - 204
# loop: '{{ ec2.instances }}'
# tags: default

- name: Display AWS EC2 Information
debug:
Expand Down
30 changes: 15 additions & 15 deletions rhel/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,21 +256,21 @@
hosts: local
gather_facts: no
tasks:
- name: WebAPI Notification
ansible.builtin.uri:
url: '{{ webAPI }}'
method: POST
body_format: json
body:
username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
status_code:
- 200
- 202
- 204
loop: '{{ ec2.instances }}'
tags: default
# - name: WebAPI Notification
# ansible.builtin.uri:
# url: '{{ webAPI }}'
# method: POST
# body_format: json
# body:
# username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
# content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
# avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
# status_code:
# - 200
# - 202
# - 204
# loop: '{{ ec2.instances }}'
# tags: default

- name: Display AWS EC2 Information
debug:
Expand Down
30 changes: 15 additions & 15 deletions sles/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,21 +242,21 @@
hosts: local
gather_facts: no
tasks:
- name: WebAPI Notification
ansible.builtin.uri:
url: '{{ webAPI }}'
method: POST
body_format: json
body:
username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
status_code:
- 200
- 202
- 204
loop: '{{ ec2.instances }}'
tags: default
# - name: WebAPI Notification
# ansible.builtin.uri:
# url: '{{ webAPI }}'
# method: POST
# body_format: json
# body:
# username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
# content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
# avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
# status_code:
# - 200
# - 202
# - 204
# loop: '{{ ec2.instances }}'
# tags: default

- name: Display AWS EC2 Information
debug:
Expand Down
30 changes: 15 additions & 15 deletions ubuntu/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,21 +228,21 @@
hosts: local
gather_facts: no
tasks:
- name: WebAPI Notification
ansible.builtin.uri:
url: '{{ webAPI }}'
method: POST
body_format: json
body:
username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
status_code:
- 200
- 202
- 204
loop: '{{ ec2.instances }}'
tags: default
# - name: WebAPI Notification
# ansible.builtin.uri:
# url: '{{ webAPI }}'
# method: POST
# body_format: json
# body:
# username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
# content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
# avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
# status_code:
# - 200
# - 202
# - 204
# loop: '{{ ec2.instances }}'
# tags: default

- name: Display AWS EC2 Information
debug:
Expand Down
30 changes: 15 additions & 15 deletions win/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,21 +341,21 @@
hosts: local
gather_facts: no
tasks:
- name: WebAPI Notification
ansible.builtin.uri:
url: '{{ webAPI }}'
method: POST
body_format: json
body:
username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
status_code:
- 200
- 202
- 204
loop: '{{ ec2.instances }}'
tags: default
# - name: WebAPI Notification
# ansible.builtin.uri:
# url: '{{ webAPI }}'
# method: POST
# body_format: json
# body:
# username: "{{ semaphore_vars.task_details.username|upper }}-{{ imageName }} {{ hostvars[item.public_ip_address].productName }} Build Complete"
# content: "Public IP - {{ item.public_ip_address }} \nPublic DNS - {{ item.public_dns_name }}"
# avatar_url: "https://clipground.com/images/ansible-logo-clipart-5.png"
# status_code:
# - 200
# - 202
# - 204
# loop: '{{ ec2.instances }}'
# tags: default

- name: Display AWS EC2 Information
debug:
Expand Down

0 comments on commit 28f0e7f

Please sign in to comment.