From 2cd7b8b2e80527d055775e92f58f74e4a509a06c Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sat, 23 Dec 2023 17:52:27 +0100 Subject: [PATCH] Add managed by ansible header to all files --- roles/apps/files/ipfs/ipfs-config.sh | 1 + 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 | 1 + 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/apps/templates/scripts/deploy.sh.j2 | 4 +++- roles/proxy/templates/caddy/Caddyfile.j2 | 2 ++ roles/proxy/templates/docker/Dockerfile.j2 | 2 ++ roles/proxy/templates/docker/docker-compose.yml | 2 ++ roles/proxy/templates/scripts/deploy.sh.j2 | 4 +++- roles/virt-common/files/sshd_config | 3 ++- roles/virt-common/templates/hosts.j2 | 2 ++ 20 files changed, 40 insertions(+), 3 deletions(-) diff --git a/roles/apps/files/ipfs/ipfs-config.sh b/roles/apps/files/ipfs/ipfs-config.sh index 3d62fdf..8c1dff8 100644 --- a/roles/apps/files/ipfs/ipfs-config.sh +++ b/roles/apps/files/ipfs/ipfs-config.sh @@ -1,3 +1,4 @@ +# THIS FILE IS MANAGED BY ANSIBLE #!/bin/sh set -ex diff --git a/roles/apps/templates/compose-files/ipfs.yml.j2 b/roles/apps/templates/compose-files/ipfs.yml.j2 index f54f77d..83f6faf 100644 --- a/roles/apps/templates/compose-files/ipfs.yml.j2 +++ b/roles/apps/templates/compose-files/ipfs.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/monerod.yml.j2 b/roles/apps/templates/compose-files/monerod.yml.j2 index 0097cf8..9b13318 100644 --- a/roles/apps/templates/compose-files/monerod.yml.j2 +++ b/roles/apps/templates/compose-files/monerod.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/nextcloud.yml.j2 b/roles/apps/templates/compose-files/nextcloud.yml.j2 index 78a7bfd..5dd8e16 100644 --- a/roles/apps/templates/compose-files/nextcloud.yml.j2 +++ b/roles/apps/templates/compose-files/nextcloud.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/nginx.yml.j2 b/roles/apps/templates/compose-files/nginx.yml.j2 index 1f666f5..e283f25 100644 --- a/roles/apps/templates/compose-files/nginx.yml.j2 +++ b/roles/apps/templates/compose-files/nginx.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/postfix.yml.j2 b/roles/apps/templates/compose-files/postfix.yml.j2 index 5655536..cbe43eb 100644 --- a/roles/apps/templates/compose-files/postfix.yml.j2 +++ b/roles/apps/templates/compose-files/postfix.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/restic.yml.j2 b/roles/apps/templates/compose-files/restic.yml.j2 index de7bfb8..108d626 100644 --- a/roles/apps/templates/compose-files/restic.yml.j2 +++ b/roles/apps/templates/compose-files/restic.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/snowflake.yml.j2 b/roles/apps/templates/compose-files/snowflake.yml.j2 index 92876e1..e74b2e7 100644 --- a/roles/apps/templates/compose-files/snowflake.yml.j2 +++ b/roles/apps/templates/compose-files/snowflake.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/compose-files/watchtower.yml.j2 b/roles/apps/templates/compose-files/watchtower.yml.j2 index a549122..443b755 100644 --- a/roles/apps/templates/compose-files/watchtower.yml.j2 +++ b/roles/apps/templates/compose-files/watchtower.yml.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/apps/templates/nextcloud/remoteip.conf.j2 b/roles/apps/templates/nextcloud/remoteip.conf.j2 index ac488b8..5cf919a 100644 --- a/roles/apps/templates/nextcloud/remoteip.conf.j2 +++ b/roles/apps/templates/nextcloud/remoteip.conf.j2 @@ -1,3 +1,4 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja RemoteIPHeader X-Forwarded-For diff --git a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 index 3e3dfa5..daf106e 100644 --- a/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/ipfs.conf.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + server { listen 8080; server_name {{ apps_vars.ipfs.domain }}; diff --git a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 index 3038849..91b31fc 100644 --- a/roles/apps/templates/nginx/conf.d/monerod.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/monerod.conf.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + server { listen 8080; server_name {{ apps_vars.monerod.domain }}; diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index 06a070a..9ce3d6b 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + server { listen 8080; server_name {{ apps_vars.nextcloud.domain }}; diff --git a/roles/apps/templates/scripts/deploy.sh.j2 b/roles/apps/templates/scripts/deploy.sh.j2 index abd6f92..8138dee 100644 --- a/roles/apps/templates/scripts/deploy.sh.j2 +++ b/roles/apps/templates/scripts/deploy.sh.j2 @@ -1,5 +1,7 @@ -#!/usr/bin/env bash +# THIS FILE IS MANAGED BY ANSIBLE +# vim: ft=bash # code: language=bash +#!/usr/bin/env bash ARG="$1" APPS_DIR="{{ apps_data_root }}" diff --git a/roles/proxy/templates/caddy/Caddyfile.j2 b/roles/proxy/templates/caddy/Caddyfile.j2 index 3a17f3c..62b2f10 100644 --- a/roles/proxy/templates/caddy/Caddyfile.j2 +++ b/roles/proxy/templates/caddy/Caddyfile.j2 @@ -1,4 +1,6 @@ +# 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 b8a8ef3..26f256b 100644 --- a/roles/proxy/templates/docker/Dockerfile.j2 +++ b/roles/proxy/templates/docker/Dockerfile.j2 @@ -1,4 +1,6 @@ +# 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 }} \ --with github.com/caddy-dns/njalla diff --git a/roles/proxy/templates/docker/docker-compose.yml b/roles/proxy/templates/docker/docker-compose.yml index a16ca1f..f582604 100644 --- a/roles/proxy/templates/docker/docker-compose.yml +++ b/roles/proxy/templates/docker/docker-compose.yml @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + version: "3.8" services: diff --git a/roles/proxy/templates/scripts/deploy.sh.j2 b/roles/proxy/templates/scripts/deploy.sh.j2 index c765b8c..b095587 100644 --- a/roles/proxy/templates/scripts/deploy.sh.j2 +++ b/roles/proxy/templates/scripts/deploy.sh.j2 @@ -1,5 +1,7 @@ -#!/usr/bin/env bash +# THIS FILE IS MANAGED BY ANSIBLE +# vim: ft=bash # code: language=bash +#!/usr/bin/env bash ARG="$1" PROXY_DIR="{{ proxy_data_root }}" diff --git a/roles/virt-common/files/sshd_config b/roles/virt-common/files/sshd_config index aad183a..f520383 100644 --- a/roles/virt-common/files/sshd_config +++ b/roles/virt-common/files/sshd_config @@ -1,7 +1,8 @@ +# THIS FILE IS MANAGED BY ANSIBLE + Port 22 AddressFamily any ListenAddress 0.0.0.0 -ListenAddress :: MaxAuthTries 3 PubkeyAuthentication yes diff --git a/roles/virt-common/templates/hosts.j2 b/roles/virt-common/templates/hosts.j2 index 04405ba..563758b 100644 --- a/roles/virt-common/templates/hosts.j2 +++ b/roles/virt-common/templates/hosts.j2 @@ -1,4 +1,6 @@ +# THIS FILE IS MANAGED BY ANSIBLE # code: language=ansible-jinja + 127.0.0.1 localhost 127.0.1.1 {{ hostname }} {{ fqdn }}