Compare commits

..

10 commits

Author SHA1 Message Date
Benoit
b663cff493 Update 2025-02-15 00:36:02 +09:00
Benoit S
fb79c80830 Update config 2023-06-11 07:58:13 +09:00
Benoit S
ce6f46b961 Update cloudflare config 2023-03-26 08:41:44 +09:00
Benoit S
a559bc22d3 Update config 2023-03-26 08:36:44 +09:00
Benoit S
9bf2d5d8db Update conf 2023-03-09 09:17:57 +09:00
Benoit S
b133b11bff Update config 2022-12-10 11:27:42 +09:00
Benoit S
67f79aa178 Update config file 2022-11-11 20:55:42 +09:00
Benoit S
c855285527 Update config file 2022-10-13 21:02:22 +09:00
Benoit S
f4a6458c73 Update config file 2022-09-08 17:33:14 +09:00
Benoit S
0fed537544 Update config file 2022-08-02 21:55:34 +09:00
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
SUDO = True from pyinfra.facts.systemd import SystemdEnabled
#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.fact.directory('/etc/letsencrypt/live/dns.benpro.fr'): if not host.get_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.fact.systemd_enabled['AdGuardHome.service'] == False: if host.get_fact(SystemdEnabled)['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.