diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-04-04 13:35:38 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-04-04 13:35:38 +0200 |
commit | 00cd817342d7dbbb4cc35edb1bd80c97b91ed41b (patch) | |
tree | 90eb429062eeb2aa660965848270cbd30497ff05 | |
parent | 9020cc32a5764ae262ab361d14a1afc4a8914603 (diff) | |
download | ansible-kong-app-00cd817342d7dbbb4cc35edb1bd80c97b91ed41b.tar.gz ansible-kong-app-00cd817342d7dbbb4cc35edb1bd80c97b91ed41b.tar.zst ansible-kong-app-00cd817342d7dbbb4cc35edb1bd80c97b91ed41b.zip |
lint: fix latest recommendations from ansible-lint
-rw-r--r-- | meta/main.yml | 8 | ||||
-rw-r--r-- | tasks/plugins.yml | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/meta/main.yml b/meta/main.yml index a2ae975..af8b3f0 100644 --- a/meta/main.yml +++ b/meta/main.yml | |||
@@ -32,7 +32,13 @@ galaxy_info: | |||
32 | # | 32 | # |
33 | # platforms is a list of platforms, and each platform has a name and a list of versions. | 33 | # platforms is a list of platforms, and each platform has a name and a list of versions. |
34 | # | 34 | # |
35 | # platforms: | 35 | platforms: |
36 | - name: Debian | ||
37 | versions: | ||
38 | - all | ||
39 | - name: Ubuntu | ||
40 | version: | ||
41 | - all | ||
36 | # - name: Fedora | 42 | # - name: Fedora |
37 | # versions: | 43 | # versions: |
38 | # - all | 44 | # - all |
diff --git a/tasks/plugins.yml b/tasks/plugins.yml index cedbbd2..c64e5c9 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml | |||
@@ -23,7 +23,7 @@ | |||
23 | current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" | 23 | current_config: "{{ kong_app_service_plugins_check.json.data | selectattr('name', 'equalto', plugin.name) | first |default({\"id\": ''}) }}" |
24 | current_id_hash: | 24 | current_id_hash: |
25 | id: "{{ current_config.id }}" | 25 | id: "{{ current_config.id }}" |
26 | current_body: "{{ (current_id_hash.id == '') | ternary({}, current_id_hash) }}" | 26 | current_body: "{{ not current_id_hash.id | ternary({}, current_id_hash) }}" |
27 | exists_plugin: "{{ current_id_hash.id == '' }}" | 27 | exists_plugin: "{{ not current_id_hash.id }}" |
28 | when: not kong_app_service_plugins_check is skipped | 28 | when: not kong_app_service_plugins_check is skipped |
29 | no_log: true | 29 | no_log: true |