From bf2cab838483a6b9e16bada889e78b86ee44e012 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Fri, 29 Dec 2023 19:07:08 +0100 Subject: [PATCH] Use Jinja2 comments --- roles/apps/templates/compose-files/ipfs.yml.j2 | 2 +- roles/apps/templates/compose-files/monerod.yml.j2 | 2 +- roles/apps/templates/compose-files/nextcloud.yml.j2 | 2 +- roles/apps/templates/compose-files/nginx.yml.j2 | 2 +- roles/apps/templates/compose-files/postfix.yml.j2 | 2 +- roles/apps/templates/compose-files/restic.yml.j2 | 2 +- roles/apps/templates/compose-files/snowflake.yml.j2 | 2 +- roles/apps/templates/compose-files/watchtower.yml.j2 | 2 +- roles/apps/templates/nextcloud/remoteip.conf.j2 | 2 +- roles/apps/templates/nginx/conf.d/ipfs.conf.j2 | 2 +- roles/apps/templates/nginx/conf.d/monerod.conf.j2 | 2 +- roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 | 2 +- roles/postgresql/templates/pg_hba.conf.j2 | 3 +-- roles/postgresql/templates/postgresql.conf.j2 | 2 +- roles/proxy/templates/caddy/Caddyfile.j2 | 2 +- roles/proxy/templates/docker/Dockerfile.j2 | 2 +- roles/proxy/templates/docker/docker-compose.yml.j2 | 2 +- roles/virt-common/templates/hosts.j2 | 2 +- roles/virt-common/templates/motd.j2 | 1 + 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/roles/apps/templates/compose-files/ipfs.yml.j2 b/roles/apps/templates/compose-files/ipfs.yml.j2 index 605dee3..a7614b8 100644 --- a/roles/apps/templates/compose-files/ipfs.yml.j2 +++ b/roles/apps/templates/compose-files/ipfs.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/monerod.yml.j2 b/roles/apps/templates/compose-files/monerod.yml.j2 index 730bfae..01196bc 100644 --- a/roles/apps/templates/compose-files/monerod.yml.j2 +++ b/roles/apps/templates/compose-files/monerod.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/nextcloud.yml.j2 b/roles/apps/templates/compose-files/nextcloud.yml.j2 index 8dbfe40..0b46631 100644 --- a/roles/apps/templates/compose-files/nextcloud.yml.j2 +++ b/roles/apps/templates/compose-files/nextcloud.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/nginx.yml.j2 b/roles/apps/templates/compose-files/nginx.yml.j2 index e283f25..fca216a 100644 --- a/roles/apps/templates/compose-files/nginx.yml.j2 +++ b/roles/apps/templates/compose-files/nginx.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/postfix.yml.j2 b/roles/apps/templates/compose-files/postfix.yml.j2 index 18e63a3..4d426d4 100644 --- a/roles/apps/templates/compose-files/postfix.yml.j2 +++ b/roles/apps/templates/compose-files/postfix.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/restic.yml.j2 b/roles/apps/templates/compose-files/restic.yml.j2 index bd76da4..3280313 100644 --- a/roles/apps/templates/compose-files/restic.yml.j2 +++ b/roles/apps/templates/compose-files/restic.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/snowflake.yml.j2 b/roles/apps/templates/compose-files/snowflake.yml.j2 index e74b2e7..2fab6cd 100644 --- a/roles/apps/templates/compose-files/snowflake.yml.j2 +++ b/roles/apps/templates/compose-files/snowflake.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/compose-files/watchtower.yml.j2 b/roles/apps/templates/compose-files/watchtower.yml.j2 index 443b755..ba18a89 100644 --- a/roles/apps/templates/compose-files/watchtower.yml.j2 +++ b/roles/apps/templates/compose-files/watchtower.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/apps/templates/nextcloud/remoteip.conf.j2 b/roles/apps/templates/nextcloud/remoteip.conf.j2 index ec06999..2b85ce1 100644 --- a/roles/apps/templates/nextcloud/remoteip.conf.j2 +++ b/roles/apps/templates/nextcloud/remoteip.conf.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja RemoteIPHeader X-Forwarded-For RemoteIPInternalProxy {{ proxy_host }} diff --git a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 index e5c858f..c6b69aa 100644 --- a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja server { listen 8080; diff --git a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 index 7a1f4f7..b416fea 100644 --- a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja server { listen 8080; diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index 0701059..be898f0 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja server { listen 8080; diff --git a/roles/postgresql/templates/pg_hba.conf.j2 b/roles/postgresql/templates/pg_hba.conf.j2 index 7c4b19a..8d0d590 100644 --- a/roles/postgresql/templates/pg_hba.conf.j2 +++ b/roles/postgresql/templates/pg_hba.conf.j2 @@ -1,6 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja - # TYPE DATABASE USER ADDRESS METHOD local all postgres peer local all all scram-sha-256 diff --git a/roles/postgresql/templates/postgresql.conf.j2 b/roles/postgresql/templates/postgresql.conf.j2 index acd4c12..2c31897 100644 --- a/roles/postgresql/templates/postgresql.conf.j2 +++ b/roles/postgresql/templates/postgresql.conf.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja # Common listen_addresses = '*' diff --git a/roles/proxy/templates/caddy/Caddyfile.j2 b/roles/proxy/templates/caddy/Caddyfile.j2 index f09ba0c..28791e0 100644 --- a/roles/proxy/templates/caddy/Caddyfile.j2 +++ b/roles/proxy/templates/caddy/Caddyfile.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja { admin off diff --git a/roles/proxy/templates/docker/Dockerfile.j2 b/roles/proxy/templates/docker/Dockerfile.j2 index 26f256b..5bf6207 100644 --- a/roles/proxy/templates/docker/Dockerfile.j2 +++ b/roles/proxy/templates/docker/Dockerfile.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja FROM caddy:{{ proxy_caddy_version }}-builder-alpine AS builder RUN xcaddy build v{{ proxy_caddy_version }} \ diff --git a/roles/proxy/templates/docker/docker-compose.yml.j2 b/roles/proxy/templates/docker/docker-compose.yml.j2 index f582604..65cec1f 100644 --- a/roles/proxy/templates/docker/docker-compose.yml.j2 +++ b/roles/proxy/templates/docker/docker-compose.yml.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja version: "3.8" diff --git a/roles/virt-common/templates/hosts.j2 b/roles/virt-common/templates/hosts.j2 index 60fb87c..10141ae 100644 --- a/roles/virt-common/templates/hosts.j2 +++ b/roles/virt-common/templates/hosts.j2 @@ -1,5 +1,5 @@ +{# code: language=ansible-jinja #} # THIS FILE IS MANAGED BY ANSIBLE -# code: language=ansible-jinja 127.0.0.1 localhost {{ ansible_host }} {{ fqdn }} {{ hostname }} diff --git a/roles/virt-common/templates/motd.j2 b/roles/virt-common/templates/motd.j2 index c0198ac..7a163d6 100644 --- a/roles/virt-common/templates/motd.j2 +++ b/roles/virt-common/templates/motd.j2 @@ -1,3 +1,4 @@ +{# code: language=ansible-jinja #} Welcome to {{ hostname }} ===========================================================================