Browse Source

website: add website_repository

keep-around/4043b932ed51052d5087512d735f191a38cc606d
Loïc Dachary 3 months ago
parent
commit
4043b932ed
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 5
      docs/release-notes.rst
  2. 12
      docs/services/website.rst
  3. 2
      playbooks/website/roles/website/defaults/main.yml
  4. 4
      playbooks/website/roles/website/tasks/website.yml

5
docs/release-notes.rst

@ -4,6 +4,11 @@ Release Notes
2.1.15
------
website
~~~~~~~
* The ansible variable `website_repository` can be used to specify a repository other than `the default <https://lab.enough.community/main/website>`__.
certificates
~~~~~~~~~~~~

12
docs/services/website.rst

@ -1,4 +1,14 @@
Hugo
====
`Hugo <https://gohugo.io/>`__ is available at `www.example.com`.
`Hugo <https://gohugo.io/>`__ is available at `www.example.com` and is documented in `this file
<https://lab.enough.community/main/infrastructure/blob/master/playbooks/website/roles/website/defaults/main.yml>`__
and can be modified in the
`~/.enough/example.com/inventory/group_vars/website-service-group.yml`
file.
The service is created on the host specified by the `--host` argument:
.. code::
$ enough --domain example.com service create --host website-host website

2
playbooks/website/roles/website/defaults/main.yml

@ -0,0 +1,2 @@
---
website_repository: "https://lab.enough.community/main/website"

4
playbooks/website/roles/website/tasks/website.yml

@ -9,9 +9,9 @@
path: /srv
owner: debian
- name: git clone https://lab.{{ production_domain }}/main/website
- name: "git clone {{ website_repository }}"
git:
repo: "https://lab.{{ production_domain }}/main/website"
repo: "{{ website_repository }}"
force: yes
dest: /srv/website
become: False

Loading…
Cancel
Save