update tailscale task
This commit is contained in:
parent
d0808a45ad
commit
e76c7a5d55
2 changed files with 10 additions and 7 deletions
0
tasks/__init__.py
Normal file
0
tasks/__init__.py
Normal file
|
@ -1,10 +1,13 @@
|
||||||
|
from pyinfra import host
|
||||||
from pyinfra.api import deploy
|
from pyinfra.api import deploy
|
||||||
|
from pyinfra.facts.files import File
|
||||||
from pyinfra.operations import apt
|
from pyinfra.operations import apt
|
||||||
from pyinfra.operations import server
|
from pyinfra.operations import server
|
||||||
|
|
||||||
|
|
||||||
@deploy
|
@deploy
|
||||||
def deploy_tailscale():
|
def deploy_tailscale():
|
||||||
|
if not host.get_fact(File, "/usr/share/keyrings/tailscale-archive-keyring.gpg"):
|
||||||
server.shell(
|
server.shell(
|
||||||
name="Install tailscale signing key",
|
name="Install tailscale signing key",
|
||||||
commands=[
|
commands=[
|
||||||
|
|
Loading…
Reference in a new issue