feat(ansible): add core_net role, dynamic routes and playbook for Traefik gateway
This commit is contained in:
1 parent
155a0b59cd
commit
ed18326c6c
42 files changed
+953
-3
No files matched your search
@@ -75,13 +75,17 @@
|
||||
ansible.builtin.command: ufw allow OpenSSH
|
||||
register: ufw_ssh
|
||||
changed_when: "'added' in (ufw_ssh.stdout | lower)"
|
||||
when: ansible_virtualization_type | default('') != 'lxc'
|
||||
|
||||
- name: Проверить состояние firewall
|
||||
ansible.builtin.command: ufw status
|
||||
register: ufw_status
|
||||
changed_when: false
|
||||
when: ansible_virtualization_type | default('') != 'lxc'
|
||||
|
||||
- name: Включить firewall
|
||||
ansible.builtin.command: ufw --force enable
|
||||
when: "'Status: active' not in ufw_status.stdout"
|
||||
when:
|
||||
- ansible_virtualization_type | default('') != 'lxc'
|
||||
- "'Status: active' not in ufw_status.stdout"
|
||||
changed_when: true
|
||||
Reference in new issue
Block a user