fixes - temporary, now incomplete!

podman
Yves G 2023-07-30 19:31:56 +02:00
parent 3f8dd657f3
commit 87936b77fd
183 changed files with 384 additions and 320 deletions

19
.editorconfig Normal file
View File

@ -0,0 +1,19 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[Makefile]
indent_style = tab
tab_width = 2
[*.md]
trim_trailing_whitespace = false

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
target

View File

@ -1,6 +1,6 @@
///// /////
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
///// /////
@ -132,6 +132,6 @@ $ ansible-playbook -i production site.yml
[literal.small] [literal.small]
..... .....
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
..... .....

View File

@ -1,6 +1,6 @@
///// /////
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
///// /////
@ -538,6 +538,6 @@ I decided to do a clean import, especially since I configured Dovecot in a way
[literal.small] [literal.small]
..... .....
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
..... .....

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: stop some services - name: stop some services

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: stop again services that may got started by handlers - name: stop again services that may got started by handlers

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
[Unit] [Unit]

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart dehydrated.service - name: restart dehydrated.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
#CA="https://acme-staging.api.letsencrypt.org/directory" #CA="https://acme-staging.api.letsencrypt.org/directory"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
RSH=/usr/local/bin/{{DMZ}} RSH=/usr/local/bin/{{DMZ}}

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: ensure /srv/acme exists - name: ensure /srv/acme exists

View File

@ -1,9 +1,9 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# mandatory parameters: pkg_name, pre_cmd, aur_user # mandatory parameters: pkg_name, pre_cmd, aur_name, aur_home
- name: AUR → {{pkg_name}} → read current version - name: AUR → {{pkg_name}} → read current version
shell: | shell: |
@ -14,7 +14,7 @@
- name: AUR → {{pkg_name}} → get metadata from AurJson - name: AUR → {{pkg_name}} → get metadata from AurJson
uri: uri:
url: https://aur.archlinux.org/rpc/?v=5&type=info&arg={{pkg_name | mandatory}} url: https://aur.archlinux.org/rpc/?v=5&type=info&arg={{pkg_name | mandatory}}
connection: local delegate_to: localhost
register: aurjson register: aurjson
changed_when: false changed_when: false
@ -22,7 +22,7 @@
get_url: get_url:
url: https://aur.archlinux.org{{aurjson.json.results[0].URLPath}} url: https://aur.archlinux.org{{aurjson.json.results[0].URLPath}}
dest: /tmp/ dest: /tmp/
connection: local delegate_to: localhost
when: when:
- (aurjson.json.results[0].Version != (pacmanQi.stdout | default())) - (aurjson.json.results[0].Version != (pacmanQi.stdout | default()))
register: aur_recipe register: aur_recipe
@ -45,6 +45,8 @@
args: args:
chdir: /var/tmp/{{aurjson.json.results[0].PackageBase}} chdir: /var/tmp/{{aurjson.json.results[0].PackageBase}}
when: pre_cmd when: pre_cmd
environment:
HOME: "{{aur_home}}"
register: debugCustom register: debugCustom
- name: AUR → {{pkg_name}} → see custom pre-processing commands result - name: AUR → {{pkg_name}} → see custom pre-processing commands result
@ -86,6 +88,8 @@
- (pacman_output.stdout is defined) - (pacman_output.stdout is defined)
- (pacman_output.stdout.find('there is nothing to do') == -1) - (pacman_output.stdout.find('there is nothing to do') == -1)
environment:
HOME: "{{aur_home}}"
when: when:
- (realVersion.stdout != (pacmanQi.stdout | default())) - (realVersion.stdout != (pacmanQi.stdout | default()))
@ -97,7 +101,7 @@
changed_when: false changed_when: false
become: true become: true
become_user: "{{aur_user}}" become_user: "{{aur_name}}"
when: when:
- (aurjson.json.results[0].Version != (pacmanQi.stdout | default())) - (aurjson.json.results[0].Version != (pacmanQi.stdout | default()))
@ -106,6 +110,6 @@
file: file:
path: '{{aur_recipe.dest}}' path: '{{aur_recipe.dest}}'
state: absent state: absent
connection: local delegate_to: localhost
become: false become: false
changed_when: false changed_when: false

