---
- name: ANSISTRANO | Check BC for early adopters
  fail: msg="Check https://github.com/ansistrano/deploy"
  when: ansistrano_custom_tasks_path | bool

- name: ANSISTRANO | Execute "Before Update Code" Tasks
  include: "{{ ansistrano_before_update_code_tasks_file | default('empty.yml') }}"

- include: update-code.yml

- name: ANSISTRANO | Execute "After Update Code" Tasks
  include: "{{ ansistrano_after_update_code_tasks_file | default('empty.yml') }}"

- name: ANSISTRANO | Execute "Before Symlink" Tasks
  include: "{{ ansistrano_before_symlink_tasks_file | default('empty.yml') }}"

- include: symlink.yml

- name: ANSISTRANO | Execute "After Symlink" Tasks
  include: "{{ ansistrano_after_symlink_tasks_file | default('empty.yml') }}"

- name: ANSISTRANO | Execute "Before Cleanup" Tasks
  include: "{{ ansistrano_before_cleanup_tasks_file | default('empty.yml') }}"

- include: cleanup.yml

- name: ANSISTRANO | Execute "After Cleanup" Tasks
  include: "{{ ansistrano_after_cleanup_tasks_file | default('empty.yml') }}"

---
- name: ANSISTRANO | Check BC for early adopters
  fail: msg="ansistrano_custom_tasks_path is not used anymore. Please, check the documentation at https://github.com/ansistrano/deploy"
  when: ansistrano_custom_tasks_path is defined

- name: ANSISTRANO | Execute "Before Update Code" Tasks
  include: "{{ ansistrano_before_update_code_tasks_file | default('empty.yml') }}"

- include: update-code.yml

- name: ANSISTRANO | Execute "After Update Code" Tasks
  include: "{{ ansistrano_after_update_code_tasks_file | default('empty.yml') }}"

- name: ANSISTRANO | Execute "Before Symlink" Tasks
  include: "{{ ansistrano_before_symlink_tasks_file | default('empty.yml') }}"

- include: symlink.yml

- name: ANSISTRANO | Execute "After Symlink" Tasks
  include: "{{ ansistrano_after_symlink_tasks_file | default('empty.yml') }}"

- name: ANSISTRANO | Execute "Before Cleanup" Tasks
  include: "{{ ansistrano_before_cleanup_tasks_file | default('empty.yml') }}"

- include: cleanup.yml

- name: ANSISTRANO | Execute "After Cleanup" Tasks
  include: "{{ ansistrano_after_cleanup_tasks_file | default('empty.yml') }}"

Add guard for early adopters
Add guard for early adopters
