always use full name of ansible task

This commit is contained in:
2023-03-05 19:00:38 +01:00
parent d83c801db1
commit 95e3332f80
19 changed files with 80 additions and 80 deletions

View File

@ -1,6 +1,6 @@
---
- name: "Install openvpn-server via apt"
apt:
ansible.builtin.apt:
update_cache: yes
state: present
name:
@ -15,13 +15,13 @@
reload: yes
- name: Enable and restart openvpn daemon
service:
ansible.builtin.service:
name: openvpn-server@stargate
state: restarted
enabled: yes
- name: Check if AllowUsers is defined
lineinfile:
ansible.builtin.lineinfile:
state: absent
path: /etc/ufw/before.rules
regexp: "^# START OPENVPN"
@ -30,7 +30,7 @@
register: checkufwrules
- name: Insert openvpn iptables rules
blockinfile:
ansible.builtin.blockinfile:
path: /etc/ufw/before.rules
block: |
# START OPENVPN RULES