Compare commits

..

No commits in common. "b663cff49313634378ef8c6936e0068b58c9b55a" and "834bab3dec9dc8708aefd16ebd60a16cc8c156df" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
from pyinfra import host from pyinfra import host
from pyinfra.operations import apt, server, files, systemd from pyinfra.operations import apt, server, files, systemd
from pyinfra.facts.files import Directory
from pyinfra.facts.systemd import SystemdEnabled SUDO = True
#server.user( #server.user(
# name='Add user benpro', # name='Add user benpro',
@ -70,7 +70,7 @@ files.put(
mode='400', mode='400',
) )
if not host.get_fact(Directory, '/etc/letsencrypt/live/dns.benpro.fr'): if not host.fact.directory('/etc/letsencrypt/live/dns.benpro.fr'):
server.shell( server.shell(
name='Add certificate', name='Add certificate',
commands=[ commands=[
@ -124,7 +124,7 @@ server.shell(
commands=['setcap \'CAP_NET_BIND_SERVICE=+eip CAP_NET_RAW=+eip\' AdGuardHome/AdGuardHome'], commands=['setcap \'CAP_NET_BIND_SERVICE=+eip CAP_NET_RAW=+eip\' AdGuardHome/AdGuardHome'],
) )
if host.get_fact(SystemdEnabled)['AdGuardHome.service'] == False: if host.fact.systemd_enabled['AdGuardHome.service'] == False:
server.shell( server.shell(
name='Install Adguard systemd service file', name='Install Adguard systemd service file',
chdir=host.data.app_dir, chdir=host.data.app_dir,

Binary file not shown.

Binary file not shown.