Work around rhel 7.1 systemd template bug: https://bugzilla.redhat.com/show_bug.cgi?id=1206007
This commit is contained in:
parent
b64df8adb4
commit
fb1c3a6eeb
1 changed files with 17 additions and 2 deletions
|
@ -38,8 +38,23 @@
|
|||
- service
|
||||
- openvpn
|
||||
|
||||
- name: enable openvpn service for rhel 7
|
||||
service: name=openvpn@openvpn state=running enabled=true
|
||||
#
|
||||
# this is a workaround for a rhel7.1 bug:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1206007
|
||||
# Go back to using the service module when thats fixed.
|
||||
#
|
||||
|
||||
- name: enable openvpn service for rhel 7.1
|
||||
file: state=link src=/usr/lib/systemd/system/openvpn@.service dest=/etc/systemd/system/multi-user.target.wants/openvpn@.service owner=root group=root
|
||||
when: ansible_distribution_major_version == '7'
|
||||
notify:
|
||||
- reload systemd
|
||||
tags:
|
||||
- service
|
||||
- openvpn
|
||||
|
||||
- name: Make sure openvpn is running in rhel 7.1
|
||||
service: name=openvpn@openvpn state=running
|
||||
when: ansible_distribution_major_version == '7'
|
||||
tags:
|
||||
- service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue