From a287e741842f67d0a04c48276221d85f16079d55 Mon Sep 17 00:00:00 2001 From: Opal <847966@proton.me> Date: Sat, 15 Oct 2022 15:27:41 -0700 Subject: merging code between old emacsconf repo, to sachac's emacsconf repo --- wiki/tasks/docker.yml | 45 ---------------------------------------- wiki/tasks/main.yml | 57 --------------------------------------------------- 2 files changed, 102 deletions(-) delete mode 100644 wiki/tasks/docker.yml delete mode 100644 wiki/tasks/main.yml (limited to 'wiki/tasks') diff --git a/wiki/tasks/docker.yml b/wiki/tasks/docker.yml deleted file mode 100644 index a5d73e2..0000000 --- a/wiki/tasks/docker.yml +++ /dev/null @@ -1,45 +0,0 @@ -- name: Set up docker stuff if on docker - apt: - pkg: - - lighttpd - - supervisor -- name: Create the anon user - user: - name: anon -- name: Set up Ikiwiki setup - template: - src: emacsconf.setup - dest: "{{ ikiwiki_path }}/emacsconf.setup" - owner: www-data - group: www-data -- name: Set up the ikiwiki directories - file: - dest: /var/www/html - state: directory - owner: www-data - group: www-data -- name: Clone the bare git repo - git: - bare: true - repo: "{{ ikiwiki_git_source_mount }}" - dest: "{{ ikiwiki_bare_git_dir }}" - version: "{{ ikiwiki_git_branch }}" -- name: Change owner - file: - dest: "{{ ikiwiki_bare_git_dir }}" - recurse: true - owner: www-data - group: www-data -- name: Clone the working git repo - git: - repo: "{{ ikiwiki_bare_git_dir }}" - dest: "{{ ikiwiki_src_dir }}" - version: "{{ ikiwiki_git_branch }}" -- name: Copy supervisor config - template: - src: supervisord.conf - dest: /etc/supervisor/conf.d/ikiwiki.conf -- name: Start lighttpd - service: - name: lighttpd - state: started diff --git a/wiki/tasks/main.yml b/wiki/tasks/main.yml deleted file mode 100644 index 0fa2336..0000000 --- a/wiki/tasks/main.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -- name: Set up packages - ansible.builtin.apt: - update_cache: true - pkg: - - ikiwiki - - git - - openssh-server - - libimage-magick-perl - - libtext-csv-perl - - libxml-writer-perl - - imagemagick - - nginx - - wget - state: present -- name: Create ikiwiki group - group: - name: ikiwiki - state: present -- name: Create ikiwiki user - user: - name: ikiwiki - group: ikiwiki - state: present -- debug: - var: docker -- name: Set up or update repositories - ansible.builtin.git: - repo: git://git.emacsconf.org/emacsconf-wiki - dest: "{{ ikiwiki_src_dir }}" - when: not docker|d(false) -- name: Template the config - ansible.builtin.template: - src: emacsconf.setup - dest: "{{ ikiwiki_path }}/emacsconf.setup" - owner: ikiwiki -- name: Copy Ikiwiki plugins - template: - src: "{{ item }}" - dest: "{{ ikiwiki_plugin_path }}" - loop: - - copyright.pm - - htmlscrubber.pm - - license.pm -- include: docker.yml - when: docker is true -- name: Chown all the files to ikiwiki - file: - dest: "{{ ikiwiki_path }}" - owner: ikiwiki - group: ikiwiki - recurse: true -- name: Regenerate all the files - shell: ikiwiki --setup "{{ ikiwiki_path }}/emacsconf.setup" --rebuild --wrappers - register: output -- debug: - var: output -- cgit v1.2.3