+ sample configs for nginx-proxy lxc instance

+ site_name as general option for different lxc_host and site_name (personally used for vps deployment)
+ vps deploy script
+ node version manager install
+ php version setup vars moved into separate vars-file
+ ansible.cfg that helps to use local inventory and group_vars files
+ root account playbook
This commit is contained in:
2023-09-27 10:49:04 +03:00
parent 05c680826c
commit 9bb3348cce
23 changed files with 126 additions and 31 deletions

View File

@ -1,7 +1,9 @@
mariadb__databases:
- name: '{{ lxc_host }}'
- name: '{{ site_name }}'
source: ./data/db-dumps/dump.sql
target: /tmp/dump.sql
mariadb__users:
- name: '{{ lxc_host }}'
- name: '{{ site_name }}'
host: '%'
database: '{{ lxc_host }}%'
database: '{{ site_name }}%'

14
vars/php-example.yml Normal file
View File

@ -0,0 +1,14 @@
php__version_preference: [ 'php7.4' ]
php__sury: true
php__packages: [ 'curl', 'xml', 'gd', 'zip', 'mbstring', 'mysql', 'bcmath', 'intl', 'redis' ]
# For php8.1 automatic install gd is not possible, because https://github.com/debops/debops/issues/2272 and https://github.com/oerdnj/deb.sury.org/issues/1947
# For solve that - touch file: /etc/apt/preferences.d/libgd-pin100
# with these contents:
#Package: libgd3
#Pin-Priority: 100
# and launch installation process:
#apt update
#apt install -t bullseye libgd3
#apt-cache policy libgd3
#apt install php8.1-gd
# TODO: Move that into own script

View File

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

View File

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