Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nginx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSI Ansible
nginx
Commits
d7bda16c
Commit
d7bda16c
authored
3 years ago
by
Adrian K.
Browse files
Options
Downloads
Patches
Plain Diff
Fix ansible-lint
parent
bf49faae
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Add ansible-lint and fix all warnings and errors
Pipeline
#88825
passed
3 years ago
Stage: linting
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
handlers/main.yml
+2
-2
2 additions, 2 deletions
handlers/main.yml
meta/main.yml
+4
-5
4 additions, 5 deletions
meta/main.yml
tasks/main.yml
+8
-7
8 additions, 7 deletions
tasks/main.yml
vars/main.yml
+1
-1
1 addition, 1 deletion
vars/main.yml
with
16 additions
and
16 deletions
defaults/main.yml
+
1
−
1
View file @
d7bda16c
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
2
−
2
View file @
d7bda16c
---
---
-
name
:
restart nginx
-
name
:
restart nginx
service
:
ansible.builtin.
service
:
name
:
nginx
name
:
nginx
state
:
restarted
state
:
restarted
This diff is collapsed.
Click to expand it.
meta/main.yml
+
4
−
5
View file @
d7bda16c
...
@@ -15,7 +15,7 @@ galaxy_info:
...
@@ -15,7 +15,7 @@ galaxy_info:
# - CC-BY-4.0
# - CC-BY-4.0
license
:
BSD-3-Clause
license
:
BSD-3-Clause
min_ansible_version
:
2.9
min_ansible_version
:
"
2.9
"
# If this a Container Enabled role, provide the minimum Ansible Container version.
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# min_ansible_container_version:
...
@@ -29,8 +29,7 @@ galaxy_info:
...
@@ -29,8 +29,7 @@ galaxy_info:
platforms
:
platforms
:
-
name
:
Ubuntu
-
name
:
Ubuntu
versions
:
versions
:
-
18.04
-
all
-
20.04
galaxy_tags
:
[]
galaxy_tags
:
[]
# List tags for your role here, one per line. A tag is a keyword that describes
# List tags for your role here, one per line. A tag is a keyword that describes
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
8
−
7
View file @
d7bda16c
---
---
-
name
:
Install dependencies.
-
name
:
Install dependencies.
apt
:
ansible.builtin.
apt
:
name
:
name
:
-
gpg-agent
-
gpg-agent
state
:
present
state
:
present
update-cache
:
yes
update-cache
:
true
when
:
ansible_distribution_release == 'focal'
when
:
ansible_distribution_release == 'focal'
-
name
:
Add official nginx APT key
-
name
:
Add official nginx APT key
apt_key
:
ansible.builtin.
apt_key
:
url
:
http://nginx.org/keys/nginx_signing.key
url
:
http://nginx.org/keys/nginx_signing.key
-
name
:
Add official nginx repository
-
name
:
Add official nginx repository
apt_repository
:
ansible.builtin.
apt_repository
:
repo
:
"
deb
http://nginx.org/packages/mainline/ubuntu
{{
ansible_distribution_release
}}
nginx"
repo
:
"
deb
http://nginx.org/packages/mainline/ubuntu
{{
ansible_distribution_release
}}
nginx"
-
name
:
Install nginx
-
name
:
Install nginx
apt
:
ansible.builtin.
apt
:
name
:
nginx
name
:
nginx
state
:
present
state
:
present
-
name
:
Remove default page
-
name
:
Remove default page
file
:
ansible.builtin.
file
:
path
:
/etc/nginx/conf.d/default.conf
path
:
/etc/nginx/conf.d/default.conf
state
:
absent
state
:
absent
notify
:
restart nginx
notify
:
restart nginx
-
name
:
Copy nginx config
-
name
:
Copy nginx config
copy
:
ansible.builtin.
copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
dest
:
/etc/nginx/
dest
:
/etc/nginx/
mode
:
0644
with_fileglob
:
files/*
with_fileglob
:
files/*
notify
:
restart nginx
notify
:
restart nginx
This diff is collapsed.
Click to expand it.
vars/main.yml
+
1
−
1
View file @
d7bda16c
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