change order so it is possible to reach nginx

This commit is contained in:
2023-03-05 18:53:55 +01:00
parent 9b50274e36
commit d83c801db1
3 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,10 @@
---
- name: Allow https port via ufw
community.general.ufw:
rule: allow
port: https
src: 192.168.69.0/24
- name: "Install Nginx via apt"
apt:
update_cache: yes
@ -62,7 +68,7 @@
proto: tcp
src: 192.168.69.0/24
- name: Copy default nginx config
- name: Copy nginx exporter config
ansible.builtin.copy:
src: prometheus-nginx-exporter
dest: /etc/default/prometheus-nginx-exporter
@ -75,10 +81,4 @@
name: prometheus-nginx-exporter
state: restarted
enabled: yes
- name: Allow https port via ufw
community.general.ufw:
rule: allow
port: https
src: 192.168.69.0/24
...