Files
fedora-infra_ansible/roles/openvpn/base/tasks/main.yml
Stephen Smoogen 432a3a497b Go through and remove entries for EL6 and EL7
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>
2024-07-03 22:20:30 +00:00

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