Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin9705 committed Aug 30, 2019
1 parent ffd134f commit d8cfa18
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions _core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,21 @@
pgrole: '{{rolename.stdout}}'

# OAUTH INFO ###################################################################
- name: 'OAuth Exe'
block:
- name: Check if Anti Auth Variable Exists
stat:
path: '/pg/var/oauth.exists'
register: authcheck

- name: 'Auth Check 1'
set_fact:
gauth: 'http://oauth:4181'
when: authcheck.stat.exists

- name: 'Auth Check 2'
set_fact:
gauth: ''
when: not authcheck.stat.exists

when: oauth.stdout == 'good'

- name: 'OAuth Exe'
- name: Check if Anti Auth Variable Exists
stat:
path: '/pg/var/oauth.exists'
register: authcheck

- name: 'Auth Check 1'
set_fact:
gauth: 'http://oauth:4181'
when: authcheck.stat.exists

- name: 'Auth Check 2'
set_fact:
gauth: ''
when: not oauth.stdout == 'good'
when: not authcheck.stat.exists

- debug: msg="OAuth - {{oauth.stdout}}"
# RECALL PORT VARIABLES ########################################################
- name: Register Ports
shell: 'cat /pg/var/server.ports'
Expand Down

0 comments on commit d8cfa18

Please sign in to comment.