Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
playbooks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
playbooks
Commits
45520f72
Commit
45520f72
authored
Jan 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a3f35988
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
2 deletions
+79
-2
files/utility/Corefile
files/utility/Corefile
+5
-0
files/utility/docker-compose.yml
files/utility/docker-compose.yml
+24
-0
pter.yml
pter.yml
+2
-2
utility.yml
utility.yml
+48
-0
No files found.
files/utility/Corefile
0 → 100644
View file @
45520f72
.:53 {
forward . tls://8.8.8.8 tls://8.8.4.4 {
tls_servername dns.google
}
}
files/utility/docker-compose.yml
View file @
45520f72
version
:
'
2.4'
services
:
freedns
:
restart
:
always
image
:
mycard/freedns-go
ports
:
-
'
53:53'
-
'
53:53/udp'
command
:
"
freedns-go
-f
114.114.114.114:53
-c
coredns:53
-l
0.0.0.0:53"
coredns
:
restart
:
always
image
:
coredns/coredns
volumes
:
-
./Corefile:/Corefile:ro
apt-cacher-ng
:
restart
:
always
image
:
mycard/apt-cacher-ng
dns
:
114.114.114.114
ports
:
-
'
80:3142'
volumes
:
-
./apt-cacher-ng/cache:/var/cache/apt-cacher-ng
pter.yml
View file @
45520f72
...
@@ -28,11 +28,11 @@
...
@@ -28,11 +28,11 @@
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
>=
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
>=
9)"
when
:
"
(ansible_distribution
==
'Ubuntu'
and
ansible_distribution_major_version|int
>=
18)
or
(ansible_distribution
==
'Debian'
and
ansible_distribution_major_version|int
>=
9)"
-
name
:
Docker key
-
name
:
Docker key
apt_key
:
apt_key
:
url
:
https://
download.docker.com
/linux/debian/gpg
url
:
https://
mirrors.aliyun.com/docker-ce
/linux/debian/gpg
when
:
"
ansible_distribution
==
'Debian'"
when
:
"
ansible_distribution
==
'Debian'"
-
name
:
Docker source
-
name
:
Docker source
apt_repository
:
apt_repository
:
repo
:
deb [arch=amd64] https://
download.docker
.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
repo
:
deb [arch=amd64] https://
mirrors.aliyun
.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
filename
:
docker
filename
:
docker
when
:
"
ansible_distribution
==
'Debian'"
when
:
"
ansible_distribution
==
'Debian'"
-
name
:
Docker for Debian
-
name
:
Docker for Debian
...
...
utility.yml
0 → 100644
View file @
45520f72
---
-
hosts
:
utility
remote_user
:
root
tasks
:
-
name
:
pre packages
apt
:
update_cache
:
true
name
:
curl,wget,apt-transport-https,lsb-release,gnupg
state
:
latest
-
name
:
Docker key
apt_key
:
url
:
https://mirrors.aliyun.com/docker-ce/linux/debian/gpg
-
name
:
Docker source
apt_repository
:
repo
:
deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable
filename
:
docker
-
name
:
apt
apt
:
update_cache
:
true
name
:
docker-ce,python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname,python-pip,rsync
state
:
latest
-
name
:
docker service
systemd
:
name
:
docker
state
:
started
-
name
:
docker-compose pip
pip
:
name
:
pip
state
:
latest
extra_args
:
-i https://mirrors.aliyun.com/pypi/simple/
-
name
:
docker-compose
pip
:
name
:
docker-compose
state
:
latest
extra_args
:
-i https://mirrors.aliyun.com/pypi/simple/
-
name
:
utility directory
file
:
path
:
/root/utility
state
:
directory
-
name
:
related files
synchronize
:
src
:
./files/utility/
dest
:
/root/utility
-
name
:
docker-compose up -d
docker_service
:
project_src
:
/root/utility
remove_orphans
:
true
pull
:
true
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