Skip to content

Commit

Permalink
Fix apache/nginx switch behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Aug 28, 2023
1 parent e4087c8 commit b1513bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meta/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
dependencies:
- role: dehydrated
- role: nginx
when: inventory_hostname in groups.nginx
when: inventory_hostname in groups.nginx or not inventory_hostname in groups.apache
- role: apache
when: inventory_hostname in groups.apache
- role: oauth2_proxy
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

- name: Install Nginx template
ansible.builtin.include_tasks: nginx.yaml
when: inventory_hostname in groups.nginx
when: (inventory_hostname in groups.nginx) | default(True)

- name: Install Apache template
ansible.builtin.include_tasks: apache.yaml
when: inventory_hostname in groups.apache
when: (inventory_hostname in groups.apache) | default(False)

0 comments on commit b1513bc

Please sign in to comment.