- name: Ensure version directory exists
ansible.builtin.stat:
path: "/opt/{{ app_prefix }}/{{ app_version }}"
register: version_dir
- name: Fail if target release directory is missing
ansible.builtin.fail:
msg: "Missing symlink target: /opt/{{ app_prefix }}/{{ app_version }}"
when: not version_dir.stat.exists
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)