Skip to content

Commit

Permalink
- Fixed broken logic in AWX
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Feb 14, 2020
1 parent 66f5d8f commit 50b2d0b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions roles/infrastructure/tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,16 +287,6 @@
that:
- ax_cert_issuer in cert_issuer_set

- name: AWX pre-flight check
assert:
that:
- ax_admin|length > 0
- ax_admin != 'SetMe'
- ax_admin_password|length > 0
- ax_admin_password != 'SetMe'
when:
- ax_force|bool or ax_ss_result.resources|length == 0

# Extract current AWX version.
# If it's different then force a re-deploy,
# otherwise skip the AWX stage.
Expand Down Expand Up @@ -332,6 +322,14 @@
- name: AWX installation block
block:

- name: AWX pre-flight check
assert:
that:
- ax_admin|length > 0
- ax_admin != 'SetMe'
- ax_admin_password|length > 0
- ax_admin_password != 'SetMe'

- name: Ensure AWX clone directory
file:
path: "{{ ax_clone_dir }}"
Expand Down

0 comments on commit 50b2d0b

Please sign in to comment.