Files
ansiblings/cubes/armor/ufw/deploy.py
T

13 lines
247 B
Python
Raw Normal View History

2026-07-27 13:09:00 +02:00
from pyinfra.operations import server
from pyinfra import host
ALLOW_HTTP=host.data.ALLOW_HTTP
server.shell(
commands=[
f"ufw allow ssh",
f"ufw allow http" if ALLOW_HTTP else "",
f"ufw enable",
],
_sudo=True
)