]> git.immae.eu Git - github/fretlink/ansible-kong-app.git/commitdiff
lint: fix latest recommendations from ansible-lint 10/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 4 Apr 2019 11:35:38 +0000 (13:35 +0200)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Thu, 4 Apr 2019 11:35:38 +0000 (13:35 +0200)
meta/main.yml
tasks/plugins.yml

index a2ae9752362c96d195f03baea883030ce6685b5a..af8b3f087b960c145a255889f5d313e1317e964a 100644 (file)
@@ -32,7 +32,13 @@ galaxy_info:
   #
   # platforms is a list of platforms, and each platform has a name and a list of versions.
   #
-  # platforms:
+  platforms:
+    - name: Debian
+      versions:
+        - all
+    - name: Ubuntu
+      version:
+        - all
   # - name: Fedora
   #   versions:
   #   - all
index cedbbd2af2b089dcf0cc8457118b194ea4731aa0..c64e5c956307dcaece0cefa2cc35eecb9b66737b 100644 (file)
@@ -23,7 +23,7 @@
     current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}"
     current_id_hash:
       id: "{{ current_config.id }}"
-    current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}"
-    exists_plugin: "{{ current_id_hash.id == '' }}"
+    current_body: "{{ not current_id_hash.id  | ternary({}, current_id_hash) }}"
+    exists_plugin: "{{ not current_id_hash.id  }}"
   when: not kong_app_service_plugins_check is skipped
   no_log: true