- name: Create sentinel directory file: state: directory path: "{{ item }}/sentinel" with_items: - /usr/local/bin - /etc vars: ansible_become: yes ansible_become_method: sudo ansible_become_password: "{{ sudo_password }}" when: script is not defined - name: Deploy stats script import_tasks: stats.yml when: script is not defined or script == "stats" - name: Configure blacklist script import_tasks: blacklist.yml when: script is not defined or script == "blacklist" - name: Configure supervision script import_tasks: supervision.yml when: script is not defined or script == "supervision"