diff --git a/codimd.yml b/codimd.yml deleted file mode 100644 index 14fd3be..0000000 --- a/codimd.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# Install CodiMD on corresponding containers -- hosts: codimd.adm.auro.re - roles: - - debian-backports - - codimd - diff --git a/matrix-riot-web.yml b/matrix-riot-web.yml deleted file mode 100644 index a968820..0000000 --- a/matrix-riot-web.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Install Riot web on corresponding containers -- hosts: riot.adm.auro.re - roles: - - matrix-riot-web - diff --git a/roles/codimd/README.md b/roles/codimd/README.md deleted file mode 100644 index 68e69fd..0000000 --- a/roles/codimd/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Rôle CodiMD - -Ce rôle Ansible permet d'installer CodiMD. - -Il doit être exécuté en tant que super-utilisateur -(option `-b` pour `--become`). - diff --git a/roles/codimd/handlers/main.yml b/roles/codimd/handlers/main.yml deleted file mode 100644 index 4c2230e..0000000 --- a/roles/codimd/handlers/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# Reload systemd daemons when a service file changes -- name: Reload systemd daemons - command: systemctl daemon-reload - diff --git a/roles/codimd/tasks/0_apt_dependencies.yml b/roles/codimd/tasks/0_apt_dependencies.yml deleted file mode 100644 index 8089199..0000000 --- a/roles/codimd/tasks/0_apt_dependencies.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# For NodeJS package -- name: Configure NodeJS pin - when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch' - template: - src: 'apt/nodejs' - dest: '/etc/apt/preferences.d/nodejs' - mode: 0644 - -# Install CodiMD dependencies -- name: Install required packages - apt: - name: "{{ item }}" - state: present - update_cache: yes - with_items: - - git - - nodejs - - npm - diff --git a/roles/codimd/tasks/1_user_group.yml b/roles/codimd/tasks/1_user_group.yml deleted file mode 100644 index 7e257b3..0000000 --- a/roles/codimd/tasks/1_user_group.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -# Security #1 -- name: Create CodiMD system group - group: - name: codimd - system: yes - state: present - -# Security #2 -- name: Create CodiMD user - user: - name: codimd - group: codimd - home: '/var/local/codimd' - comment: CodiMD - system: yes - state: present - -# Security #3 -- name: Secure CodiMD home directory - file: - path: '/var/local/codimd' - state: directory - owner: codimd - group: codimd - mode: 0750 - diff --git a/roles/codimd/tasks/main.yml b/roles/codimd/tasks/main.yml deleted file mode 100644 index f0913da..0000000 --- a/roles/codimd/tasks/main.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# Install APT dependencies -- include_tasks: 0_apt_dependencies.yml - -# Create CodiMD user and group -- include_tasks: 1_user_group.yml - -# Download CodiMD -- name: Clone CodiMD project - git: - repo: "https://github.com/hackmdio/codimd.git" - dest: /var/local/codimd/codimd - version: "1.2.1" - become: true - become_user: codimd - -# TODO Configurer et créer un service -# https://github.com/hackmdio/codimd#instructions -# https://github.com/hackmdio/codimd#configuration-files - diff --git a/roles/codimd/templates/apt/nodejs b/roles/codimd/templates/apt/nodejs deleted file mode 100644 index cd89d4c..0000000 --- a/roles/codimd/templates/apt/nodejs +++ /dev/null @@ -1,7 +0,0 @@ -# /etc/apt/preferences.d/dokuwiki -# Deployed with Aurore Ansible ! - -Package: node* libuv1* -Pin: release a=stretch-backports -Pin-Priority: 600 - diff --git a/roles/codimd/templates/systemd/codimd.service.j2 b/roles/codimd/templates/systemd/codimd.service.j2 deleted file mode 100644 index a34bf4a..0000000 --- a/roles/codimd/templates/systemd/codimd.service.j2 +++ /dev/null @@ -1,19 +0,0 @@ -# /etc/systemd/system/etherpad-lite.service -# Deployed with Aurore Ansible ! - -[Unit] -Description=Etherpad-lite, the collaborative editor. -After=syslog.target network-online.target mysql.service postgresql.service -Conflicts=shutdown.target - -[Service] -Type=simple -User=etherpad -Group=etherpad -WorkingDirectory=/var/local/etherpad/etherpad-lite -ExecStart=/usr/bin/nodejs /var/local/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js -Restart=always - -[Install] -WantedBy=multi-user.target - diff --git a/roles/matrix-riot-web/README.md b/roles/matrix-riot-web/README.md deleted file mode 100644 index 7bf9726..0000000 --- a/roles/matrix-riot-web/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Rôle Riot Web - -Ce rôle Ansible permet d'installer le client Web Riot. - -Il doit être exécuté en tant que super-utilisateur -(option `-b` pour `--become`). - diff --git a/roles/matrix-riot-web/tasks/main.yml b/roles/matrix-riot-web/tasks/main.yml deleted file mode 100644 index f9fcc67..0000000 --- a/roles/matrix-riot-web/tasks/main.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -# Based on https://github.com/vector-im/riot-web#desktop-installation-for-debian-stretch - -- name: Make APT support HTTPS protocol - apt: - name: apt-transport-https - update_cache: yes - -- name: Configure Riot repository - apt_repository: - repo: "deb https://riot.im/packages/debian/ {{ ansible_distribution_release }} main" - -- name: Configure Riot repository key - apt_key: - id: E019645248E8F4A1 - url: https://riot.im/packages/debian/repo-key.asc - -- name: Install Riot web - apt: - name: riot-web - update_cache: yes - -# TODO host web page