initial transfer
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user