Ran ansible-lint
This commit is contained in:
parent
92f761f4bb
commit
43d470edf3
33 changed files with 343 additions and 317 deletions
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
# Note that Wireguard does DNS resolution only once during connection.
|
||||
# When a client's IP changes, the server should be notified in some way,
|
||||
# using `wg set wg0 peer izHzmRwh2yzICps6pFI2Bg3TnmTD66/8uH4loJpkuD4= endpoint <NEW-IP>:<PORT>`
|
||||
|
|
@ -6,7 +7,7 @@
|
|||
- name: Set hostname
|
||||
become: true
|
||||
ansible.builtin.hostname:
|
||||
name: '{{ hostname }}'
|
||||
name: "{{ hostname }}"
|
||||
use: systemd
|
||||
|
||||
- name: Copy hosts file
|
||||
|
|
@ -14,15 +15,15 @@
|
|||
ansible.builtin.template:
|
||||
src: templates/hosts.j2
|
||||
dest: /etc/hosts
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
owner: root
|
||||
|
||||
- name: Copy firewall template
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'templates/{{ ansible_hostname }}/nftables.j2'
|
||||
src: "templates/{{ ansible_hostname }}/nftables.j2"
|
||||
dest: /etc/nftables.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
mode: "0600"
|
||||
notify: restart nftables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue