[scripts] Added role to clone scripts

certbot_on_virtu
_benjamin 2020-01-17 12:56:44 +01:00
parent 4f7d3a6a82
commit 887a3f2e95
2 changed files with 28 additions and 0 deletions

View File

@ -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:

View File

@ -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'