A basic first cut at a bastion role. Going to use on bastion02

This commit is contained in:
Kevin Fenzi 2014-10-08 22:37:24 +00:00
parent 6fb0963909
commit a50758d90e
5 changed files with 89 additions and 17 deletions

View file

@ -42,30 +42,15 @@
tags:
- install
- openvpn
notify:
- restart openvpn (Fedora)
- restart openvpn (RHEL7)
- restart openvpn (RHEL6)
- name: Install the ccd files
file: file src={{ files }}/ccd/ dest=/etc/openvpn/ccd/ recurse=true
notify:
- "restart openvpn {{ ansible_distribution_version[0] }}"
tags:
- openvpn
- name: enable openvpn service for rhel 6
service: name=openvpn state=running enabled=true
when: ansible_distribution_version[0] == 6
tags:
- service
- openvpn
- name: enable openvpn service for rhel 7 or Fedora
service: name=openvpn@openvpn state=running enabled=true
when: ansible_distribution_version[0] == 7 or is_fedora is defined
when: ( ansible_distribution_version[0] == 7 or is_fedora is defined ) and openvpn_master is defined
tags:
- service
- openvpn