View File

@ -1,28 +1,61 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# mandatory parameters: # mandatory parameters:
# - pkg_names (json-encoded list) # - pkg_names (json-encoded list)
# - aur_user # - aur_user
- name: AUR → base-devel needed while building - name: AUR → read (or create) requested HOME while running AUR tasks
become: false shell: |
command: | case "$aur_requested_home" in
pacman -S --noconfirm --noprogressbar --asdeps --needed base-devel '') printf '%s' "$HOME" ;;
'!mktemp') sudo -u "$aur_user_name" mktemp -d /tmp/AUR-TEMP-HOME-XXXX ;;
*) printf '%s' "$aur_requested_home" ;;
esac
environment:
aur_requested_home: "{{(aur_user is mapping) | ternary(aur_user.home, '')}}"
aur_user_name: "{{(aur_user is mapping) | ternary(aur_user.name, aur_user)}}"
register: requestedHome
changed_when: false changed_when: false
- name: AUR → proceed with installation - name: AUR → run AUR tasks
block: block:
- name: AUR → installation
include_tasks: install.yml - name: AUR → see effective HOME
vars: debug:
pkg_name: "{{(item is mapping) | ternary(item.pkg, item)}}" var: requestedHome
pre_cmd: "{{(item is mapping) | ternary(item.pre, '')}}" changed_when: false
with_items: "{{packages}}"
always: - name: AUR → base-devel needed while building
- name: AUR → remove base-devel and dependencies become: false
shell: | command: |
pacman -Rns --noconfirm --noprogressbar $(pacman -Qtdqg base-devel) || true pacman -S --noconfirm --noprogressbar --asdeps --needed base-devel
changed_when: false
- name: AUR → proceed with installation
block:
- name: AUR → installation
include_tasks: install.yml
vars:
aur_name: "{{(aur_user is mapping) | ternary(aur_user.name, aur_user)}}"
aur_home: "{{requestedHome.stdout}}"
pkg_name: "{{(item is mapping) | ternary(item.pkg, item)}}"
pre_cmd: "{{(item is mapping) | ternary(item.pre, '')}}"
with_items: "{{packages}}"
always:
- name: AUR → remove base-devel and dependencies
shell: |
pacman -Rns --noconfirm --noprogressbar base-devel || true
changed_when: false
always:
- name: AUR → remove temporary HOME
file:
path: "{{requestedHome.stdout}}"
state: absent
when:
- (aur_user is mapping)
- (aur_user.home == '!mktemp')
changed_when: false changed_when: false

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart ddclient@fdns.service - name: restart ddclient@fdns.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: initialize the ddclient software - name: initialize the ddclient software

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart ddclient@henet.service - name: restart ddclient@henet.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: initialize the ddclient software - name: initialize the ddclient software

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: make sure the path to dotclear exists - name: make sure the path to dotclear exists
@ -13,7 +13,7 @@
get_url: get_url:
url: 'http://download.dotclear.org/latest.tar.gz' url: 'http://download.dotclear.org/latest.tar.gz'
dest: /tmp/ dest: /tmp/
connection: local delegate_to: localhost
register: targz register: targz
changed_when: false changed_when: false

View File

@ -1,6 +1,6 @@
<?php <?php
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
if (!defined('DC_RC_PATH')) { return; } if (!defined('DC_RC_PATH')) { return; }

View File

