From ebe89583e14c38564451d757c6100b4e9b0fbe0f Mon Sep 17 00:00:00 2001 From: ByeonJungHun Date: Fri, 19 Jan 2024 10:52:11 +0900 Subject: [PATCH] =?UTF-8?q?task=20when=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/dsk-debian-pkg.yml | 4 ++-- tasks/dsk-redhat-pkg.yml | 4 ++-- tasks/remove-datasaker.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/dsk-debian-pkg.yml b/tasks/dsk-debian-pkg.yml index b945912..b0a70f3 100644 --- a/tasks/dsk-debian-pkg.yml +++ b/tasks/dsk-debian-pkg.yml @@ -87,7 +87,7 @@ - "{{ datasaker_agents }}" ignore_errors: true when: - - "item != 'dsk-maria-agent' and item != 'dsk-mysql-agent' and item != 'dsk-postgres-agent'" + - "item == 'dsk-maria-agent' or item == 'dsk-mysql-agent' or item == 'dsk-postgres-agent'" - "'database' in group_names" - name: "Check datasaker Agent" @@ -126,5 +126,5 @@ - "{{ datasaker_agents }}" ignore_errors: true when: - - "item != 'dsk-maria-agent' and item != 'dsk-mysql-agent' and item != 'dsk-postgres-agent'" + - "item == 'dsk-maria-agent' or item == 'dsk-mysql-agent' or item == 'dsk-postgres-agent'" - "'database' in group_names" \ No newline at end of file diff --git a/tasks/dsk-redhat-pkg.yml b/tasks/dsk-redhat-pkg.yml index bfd6ed6..3bb2be1 100644 --- a/tasks/dsk-redhat-pkg.yml +++ b/tasks/dsk-redhat-pkg.yml @@ -63,7 +63,7 @@ - Restart {{ item }} service ignore_errors: true when: - - "item != 'dsk-maria-agent' and item != 'dsk-mysql-agent' and item != 'dsk-postgres-agent'" + - "item == 'dsk-maria-agent' or item == 'dsk-mysql-agent' or item == 'dsk-postgres-agent'" - "'database' in group_names" - name: "Check datasaker Agent" @@ -97,5 +97,5 @@ - "{{ datasaker_agents }}" ignore_errors: true when: - - "item != 'dsk-maria-agent' and item != 'dsk-mysql-agent' and item != 'dsk-postgres-agent'" + - "item == 'dsk-maria-agent' or item == 'dsk-mysql-agent' or item == 'dsk-postgres-agent'" - "'database' in group_names" \ No newline at end of file diff --git a/tasks/remove-datasaker.yml b/tasks/remove-datasaker.yml index b1b738b..aefddaf 100644 --- a/tasks/remove-datasaker.yml +++ b/tasks/remove-datasaker.yml @@ -20,7 +20,7 @@ - "{{ datasaker_agents }}" when: - datasaker_agents - - "item != 'dsk-maria-agent' and item != 'dsk-mysql-agent' and item != 'dsk-postgres-agent'" + - "item == 'dsk-maria-agent' or item == 'dsk-mysql-agent' or item == 'dsk-postgres-agent'" - "'database' in group_names" ignore_errors: true