Remove jinja file endings
This commit is contained in:
parent
29af37dd83
commit
024b0c7fcc
@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
- name: "configure fail2ban"
|
- name: "configure fail2ban"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./jail.local.j2"
|
src: "./jail.local"
|
||||||
dest: "/etc/fail2ban/jail.local"
|
dest: "/etc/fail2ban/jail.local"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: system_base_fail2ban_conf
|
register: system_base_fail2ban_conf
|
||||||
|
|
||||||
- name: "configure fail2ban sshd jail"
|
- name: "configure fail2ban sshd jail"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./jail.d/sshd.local.j2"
|
src: "./jail.d/sshd.local"
|
||||||
dest: "/etc/fail2ban/jail.d/sshd.local"
|
dest: "/etc/fail2ban/jail.d/sshd.local"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: system_base_fail2ban_sshd_jail
|
register: system_base_fail2ban_sshd_jail
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
---
|
---
|
||||||
- name: "configure mailname"
|
- name: "configure mailname"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./mailname.j2"
|
src: "./mailname"
|
||||||
dest: "/etc/mailname"
|
dest: "/etc/mailname"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: system_mail_mailname
|
register: system_mail_mailname
|
||||||
|
|
||||||
- name: "configure mailutils"
|
- name: "configure mailutils"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./mailutils.conf.j2"
|
src: "./mailutils.conf"
|
||||||
dest: "/etc/mailutils.conf"
|
dest: "/etc/mailutils.conf"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
- name: "configure aliases"
|
- name: "configure aliases"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./aliases.j2"
|
src: "./aliases"
|
||||||
dest: "/etc/aliases"
|
dest: "/etc/aliases"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: system_mail_aliases
|
register: system_mail_aliases
|
||||||
@ -34,14 +34,14 @@
|
|||||||
|
|
||||||
- name: "configure postfix"
|
- name: "configure postfix"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./postfix/main.cf.j2"
|
src: "./postfix/main.cf"
|
||||||
dest: "/etc/postfix/main.cf"
|
dest: "/etc/postfix/main.cf"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: system_mail_postfix_conf
|
register: system_mail_postfix_conf
|
||||||
|
|
||||||
- name: "configure credentials"
|
- name: "configure credentials"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./postfix/sasl_passwd.j2"
|
src: "./postfix/sasl_passwd"
|
||||||
dest: "/etc/postfix/sasl_passwd"
|
dest: "/etc/postfix/sasl_passwd"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
register: system_mail_postfix_credentials
|
register: system_mail_postfix_credentials
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- name: "configure nftables"
|
- name: "configure nftables"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./nftables.conf.j2"
|
src: "./nftables.conf"
|
||||||
dest: "/etc/nftables.conf"
|
dest: "/etc/nftables.conf"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: system_base_nftables_conf
|
register: system_base_nftables_conf
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
- name: "configure sshd"
|
- name: "configure sshd"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./99-local.conf.j2"
|
src: "./99-local.conf"
|
||||||
dest: "/etc/ssh/sshd_config.d/99-local.conf"
|
dest: "/etc/ssh/sshd_config.d/99-local.conf"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
register: system_base_sshd_conf
|
register: system_base_sshd_conf
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: "systemd mail root script"
|
- name: "systemd mail root script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./system/systemd-mail-systemctl-status.j2"
|
src: "./system/systemd-mail-systemctl-status"
|
||||||
dest: "/usr/local/sbin/systemd-mail-systemctl-status"
|
dest: "/usr/local/sbin/systemd-mail-systemctl-status"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "systemd mail user script"
|
- name: "systemd mail user script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./user/systemd-mail-systemctl-status.j2"
|
src: "./user/systemd-mail-systemctl-status"
|
||||||
dest: "/usr/local/bin/systemd-mail-systemctl-status"
|
dest: "/usr/local/bin/systemd-mail-systemctl-status"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
|
|
||||||
- name: "configure unattended-upgrades"
|
- name: "configure unattended-upgrades"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./50unattended-upgrades.j2"
|
src: "./50unattended-upgrades"
|
||||||
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
dest: "/etc/apt/apt.conf.d/50unattended-upgrades"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: "enable unattended-upgrades"
|
- name: "enable unattended-upgrades"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./20auto-upgrades.j2"
|
src: "./20auto-upgrades"
|
||||||
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
dest: "/etc/apt/apt.conf.d/20auto-upgrades"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
---
|
---
|
||||||
- name: "post-up nftables inet script"
|
- name: "post-up nftables inet script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./post-up-br0-inet.nft.j2"
|
src: "./post-up-br0-inet.nft"
|
||||||
dest: "/usr/local/sbin/post-up-br0-inet.nft"
|
dest: "/usr/local/sbin/post-up-br0-inet.nft"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: vpn_bridge_post_up_br0_inet_nft
|
register: vpn_bridge_post_up_br0_inet_nft
|
||||||
|
|
||||||
- name: "post-up nftables ipv4 script"
|
- name: "post-up nftables ipv4 script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./post-up-br0-ipv4.nft.j2"
|
src: "./post-up-br0-ipv4.nft"
|
||||||
dest: "/usr/local/sbin/post-up-br0-ipv4.nft"
|
dest: "/usr/local/sbin/post-up-br0-ipv4.nft"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: vpn_bridge_post_up_br0_ipv4_nft
|
register: vpn_bridge_post_up_br0_ipv4_nft
|
||||||
|
|
||||||
- name: "configure interface"
|
- name: "configure interface"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./br0.j2"
|
src: "./br0"
|
||||||
dest: "/etc/network/interfaces.d/br0"
|
dest: "/etc/network/interfaces.d/br0"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
validate: >
|
validate: >
|
||||||
|
@ -5,28 +5,28 @@
|
|||||||
|
|
||||||
- name: "configure wireguard"
|
- name: "configure wireguard"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./wg0.conf.j2"
|
src: "./wg0.conf"
|
||||||
dest: "/etc/wireguard/wg0.conf"
|
dest: "/etc/wireguard/wg0.conf"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
register: vpn_wireguard_conf
|
register: vpn_wireguard_conf
|
||||||
|
|
||||||
- name: "post-up nftables inet script"
|
- name: "post-up nftables inet script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./post-up-wg0-inet.nft.j2"
|
src: "./post-up-wg0-inet.nft"
|
||||||
dest: "/usr/local/sbin/post-up-wg0-inet.nft"
|
dest: "/usr/local/sbin/post-up-wg0-inet.nft"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: vpn_wireguard_post_up_wg0_inet_nft
|
register: vpn_wireguard_post_up_wg0_inet_nft
|
||||||
|
|
||||||
- name: "post-up nftables ipv4 script"
|
- name: "post-up nftables ipv4 script"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./post-up-wg0-ipv4.nft.j2"
|
src: "./post-up-wg0-ipv4.nft"
|
||||||
dest: "/usr/local/sbin/post-up-wg0-ipv4.nft"
|
dest: "/usr/local/sbin/post-up-wg0-ipv4.nft"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
register: vpn_wireguard_post_up_wg0_ipv4_nft
|
register: vpn_wireguard_post_up_wg0_ipv4_nft
|
||||||
|
|
||||||
- name: "configure interface"
|
- name: "configure interface"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "./wg0.j2"
|
src: "./wg0"
|
||||||
dest: "/etc/network/interfaces.d/wg0"
|
dest: "/etc/network/interfaces.d/wg0"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
validate: >
|
validate: >
|
||||||
|
Loading…
Reference in New Issue
Block a user