@ -1,6 +1,6 @@
<?php <?php
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# https://fr.dotclear.org/documentation/2.0/resources/authentication # https://fr.dotclear.org/documentation/2.0/resources/authentication

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart spamassassin-update.timer - name: restart spamassassin-update.timer

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###
@ -498,10 +498,9 @@
marker: ' # {mark} LMTP transport' marker: ' # {mark} LMTP transport'
block: | block: |
lmtp_transport: lmtp_transport:
driver = smtp driver = lmtp
protocol = lmtp socket = /run/shared_sockets/lmtp
rcpt_include_affixes timeout = 1m
port = 24
insertbefore: '^# This transport is used' insertbefore: '^# This transport is used'
notify: notify:
- restart exim.service - restart exim.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart haproxy.service - name: restart haproxy.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
global global

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: configure nginx for Gitea - name: configure nginx for Gitea

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: create a directory for the Motion web page - name: create a directory for the Motion web page

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart movim.service - name: restart movim.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: configure Nginx for Nextcloud - name: configure Nginx for Nextcloud

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# Nextcloud BUG # Nextcloud BUG

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html # https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html

View File

@ -1,10 +1,10 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: create tmpfiles - name: create tmpfiles
command: systemd-tmpfiles --create command: systemd-tmpfiles --create /etc/tmpfiles.d/run_http.conf
- name: restart nginx.service - name: restart nginx.service
systemd: systemd:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###
@ -10,13 +10,13 @@
msg: nginx msg: nginx
### ⇐ UPSTREAM BEGIN ### ### ⇐ UPSTREAM BEGIN ###
- name: install software #- name: install software
package: # package:
name: "{{item}}" # name: "{{item}}"
state: present # state: present
with_items: # with_items:
# - nginx-mainline # nginx-mainline must now be built from official PKGBUILD :-( # - nginx-mainline # nginx-mainline must now be built from official PKGBUILD :-(
- php-fpm # - php-fpm
### UPSTREAM END ⇒ ### ### UPSTREAM END ⇒ ###
- name: merge upstream - name: merge upstream
@ -226,7 +226,7 @@
- user - user
- group - group
- 'listen.group' - 'listen.group'
- name: set the PID file path for php-fpm - name: set the PID file path for php-fpm
lineinfile: lineinfile:
path: /etc/php/php-fpm.conf path: /etc/php/php-fpm.conf

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
location / { location / {

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
client_max_body_size {{http_max_upload}}; client_max_body_size {{http_max_upload}};

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
location ~ (?i)(?<!{{http_pfx_dotclear}}/)admin|(?<!{{http_pfx_lam}}/templates/)login|(?<!{{http_pfx_dotclear}}/admin/)auth(?!or) { location ~ (?i)(?<!{{http_pfx_dotclear}}/)admin|(?<!{{http_pfx_lam}}/templates/)login|(?<!{{http_pfx_dotclear}}/admin/)auth(?!or) {

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# http://wiki.nginx.org/Pitfalls#Passing_Uncontrolled_Requests_to_PHP # http://wiki.nginx.org/Pitfalls#Passing_Uncontrolled_Requests_to_PHP

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# function /php...(doc_root /... prefix /... script /... pathinfo) { # function /php...(doc_root /... prefix /... script /... pathinfo) {

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart prosody.service - name: restart prosody.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
<?php <?php
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
/* /*

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart nginx.service - name: restart nginx.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: PostgreSQL user for dotClear - name: PostgreSQL user for dotClear

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart dovecot.service - name: restart dovecot.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# This file is opened as root, so it should be owned by root and mode 0600. # This file is opened as root, so it should be owned by root and mode 0600.

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
## Dovecot configuration file (/usr/share/doc/dovecot/example-config) ## Dovecot configuration file (/usr/share/doc/dovecot/example-config)
@ -51,15 +51,15 @@ service imap-login {
} }
} }
service lmtp { service lmtp {
#unix_listener /run/shared_sockets/lmtp { unix_listener /run/shared_sockets/lmtp {
# mode = 0666 mode = 0666
#} }
# Create inet listener only if you can't use the above UNIX socket # Create inet listener only if you can't use the above UNIX socket
# https://yalis.fr/git/yves/home-server/issues/6 # https://yalis.fr/git/yves/home-server/issues/6
inet_listener lmtp { #inet_listener lmtp {
address = {{SafeZone_IP}} # address = {{SafeZone_IP}}
port = 24 # port = 24
} #}
} }
service imap { service imap {
} }
@ -75,8 +75,8 @@ service auth-worker {
# # For example: mode=0660, group=vmail and global mail_access_groups=vmail # # For example: mode=0660, group=vmail and global mail_access_groups=vmail
# unix_listener dict { # unix_listener dict {
# #mode = 0600 # #mode = 0600
# #user = # #user =
# #group = # #group =
# } # }
#} #}

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: install etckeeper - name: install etckeeper

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: store /etc changes - name: store /etc changes

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: switch Git to run - name: switch Git to run

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: switch Git to master - name: switch Git to master

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
[Exec] [Exec]

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
[Unit] [Unit]

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###
@ -40,10 +40,10 @@
shell: > shell: >
pacstrap -c -d {{front_dir}} pacstrap -c -d {{front_dir}}
$( $(
pacman -Qg base LANG=C pacman -Si base
| grep -vE | sed -nr 's/^Depends[^:]*: *//;t ok;b;: ok;s/ +/\n/g;p;q'
' (bzip2|dhcpcd|gzip|licenses|linux|lvm2|mdadm|pciutils|reiserfsprogs|systemd-sysvcompat|texinfo|usbutils|xfsprogs)$' | grep -vxE
| cut -d' ' -f2 'bzip2|dhcpcd|gzip|licenses|linux|lvm2|mdadm|pciutils|reiserfsprogs|systemd-sysvcompat|texinfo|usbutils|xfsprogs'
) )
busybox openssh python etckeeper busybox openssh python etckeeper
args: args:
@ -55,6 +55,8 @@
arch-chroot {{front_dir}} /usr/bin/busybox --install arch-chroot {{front_dir}} /usr/bin/busybox --install
args: args:
creates: "{{front_dir}}/usr/bin/ash" creates: "{{front_dir}}/usr/bin/ash"
when:
- (arch.changed)
- name: … but not for some binaries - name: … but not for some binaries
file: file:

View File

@ -2,7 +2,7 @@
# $1: bash script; $2…: arguments (bash -c "…script…" 'bash' …arguments…) # $1: bash script; $2…: arguments (bash -c "…script…" 'bash' …arguments…)
# #
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
cmd="$1"; shift cmd="$1"; shift

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
front_dir: /var/lib/machines/{{DMZ}} front_dir: /var/lib/machines/{{DMZ}}

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart DMZ - name: restart DMZ

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: start systemd-nspawn@{{DMZ}}.service - name: start systemd-nspawn@{{DMZ}}.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
- name: restart gitea.service - name: restart gitea.service

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
dependencies: dependencies:

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
### UPSTREAM BEGIN ⇒ ### ### UPSTREAM BEGIN ⇒ ###
@ -44,7 +44,7 @@
- name: create Gitea configuration file - name: create Gitea configuration file
file: file:
path: /etc/gitea/app.ini path: /etc/gitea/app.ini
state: file state: touch
- name: make sure the Gitea user owns its work-directories - name: make sure the Gitea user owns its work-directories
file: file:

View File

@ -1,5 +1,5 @@
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
if [ ${0:0:1} == / ]; then if [ ${0:0:1} == / ]; then

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
. "$(dirname "$0")/.etc_checkroot.inc" . "$(dirname "$0")/.etc_checkroot.inc"

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
. "$(dirname "$0")/.etc_checkroot.inc" . "$(dirname "$0")/.etc_checkroot.inc"

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
. "$(dirname "$0")/.etc_checkroot.inc" . "$(dirname "$0")/.etc_checkroot.inc"

View File

@ -1,6 +1,6 @@
--- ---
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
# WARNING: This file may be used inside a mounted chroot. # WARNING: This file may be used inside a mounted chroot.

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# The home-server project produces a multi-purpose setup using Ansible. # The home-server project produces a multi-purpose setup using Ansible.
# Copyright © 2018 Y. Gablin, under the GPL-3.0-or-later license. # Copyright © 20182023 Y. Gablin, under the GPL-3.0-or-later license.
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing. # Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
. "$(dirname "$0")/.etc_checkroot.inc" . "$(dirname "$0")/.etc_checkroot.inc"

Some files were not shown because too many files have changed in this diff Show More