Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
vpn
Commits
dd431749
Commit
dd431749
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
b40b39c9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+12
-8
12 additions, 8 deletions
tasks/main.yml
tasks/vpn.yml
+10
-10
10 additions, 10 deletions
tasks/vpn.yml
with
22 additions
and
18 deletions
tasks/main.yml
+
12
−
8
View file @
dd431749
...
...
@@ -5,16 +5,20 @@
---
# file: roles/vpn/tasks/main.yml
-
name
:
"
VPN
Role"
set_fact
:
role_vpn_started=true
tags
:
'
always'
-
name
:
VPN Role
set_fact
:
role_vpn_started
:
yes
tags
:
-
always
-
block
:
-
import_tasks
:
'
vpn.yml
'
-
import_tasks
:
vpn.yml
-
name
:
'
Remember
that
this
role
had
been
run'
set_fact
:
role_vpn_completed=true
tags
:
'
always'
-
name
:
Remember that this role had been run
set_fact
:
role_vpn_completed
:
yes
tags
:
-
always
when
:
'
"vpn"
not
in
excluded_roles
and
role_vpn_completed
is
not
defined
and
vpn
is
defined
and
vpn.subnet
is
defined
'
when
:
not excluded_roles or
"vpn" not in excluded_roles and role_vpn_completed is not defined and vpn is defined and vpn.subnet is defined
This diff is collapsed.
Click to expand it.
tasks/vpn.yml
+
10
−
10
View file @
dd431749
---
# file: roles/vpn/tasks/vpn.yml
-
name
:
"
Install
extra
packages
"
-
name
:
Install extra packages
apt
:
name
:
'
{{
packages
}}'
state
:
'
present
'
state
:
present
vars
:
packages
:
-
'
strongswan
'
-
strongswan
-
name
:
"
Configure
IPSec
"
-
name
:
Configure IPSec
template
:
src
:
'
{{
item
}}.jinja2'
dest
:
'
/etc/{{
item
}}
'
owner
:
'
root
'
group
:
'
root
'
mode
:
'
600
'
dest
:
/etc/{{ item }}
owner
:
root
group
:
root
mode
:
600
with_items
:
-
'
ipsec.conf
'
-
'
ipsec.secrets
'
-
ipsec.conf
-
ipsec.secrets
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment