Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Javier Franco
/
repo_config
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cec16bd0
authored
2021-12-17 12:30:23 -0300
by
Javier Franco
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
first commit
0 parents
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
main.yml
templates/repo.conf
main.yml
0 → 100644
View file @
cec16bd
---
-
name
:
Configure a simple repo with apache
hosts
:
"
{{
server
|
default('jb_1')
}}"
# servidor a ser utilizado como repo
become
:
true
tasks
:
-
name
:
install apache
yum
:
name
:
httpd
state
:
present
tags
:
-
install_apache
-
name
:
copy the conf file
template
:
src
:
templates/repo.conf
dest
:
/etc/httpd/conf.d/repo.conf
notify
:
restart httpd
tags
:
-
copy_the_conf_file
-
name
:
check firewalld is up
service
:
name
:
firewalld
state
:
started
tags
:
-
check_firewalld_is_up
-
name
:
add http service to the firewalld
firewalld
:
service
:
http
permanent
:
yes
state
:
enabled
immediate
:
yes
tags
:
-
add_http_service_to_the_firewalld
-
name
:
enable the httpd service
service
:
name
:
httpd
state
:
started
enabled
:
yes
handlers
:
-
name
:
restart httpd
service
:
name
:
httpd
state
:
restarted
templates/repo.conf
0 → 100644
View file @
cec16bd
Alias
{{
repo_dir
|
default
(
"/repo/"
) }}
"/opt/repo/"
<
Directory
"/opt/repo/"
>
Options
Indexes
MultiViews
FollowSymLinks
AllowOverride
None
Order
allow
,
deny
Allow
from
all
Require
all
granted
</
Directory
>
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment