Configuration chene/onlyoffice (manque la fin de la configuration d'onlyoffice)
parent
c129c0db21
commit
e34dfcabf8
1
all.yml
1
all.yml
|
@ -41,6 +41,7 @@
|
|||
- import_playbook: plays/nginx.yml
|
||||
- import_playbook: plays/ntp.yml
|
||||
- import_playbook: plays/nullmailer.yml
|
||||
- import_playbook: plays/onlyoffice.yml
|
||||
- import_playbook: plays/owncloud.yml
|
||||
- import_playbook: plays/postfix.yml
|
||||
- import_playbook: plays/postgresql.yml
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
interfaces:
|
||||
adm: ens18
|
||||
srv_nat: ens19
|
||||
|
||||
loc_unattended:
|
||||
reboot: true
|
||||
|
||||
loc_needrestart:
|
||||
override: []
|
1
hosts
1
hosts
|
@ -308,6 +308,7 @@ apprentis.adm.crans.org
|
|||
belenios.adm.crans.org
|
||||
boeing.adm.crans.org
|
||||
cas.adm.crans.org
|
||||
chene.adm.crans.org
|
||||
constellation-dev.adm.crans.org
|
||||
eclaircie.adm.crans.org
|
||||
eclat.adm.crans.org
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
# Deploy Onlyoffice
|
||||
- hosts: chene.adm.crans.org
|
||||
roles:
|
||||
- onlyoffice
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
- name: Install gpg
|
||||
apt:
|
||||
update_cache: true
|
||||
name:
|
||||
- gpg
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- name: Import public key of Onlyoffice repository
|
||||
apt_key:
|
||||
url: https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE
|
||||
|
||||
- name: Configure Onlyoffice repository
|
||||
template:
|
||||
src: apt/sources.list.d/onlyoffice.list.j2
|
||||
dest: /etc/apt/sources.list.d/onlyoffice.list
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Install onlyoffice
|
||||
apt:
|
||||
update_cache: true
|
||||
name:
|
||||
- rabbitmq-server
|
||||
- nginx
|
||||
- nginx-extras
|
||||
- ttf-mscorefonts-installer
|
||||
- onlyoffice-documentserver
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
- name: Indicate role in motd
|
||||
template:
|
||||
src: update-motd.d/05-service.j2
|
||||
dest: /etc/update-motd.d/05-onlyoffice
|
||||
mode: 0755
|
|
@ -0,0 +1,3 @@
|
|||
{{ ansible_header | comment }}
|
||||
|
||||
deb https://download.onlyoffice.com/repo/debian squeeze main
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/tail +14
|
||||
{{ ansible_header | comment }}
|
||||
[0m> [38;5;82mOnlyoffice[0m a été déployé sur cette machine.
|
|
@ -0,0 +1,27 @@
|
|||
{{ ansible_header | comment }}
|
||||
#
|
||||
# See the man page for details on how to write a sudoers file.
|
||||
#
|
||||
Defaults env_reset
|
||||
Defaults mail_badpass
|
||||
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
# Host alias specification
|
||||
User_Alias USERS= %_user
|
||||
User_Alias NOUNOUS= %_nounou
|
||||
|
||||
# User alias specification
|
||||
|
||||
# Cmnd alias specification
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL:ALL) ALL
|
||||
|
||||
{% if 'virtu' in group_names %}
|
||||
# Pour vérifier quels vms sont sur quels virtus
|
||||
USERS ALL=(root:ALL) NOPASSWD:/usr/sbin/qm list
|
||||
|
||||
{% endif %}
|
||||
# See sudoers(5) for more information on "@include" directives:
|
||||
|
||||
@includedir /etc/sudoers.d
|
Loading…
Reference in New Issue