Skip to content
Snippets Groups Projects
Commit a7070cb3 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#72 Always use import_tasks or include_tasks instead of just include

parent 8b14c2b5
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- block: - block:
- include: serverdensity.yml - import_tasks: serverdensity.yml
when: sd_api_token != '' when: sd_api_token != ''
when: '"serverdensity" not in excluded_roles' when: '"serverdensity" not in excluded_roles'
--- ---
# file: roles/serverdensity/tasks/serverdensity.yml # file: roles/serverdensity/tasks/serverdensity.yml
- include_tasks: uninstallv1.yml - import_tasks: uninstallv1.yml
when: sd_uninstallv1 when: sd_uninstallv1
tags: 'always'
- name: "ServerDensity | Init SD plugin" - name: "ServerDensity | Init SD plugin"
local_action: local_action:
...@@ -59,10 +58,8 @@ ...@@ -59,10 +58,8 @@
when: sd_agent_key != '' when: sd_agent_key != ''
notify: "ServerDensity | Restart Agent" notify: "ServerDensity | Restart Agent"
- include_tasks: apache.yml - import_tasks: apache.yml
when: sd_groups.apache != 'none' and inventory_hostname in groups[sd_groups.apache] when: sd_groups.apache != 'none' and inventory_hostname in groups[sd_groups.apache]
tags: 'always'
- include_tasks: mysql.yml - import_tasks: mysql.yml
when: sd_groups.mysql != 'none' and inventory_hostname in groups[sd_groups.mysql] when: sd_groups.mysql != 'none' and inventory_hostname in groups[sd_groups.mysql]
tags: 'always'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment