Tag all the openvpn tasks as 'openvpn'
This commit is contained in:
parent
8a89bd9fff
commit
8de71b59e3
3 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
||||||
mode: 0644 }
|
mode: 0644 }
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
- openvpn
|
||||||
notify:
|
notify:
|
||||||
- restart openvpn {{ ansible_distribution_version[0] }}
|
- restart openvpn {{ ansible_distribution_version[0] }}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
- openvpn
|
- openvpn
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
- openvpn
|
||||||
|
|
||||||
- name: Install configuration files
|
- name: Install configuration files
|
||||||
file: src={{ item.file }}
|
file: src={{ item.file }}
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
mode: 0600 }
|
mode: 0600 }
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
- openvpn
|
||||||
notify:
|
notify:
|
||||||
- restart openvpn {{ ansible_distribution_version[0] }}
|
- restart openvpn {{ ansible_distribution_version[0] }}
|
||||||
|
|
||||||
|
@ -32,10 +34,12 @@
|
||||||
when: ansible_distribution_version[0] == 6 or is_fedora is defined
|
when: ansible_distribution_version[0] == 6 or is_fedora is defined
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
- openvpn
|
||||||
|
|
||||||
- name: enable openvpn service for rhel 7
|
- name: enable openvpn service for rhel 7
|
||||||
service: name=openvpn@openvpn state=running enabled=true
|
service: name=openvpn@openvpn state=running enabled=true
|
||||||
when: ansible_distribution_version[0] == 7
|
when: ansible_distribution_version[0] == 7
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
- openvpn
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
- openvpn
|
- openvpn
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
- openvpn
|
||||||
|
|
||||||
- name: Create the /etc/openvpn/ccd/ directory
|
- name: Create the /etc/openvpn/ccd/ directory
|
||||||
file: >
|
file: >
|
||||||
|
@ -15,6 +16,8 @@
|
||||||
owner=root
|
owner=root
|
||||||
group=root
|
group=root
|
||||||
state=directory
|
state=directory
|
||||||
|
tags:
|
||||||
|
- openvpn
|
||||||
|
|
||||||
- name: Install configuration files
|
- name: Install configuration files
|
||||||
file: src={{ item.file }}
|
file: src={{ item.file }}
|
||||||
|
@ -35,6 +38,7 @@
|
||||||
mode: 0644 }
|
mode: 0644 }
|
||||||
tags:
|
tags:
|
||||||
- install
|
- install
|
||||||
|
- openvpn
|
||||||
notify:
|
notify:
|
||||||
- restart openvpn {{ ansible_distribution_version[0] }}
|
- restart openvpn {{ ansible_distribution_version[0] }}
|
||||||
|
|
||||||
|
@ -43,6 +47,8 @@
|
||||||
file: file src={{ files }}/ccd/ dest=/etc/openvpn/ccd/ recurse=true
|
file: file src={{ files }}/ccd/ dest=/etc/openvpn/ccd/ recurse=true
|
||||||
notify:
|
notify:
|
||||||
- restart openvpn {{ ansible_distribution_version[0] }}
|
- restart openvpn {{ ansible_distribution_version[0] }}
|
||||||
|
tags:
|
||||||
|
- openvpn
|
||||||
|
|
||||||
|
|
||||||
- name: enable openvpn service for rhel 6 or Fedora
|
- name: enable openvpn service for rhel 6 or Fedora
|
||||||
|
@ -50,10 +56,12 @@
|
||||||
when: ansible_distribution_version[0] == 6 or is_fedora is defined
|
when: ansible_distribution_version[0] == 6 or is_fedora is defined
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
- openvpn
|
||||||
|
|
||||||
- name: enable openvpn service for rhel 7
|
- name: enable openvpn service for rhel 7
|
||||||
service: name=openvpn@openvpn state=running enabled=true
|
service: name=openvpn@openvpn state=running enabled=true
|
||||||
when: ansible_distribution_version[0] == 7
|
when: ansible_distribution_version[0] == 7
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
- openvpn
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue