[scripts] Added role to clone scripts
parent
4f7d3a6a82
commit
887a3f2e95
5
base.yml
5
base.yml
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- 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'
|
Loading…
Reference in New Issue