mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 14:54:06 +08:00
Using `git grep el6` and `git grep el7` and variants like EL-7 or el-7, I found various entries and files which were no longer needed with the current ansible. I updated text or tests to later versions of RHEL as needed. found entries for the fedora ami's for the original cloud and removed those entries also. Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
---
|
|
# OpenVpn basic configuration
|
|
|
|
- name: Install needed package
|
|
package:
|
|
state: present
|
|
name:
|
|
- openvpn
|
|
tags:
|
|
- openvpn
|
|
- packages
|
|
|
|
- name: Install ca for client
|
|
copy: src={{ private }}/files/vpn/pki/ca.crt
|
|
dest=/etc/openvpn/client/ca.crt
|
|
owner=root group=root mode=0600
|
|
tags:
|
|
- install
|
|
- openvpn
|
|
|
|
- name: Install ca for server
|
|
copy: src={{ private }}/files/vpn/pki/ca.crt
|
|
dest=/etc/openvpn/server/ca.crt
|
|
owner=root group=root mode=0600
|
|
tags:
|
|
- install
|
|
- openvpn
|
|
#notify:
|
|
#- restart openvpn (Fedora)
|
|
|
|
- name: Install certificate and key (rhel or fedora) for server
|
|
copy: src={{ private }}/files/vpn/pki/ca.crt
|
|
dest=/etc/openvpn/server/ca.crt
|
|
owner=root group=root mode=0600
|
|
tags:
|
|
- install
|
|
- openvpn
|
|
#notify:
|
|
#- restart openvpn (Fedora)
|
|
when: inventory_hostname.startswith('bastion0')
|
|
|
|
- name: install fix-routes.sh script
|
|
copy: src=fix-routes.sh
|
|
dest=/etc/openvpn/fix-routes.sh
|
|
owner=root group=root mode=0755
|
|
tags:
|
|
- openvpn
|