diff --git a/base.yml b/base.yml index 7df067dd..baa645e6 100644 --- a/base.yml +++ b/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: diff --git a/roles/scripts/tasks/main.yml b/roles/scripts/tasks/main.yml new file mode 100644 index 00000000..d9689b53 --- /dev/null +++ b/roles/scripts/tasks/main.yml @@ -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'