Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
okeanos-LoD
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
okeanos-LoD
Commits
6e2b6cc0
Unverified
Commit
6e2b6cc0
authored
Jul 10, 2015
by
Ioannis Tsafaras
Committed by
Avraam Tsantekidis
Jul 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LAM-42 Ansible squid proxy config
parent
b8258592
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
ansible/host_vars/master-node
ansible/host_vars/master-node
+1
-1
ansible/roles/proxy/tasks/main.yml
ansible/roles/proxy/tasks/main.yml
+8
-4
No files found.
ansible/host_vars/master-node
View file @
6e2b6cc0
internal_ip: "192.168.0.3"
local_net: "192.168.0.0/24"
ansible/roles/proxy/tasks/main.yml
View file @
6e2b6cc0
---
-
name
:
Include tasks for master.
include
:
master.yml
tags
:
-
master-install
-
name
:
Install squid http proxy
apt
:
name=squid3 state=latest
tags
:
install
-
name
:
Configure squid http proxy
lineinfile
:
destfile="/etc/squid3/squid.conf" regexp="^acl localnet" insertafter="^#acl localnet"
line="acl localnet src {{ hostvars[master-node]["local_net"] }}"
state=present
tags
:
config
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment