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:
@ -1 +1 @@
|
||||
3.11.4
|
||||
3.13.2
|
||||
9
hosts
9
hosts
@ -9,16 +9,17 @@
|
||||
# - You can enter hostnames or ip addresses
|
||||
# - A hostname/ip can be a member of multiple groups
|
||||
|
||||
# Check ansible facts: ansible all -m setup -a 'filter=ansible_domain' -e lxc_host=IP_ADDRESS
|
||||
[lxc_templates]
|
||||
#debian10 ansible_host=debian10.dedic106-dhcp.dimti.ru ansible_user=root
|
||||
#debian10 ansible_host='{{ lxc_host }}' ansible_port=22230
|
||||
debian10 ansible_host='{{ lxc_host }}'
|
||||
|
||||
[anygroup]
|
||||
server1 ansible_host=192.168.0.1
|
||||
server2 ansible_host=192.168.0.2
|
||||
server3 ansible_host=192.168.0.3
|
||||
server4 ansible_host=192.168.0.4
|
||||
#server1 ansible_host=192.168.0.1
|
||||
#server2 ansible_host=192.168.0.2
|
||||
#server3 ansible_host=192.168.0.3
|
||||
#server4 ansible_host=192.168.0.4
|
||||
|
||||
# Add your own groups here. Hosts can be added to multiple groups like so:
|
||||
# [anothergroup]
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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: |-
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
ansible==2.10.7
|
||||
ansible==8.7.0
|
||||
netaddr==1.3.0
|
||||
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
# https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html
|
||||
collections:
|
||||
- name: nginxinc.nginx_core
|
||||
version: 0.8.0
|
||||
- name: debops.debops
|
||||
version: 2.3.0
|
||||
version: 3.2.5
|
||||
|
||||
Reference in New Issue
Block a user