ansible/roles/crans-scripts/tasks/main.yml

30 lines
567 B
YAML

---
- name: Create scripts directory
file:
path: /usr/scripts
state: directory
mode: "2775"
owner: root
group: nounou
- name: Set ACL for scripts directory
acl:
path: /usr/scripts
default: true
entity: nounou
etype: group
permissions: rwx
state: query
when: not ansible_check_mode
- name: Clone scripts repository
git:
repo: "{{ crans_scripts.remote }}"
dest: /usr/scripts
version: "{{ crans_scripts.version }}"
umask: "002"
environment:
GIT_SSL_NO_VERIFY: 1
when: not ansible_check_mode