Skip to content

Commit

Permalink
Cleanup redundant conditions (#355)
Browse files Browse the repository at this point in the history
Signed-off-by: tu1h <[email protected]>
  • Loading branch information
0ekk authored Aug 22, 2024
1 parent 04c8ae9 commit 61ba8b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions roles/k3s_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@
- inventory_hostname != groups[server_group][0]
block:
- name: Copy K3s service file [HA]
when:
- groups[server_group] | length > 1
- not use_external_database
when: not use_external_database
ansible.builtin.template:
src: "k3s-ha.service.j2"
dest: "{{ systemd_dir }}/k3s.service"
Expand All @@ -187,9 +185,7 @@
register: service_file_ha

- name: Copy K3s service file [External DB]
when:
- groups[server_group] | length > 1
- use_external_database
when: use_external_database
ansible.builtin.template:
src: "k3s-single.service.j2"
dest: "{{ systemd_dir }}/k3s.service"
Expand Down

0 comments on commit 61ba8b5

Please sign in to comment.