Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpiderOak
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
SpiderOak
Commits
5a9e582a
Commit
5a9e582a
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Allow to exclude roles from plays with --exclude-roles command line parameter
parent
3e4e58aa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+2
-27
2 additions, 27 deletions
tasks/main.yml
tasks/spideroak.yml
+30
-0
30 additions, 0 deletions
tasks/spideroak.yml
with
32 additions
and
27 deletions
tasks/main.yml
+
2
−
27
View file @
5a9e582a
---
# file: roles/spideroak/tasks/main.yml
-
name
:
"
Check
SpiderOak
Requirement"
shell
:
ls /usr/bin/SpiderOakONE
register
:
spideroak_available
failed_when
:
false
-
name
:
"
Apt
Key"
apt_key
:
url='https://spideroak.com/dist/spideroak-apt-2013.asc'
state=present
-
name
:
"
Apt
Repository"
apt_repository
:
repo='deb http://apt.spideroak.com/ubuntu-spideroak-hardy/ release restricted'
state='present'
-
name
:
"
Install
SpiderOak
Agent"
apt
:
pkg='spideroak'
state='installed'
update_cache=yes
-
include
:
register.yml
when
:
spideroak_available is defined and spideroak_available.stdout != '/usr/bin/SpiderOakONE'
-
name
:
"
Add
Directories
to
SpiderOak"
shell
:
SpiderOakONE --include-dir={{ item }}
with_items
:
'
{{
spideroak_include
}}'
-
include
:
spideroak.yml
when
:
'
"spideroak"
not
in
excluded_roles'
This diff is collapsed.
Click to expand it.
tasks/spideroak.yml
0 → 100644
+
30
−
0
View file @
5a9e582a
---
# file: roles/spideroak/tasks/spideroak.yml
-
name
:
"
Check
SpiderOak
Requirement"
shell
:
ls /usr/bin/SpiderOakONE
register
:
spideroak_available
failed_when
:
false
-
name
:
"
Apt
Key"
apt_key
:
url='https://spideroak.com/dist/spideroak-apt-2013.asc'
state=present
-
name
:
"
Apt
Repository"
apt_repository
:
repo='deb http://apt.spideroak.com/ubuntu-spideroak-hardy/ release restricted'
state='present'
-
name
:
"
Install
SpiderOak
Agent"
apt
:
pkg='spideroak'
state='installed'
update_cache=yes
-
include
:
register.yml
when
:
spideroak_available is defined and spideroak_available.stdout != '/usr/bin/SpiderOakONE'
-
name
:
"
Add
Directories
to
SpiderOak"
shell
:
SpiderOakONE --include-dir={{ item }}
with_items
:
'
{{
spideroak_include
}}'
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