Skip to content

Commit

Permalink
logserver: fix when condition for jinja is not allowed
Browse files Browse the repository at this point in the history
Change-Id: I214c855d03565feea0513d9d7987c6a30f03f072
  • Loading branch information
nhicher committed Jan 24, 2023
1 parent c538000 commit 45beda5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ansible/roles/sf-logserver/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- service_facts:
run_once: true

- name: "Remove packages if {{ role_package }} is a container"
- name: "Remove packages"
block:
- name: Stop services
service:
Expand All @@ -16,10 +16,7 @@
- httpd
- mod_wsgi
state: absent
when:
- "'{{ role_package }}.service' in {{ ansible_facts.services }}"
- "'gateway' not in roles"
- "'cauth' not in roles"
when: "'gateway' not in roles"

- name: "Removing ara resources"
block:
Expand Down Expand Up @@ -48,8 +45,7 @@
name: ara
state: absent
remove: true

when: "'ara.service' in {{ ansible_facts.services }}"
when: "'ara.service' in ansible_facts.services"

- name: Reloading Systemd
systemd:
Expand Down

0 comments on commit 45beda5

Please sign in to comment.