summaryrefslogtreecommitdiffstats
path: root/roles/ands_monitor/tasks/main.yml
blob: ac70d28985cc7d60d1748f498d129a7048a56920 (plain)
1
2
3
4
5
6
7
8
9
- name: Create scripts directory
  file: path="{{ ands_script_path }}" state=directory

- name: "Deploy scripts"
  template: src="{{ item | quote }}" dest="{{ ands_script_path }}/{{ script_name }}" owner=root group=root mode=0755
  vars:
    script_name: "{{ item | basename | regex_replace('\\.j2','') }}"
  with_fileglob:
    - "{{ role_path }}/templates/scripts/*.j2"