Skip to content
Snippets Groups Projects
Commit 887a3f2e authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[scripts] Added role to clone scripts

parent 4f7d3a6a
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,11 @@
roles:
- ldap-client
# Install scripts on all servers
- hosts: server
roles:
- scripts
# Document servers
- hosts: voyager.adm.crans.org # test only on voyager for now
vars:
......
---
- 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: yes
entity: nounou
etype: group
permissions: rwx
state: query
- name: Clone scripts repository
git:
repo: 'http://gitlab.adm.crans.org/nounous/scripts.git'
dest: /usr/scripts
umask: '002'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment