[crans-scripts] move the scripts to /usr/local/src/scripts

certbot_on_virtu
_shirenn 2021-05-19 17:59:55 +02:00 committed by Yohann D'ANELLO
parent 86fd61878c
commit 1837a8a90d
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,6 @@
--- ---
glob_crans_scripts: glob_crans_scripts:
remote: https://gitlab.adm.crans.org/nounous/scripts.git remote: https://gitlab.adm.crans.org/nounous/scripts.git
group: _nounou
version: master version: master
dest: /usr/local/src/scripts

View File

@ -14,3 +14,8 @@ loc_thelounge:
oidentd: "\"/usr/local/lib/thelounge/.oidentd.conf\"" oidentd: "\"/usr/local/lib/thelounge/.oidentd.conf\""
reverseProxy: "true" reverseProxy: "true"
ldap_enable: "true" ldap_enable: "true"
loc_crans_scripts:
group: nounou
dests:
- /usr/scripts

View File

@ -1,17 +1,17 @@
--- ---
- name: Create scripts directory - name: Create scripts directory
file: file:
path: /usr/scripts path: "{{ crans_scripts.dest }}"
state: directory state: directory
mode: "2775" mode: "2775"
owner: root owner: root
group: _nounou group: "{{ crans_scripts.group }}"
- name: Set ACL for scripts directory - name: Set ACL for scripts directory
acl: acl:
path: /usr/scripts path: "{{ crans_scripts.dest }}"
default: true default: true
entity: _nounou entity: "{{ crans_scripts.group }}"
etype: group etype: group
permissions: rwx permissions: rwx
state: query state: query
@ -21,7 +21,7 @@
- name: Clone scripts repository - name: Clone scripts repository
git: git:
repo: "{{ crans_scripts.remote }}" repo: "{{ crans_scripts.remote }}"
dest: /usr/scripts dest: "{{ crans_scripts.dest }}"
version: "{{ crans_scripts.version }}" version: "{{ crans_scripts.version }}"
umask: "002" umask: "002"
register: git_result register: git_result