diff --git a/defaults/main.yml b/defaults/main.yml index 12b16e8ae3ab2b4f0afb13c78072525cec246cc6..443c6952934936e50bbfe8ce93f4a40a16942a4e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,7 +10,6 @@ sd_agent_key: '' sd_logging_level: 'info' sd_alert_cleanup: no sd_force_update: yes -sd_plugins: [] sd_groups: apache: 'none' mysql: 'none' diff --git a/tasks/serverdensity.yml b/tasks/serverdensity.yml index ac13392bc8f904cad3f78ccb9facda806870f4ea..028e1b6f85027af2f090a48e6491b2e582cb70b8 100644 --- a/tasks/serverdensity.yml +++ b/tasks/serverdensity.yml @@ -41,8 +41,7 @@ copy: src={{ sd_plugins_files_dir }}/{{ item }} dest={{ sd_agent_plugins_dir }}/{{ item }} - with_items: '{{ sd_plugins }}' - when: sd_plugins|length > 0 + with_items: '{{ sd_plugins|default([]) }}' notify: "ServerDensity | Restart Agent" - name: "ServerDensity | Configure The Agent"