You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the awesome role.
Quick question though.
Description
To be able to host a website, shouldn't the role take care of setting up the firewall?
Or maybe add the necessary piece of code in the section "Example of playbook"?
How to reproduce the issue
Vagrant file
Vagrant.configure("2")do |config|
config.vm.box="generic/rocky8"config.vm.synced_folder".","/vagrant",disabled: true# Use Vagrant's insecure key for SSH.config.ssh.insert_key=falseconfig.ssh.private_key_path="~/.vagrant.d/insecure_private_key"config.vm.hostname="dokuserver"config.vm.network"private_network",ip: "192.168.33.10"config.vm.network"forwarded_port",guest: 80,host: 8080config.vm.provider"virtualbox"do |vb|
vb.memory="512"vb.cpus=1vb.linked_clone=trueendend
Add this to the ansible role or to the minimal playbook
---
- name: Ensure http service is enabled in firewallfirewalld:
service: httppermanent: yesstate: enabled
- name: Reload firewalld # probably should be a handlersystemd:
name: firewalldstate: restarted
The text was updated successfully, but these errors were encountered:
Since firewall setup is different in almost every situation, I prefer to manage firewalls in a different role, or on the playbook level. See also my geerlingguy.firewall role for an IPtables-based approach.
Hi,
Thanks for the awesome role.
Quick question though.
Description
To be able to host a website, shouldn't the role take care of setting up the firewall?
Or maybe add the necessary piece of code in the section "Example of playbook"?
How to reproduce the issue
Vagrant file
setup_server.yml
playbookvars/main.yml
Issue
Leads to
this site can't be reached
in browser.Solved by login into the VM and setting-up the firewall:
Suggested solution
Add this to the ansible role or to the minimal playbook
The text was updated successfully, but these errors were encountered: