Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-nginx-curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
antoine.blancy
ansible-nginx-curl
Commits
84039c87
Commit
84039c87
authored
3 years ago
by
antoine.blancy
Browse files
Options
Downloads
Patches
Plain Diff
a
parent
339f5f78
Branches
Branches containing commit
No related tags found
1 merge request
!1
TP3
Pipeline
#18305
failed
3 years ago
Stage: deployment
Stage: curltest
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
script.sh
+1
-2
1 addition, 2 deletions
script.sh
templates/wg
+1
-1
1 addition, 1 deletion
templates/wg
wg.yml
+2
-47
2 additions, 47 deletions
wg.yml
with
4 additions
and
50 deletions
script.sh
+
1
−
2
View file @
84039c87
#!/bin/bash
#ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i deez_nodes h1.yml h2.yml r1.yml wg.yml
ANSIBLE_HOST_KEY_CHECKING
=
False ansible-playbook
-i
deez_nodes r1.yml wg.yml
\ No newline at end of file
ANSIBLE_HOST_KEY_CHECKING
=
False ansible-playbook
-i
deez_nodes h1.yml h2.yml r1.yml wg.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/wg
+
1
−
1
View file @
84039c87
...
...
@@ -4,6 +4,6 @@ PostUp = wg set %i private-key /etc/wireguard/privatekey
ListenPort = 51902
[Peer]
PublicKey = {{ pub
lickey
}}
PublicKey = {{ pub
k
}}
Endpoint = {{ dst }}:51902
AllowedIPs = 10.0.0.0/24
This diff is collapsed.
Click to expand it.
wg.yml
+
2
−
47
View file @
84039c87
-
name
:
curl
hosts
:
h1
roles
:
-
hosts
-
post
-
keys
become
:
yes
vars
:
addr
:
10.0.1.2
router_addr
:
10.0.1.1
other_subnet
:
10.0.3.0
tasks
:
-
name
:
install curl
apt
:
name
:
curl
-
name
:
nginx
hosts
:
h2
become
:
yes
vars
:
my_cool_greeting
:
HEHEHELOOLOLOLO
addr
:
10.0.3.2
router_addr
:
10.0.3.1
other_subnet
:
10.0.1.0
tasks
:
-
name
:
install nginx
apt
:
name
:
nginx
-
name
:
copy index.html
template
:
src
:
index.html
dest
:
/var/www/html/index.html
notify
:
nginx-restarter
roles
:
-
hosts
-
post
-
keys
handlers
:
-
name
:
nginx-restarter
service
:
name
:
nginx
state
:
restarted
-
name
:
h1_key_set
hosts
:
h
2
hosts
:
h
1
roles
:
-
role
:
wg
vars
:
...
...
@@ -51,9 +7,8 @@
myAddr
:
10.0.0.10
dst
:
10.0.3.2
-
name
:
h2_key_set
hosts
:
h
1
hosts
:
h
2
roles
:
-
role
:
wg
vars
:
...
...
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