commit af8dfa09d8f9a4b0b11b3c026767d668db725d6e
Author: kwizart <kwizart(a)gmail.com>
Date: Sun Dec 8 23:55:58 2019 +0100
Update openvpn
roles/openvpn/base/tasks/main.yml | 14 ++++++++------
roles/openvpn/client/meta/main.yml | 2 +-
roles/openvpn/client/tasks/main.yml | 14 ++++++++------
3 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/roles/openvpn/base/tasks/main.yml b/roles/openvpn/base/tasks/main.yml
index 809d98a..9dc2085 100644
--- a/roles/openvpn/base/tasks/main.yml
+++ b/roles/openvpn/base/tasks/main.yml
@@ -2,18 +2,20 @@
# OpenVpn basic configuration
- name: Install needed package
- package: name={{ item }} state=present
- with_items:
- - openvpn
+ package:
+ state: present
+ name:
+ - openvpn
tags:
- openvpn
- packages
when: ansible_distribution_major_version|int < 8
- name: Install needed package (dnf)
- dnf: pkg={{ item }} state=present
- with_items:
- - openvpn
+ package:
+ state: present
+ name:
+ - openvpn
tags:
- openvpn
- packages
diff --git a/roles/openvpn/client/meta/main.yml b/roles/openvpn/client/meta/main.yml
index 585d401..c7caa2e 100644
--- a/roles/openvpn/client/meta/main.yml
+++ b/roles/openvpn/client/meta/main.yml
@@ -1,3 +1,3 @@
---
dependencies:
- - { role: openvpn/base }
+ - { role: openvpn/base }
diff --git a/roles/openvpn/client/tasks/main.yml b/roles/openvpn/client/tasks/main.yml
index ba2d215..e2bd739 100644
--- a/roles/openvpn/client/tasks/main.yml
+++ b/roles/openvpn/client/tasks/main.yml
@@ -2,18 +2,20 @@
# OpenVpn server
- name: Install needed packages
- package: name={{ item }} state=present
- with_items:
- - openvpn
+ package:
+ state: present
+ name:
+ - openvpn
tags:
- packages
- openvpn
when: ansible_distribution_major_version|int < 8
- name: Install needed packages
- dnf: pkg={{ item }} state=present
- with_items:
- - openvpn
+ package:
+ state: present
+ name:
+ - openvpn
tags:
- packages
- openvpn
Show replies by date