Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
f1a27ae3
Commit
f1a27ae3
authored
Mar 10, 2021
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web, modify
parent
a29bb538
Pipeline
#5136
passed with stages
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
README.md
ANSIBLE/WEB/Nginx/README.md
+12
-3
No files found.
ANSIBLE/WEB/Nginx/README.md
View file @
f1a27ae3
...
...
@@ -8,6 +8,7 @@
## 주요 기능
-
특정 버전의 Nginx WEB Server를 설치한다.
-
OS 배포판에 따라 취사선택(Facts 변수)해서 설치한다.
-
미리 검증된 Configs를 배포한다.
...
...
@@ -16,7 +17,7 @@
```
bash
# cat hosts
[
ALL_HOSTS]
172.16.0.100
managed_ip
=
172.16.0.100
des
=
"2020-12-03"
172.16.0.100
managed_ip
=
172.16.0.100
des
=
"2020-12-03"
apps
=
"nginx"
[
ALL_HOSTS_OK]
```
...
...
@@ -47,12 +48,20 @@ ansible_python_interpreter: python2.7
hosts: ALL_HOSTS
vars:
time: "{{lookup('pipe','date
\"
+%Y-%m-%d
\"
')}}"
nginx_version: "1.10.3-1+deb9u3"
nginx_version_debian: "1.10.3-1+deb9u3"
nginx_version_centos: "nginx-1.16.1-3.el7"
tasks:
-
name: Nginx {{ nginx_version }} Install
-
name: Nginx {{ nginx_version
_debian
}} Install
apt:
pkg:
-
nginx=1.10.3-1+deb9u3
when: ansible_os_family == "Debian"
-
name: Nginx {{ nginx_version_centos }} Install
yum:
name: nginx-1.16.1-3.el7
state: present
when: ansible_os_family == "CentOS"
-
name: /etc/nginx_src directory check
stat:
...
...
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