Skip to content

Commit

Permalink
First attempt at making main.yml respect web and task deployments.
Browse files Browse the repository at this point in the history
  • Loading branch information
djyasin committed Feb 7, 2023
1 parent 26342b2 commit 9e3c49e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions roles/installer/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
- name: Check for presence of Deployment
- name: Check for presence of web and task deployments
k8s_info:
api_version: v1
kind: Deployment
name: "{{ ansible_operator_meta.name }}"
name: "{{ item }}"
namespace: "{{ ansible_operator_meta.namespace }}"
loop:
- "{{ ansible_operator_meta.namespace }}-web"
- "{{ ansible_operator_meta.namespace }}-task"
register: tower_deployment

# Just execute deployment steps when auto_upgrade is true or when no deployment exists
Expand Down

0 comments on commit 9e3c49e

Please sign in to comment.