Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
s3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
s3
Commits
b661dd06
Commit
b661dd06
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting
parent
00d0e3b5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/main.yml
+15
-13
15 additions, 13 deletions
tasks/main.yml
with
15 additions
and
13 deletions
tasks/main.yml
+
15
−
13
View file @
b661dd06
---
# file: roles/s3/tasks/main.yml
-
name
:
"
S3
Role"
set_fact
:
role_s3_started=true
tags
:
'
always'
-
name
:
S3 Role
set_fact
:
role_s3_started
:
yes
tags
:
-
always
-
block
:
-
name
:
"
Apt
Keys
"
-
name
:
Apt Keys
apt_key
:
url='{{ item }}'
state='present'
with_items
:
-
'
http://s3tools.org/repo/deb-all/stable/s3tools.key
'
-
http://s3tools.org/repo/deb-all/stable/s3tools.key
-
name
:
"
Apt
Repositories
"
-
name
:
Apt Repositories
apt_repository
:
repo='{{ item }}'
state='present'
mode='644'
with_items
:
-
'
deb
http://s3tools.org/repo/deb-all
stable/
'
-
deb http://s3tools.org/repo/deb-all stable/
-
name
:
"
Install
more
packages
"
-
name
:
Install more packages
apt
:
pkg='{{ packages }}'
state='present'
update_cache=yes
vars
:
packages
:
-
'
s3cmd
'
-
s3cmd
-
name
:
"
Ensure
directory
"
-
name
:
Ensure directory
file
:
dest='/opt/s3/'
owner='root'
...
...
@@ -39,11 +41,11 @@
state='directory'
mode='775'
-
name
:
"
Copy
files
"
-
name
:
Copy files
template
:
src='{{ item }}'
dest='/opt/s3/{{ item }}'
with_items
:
-
'
s3.cfg
'
-
s3.cfg
when
:
'
"s3"
not
in
excluded_roles
'
when
:
not excluded_roles or
"s3" not in excluded_roles
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