Use maximal acceptable ansible version vor correctly worked debops roles (with legacy buildin.include functions)

Set to currently newest version of debops
Use newest python version
Native way for create pma nginx config symlink
Correct disable local nginx host - appropriate dict item name field for preventing errors
This commit is contained in:
2025-11-06 13:05:02 +03:00
parent 2a1dc74039
commit f5b9100bc3
6 changed files with 15 additions and 12 deletions

View File

@ -32,6 +32,7 @@
# TODO: Replace [::]:443 to 443 and [::]:80 to 80 in site nginx config
nginx_server_localhost:
enabled: False
name: [ 'localhost', '127.0.0.1', '[::1]' ]
nginx_listen_port: [ '80' ]
nginx_listen_ssl_port: [ '443' ]
nginx__servers:

View File

@ -52,10 +52,11 @@
shell: |-
echo "pma:$(openssl passwd -apr1 {{ lookup("password", secret + "/basic/" + site_name + "/pma " + "length=30")}} )" > /etc/nginx/passwords.d/pma.passwords
- name: 'Turning on pma web site nginx config'
shell: |-
cd /etc/nginx/sites-enabled
ln -s ../sites-available/pma.conf ./
- name: Ensure pma nginx site is enabled (via symlink)
ansible.builtin.file:
src: /etc/nginx/sites-available/pma.conf
dest: /etc/nginx/sites-enabled/pma.conf
state: link
- name: 'Restarting nginx'
shell: |-