* conditional logic for nginx www redirect

+ use lxc_host & ssh proxying for resolve connection to inner lxc host in proxmox
+ bash helper for launch playbooks
+ nginx html default template
* create databases moved into own custom variables
+ new using debops roles: yadm (dotfiles), sudo, root_account, system_users

#861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
2023-04-13 07:40:56 +03:00
parent 38509f5161
commit cb1b727da9
27 changed files with 816 additions and 39 deletions

2
vars/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!*-example.yml

View File

@ -0,0 +1,7 @@
mariadb__databases:
- name: '{{ lxc_host }}'
mariadb__users:
- name: '{{ lxc_host }}'
host: '%'
database: '{{ lxc_host }}%'

1
vars/nginx-example.yml Normal file
View File

@ -0,0 +1 @@
nginx_www_redirect: False

4
vars/sudo-example.yml Normal file
View File

@ -0,0 +1,4 @@
sudo__sudoers:
- name: '{{ lxc_host }}-nopasswd'
raw: |
{{ lxc_host }} ALL=(ALL) NOPASSWD: ALL

View File

@ -0,0 +1,9 @@
system_users__groups:
- name: '{{ lxc_host }}'
user: False
system_users__accounts:
- name: '{{ lxc_host }}'
group: '{{ lxc_host }}'
admin: True
shell: '/bin/bash'