mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 12:03:38 +08:00
Install the package with dnf on F22+
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user