Install the package with dnf on F22+

This commit is contained in:
Pierre-Yves Chibon 2015-11-17 15:27:05 +01:00
parent eab75df83b
commit 27910ddaef

View file

@ -7,6 +7,15 @@
- openvpn
tags:
- packages
when: ansible_distribution_major_version|int < 22
- name: Install needed package (dnf)
dnf: pkg={{ item }} state=present
with_items:
- openvpn
tags:
- packages
when: ansible_distribution_major_version|int > 22
- name: Install certificate and key
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt