---
- name: Get lockfile status
  stat:
    path: "{{ keitaro.path }}/install.lock"
  register: lockfile

- name: Install keitaro
  include: install.yml
  when: not lockfile.stat.exists


---
- name: Get lockfile status
  stat:
    path: "{{ keitaro.path }}/var/install.lock"
  register: lockfile

- name: Install keitaro
  include: install.yml
  when: not lockfile.stat.exists


Fix path for searching lock file
Fix path for searching lock file
