+ 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

@ -0,0 +1,9 @@
---
- name: Installing node version manager
hosts: [ 'debian10' ]
tasks:
- name: Install nvm
become: true
become_user: '{{ site_name }}'
shell: 'wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash'

View File

@ -4,4 +4,4 @@
hosts: [ 'debian10' ]
tasks:
- name: Set ownerships to /var/www dir
shell: 'chown -R {{ lxc_host }}:{{ lxc_host }} /var/www'
shell: 'chown -R {{ site_name }}:{{ site_name }} /var/www'