Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.package
Commits
36a1ccd0
Commit
36a1ccd0
authored
Dec 06, 2019
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: support debian 8, 9 and 10
parent
2d350699
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
+20
-14
playbook/roles/slapcache/tasks/main.yml
playbook/roles/slapcache/tasks/main.yml
+4
-8
playbook/roles/slapcache/tasks/pip_installations_succeeded.yml
...ook/roles/slapcache/tasks/pip_installations_succeeded.yml
+6
-1
playbook/roles/slapcache/tasks/pip_installations_success.yml
playbook/roles/slapcache/tasks/pip_installations_success.yml
+10
-5
No files found.
playbook/roles/slapcache/tasks/main.yml
View file @
36a1ccd0
...
...
@@ -12,14 +12,10 @@
ignore_errors
:
True
register
:
pip3_installed
-
name
:
Make sure pip is installed
shell
:
easy_install pip
when
:
pip_installed is failed and pip3_installed is failed
-
name
:
Install slapcache on Debian !=
9
-
name
:
Install slapcache on Debian <
9
include
:
pip_installations_success.yml
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version
!=
"9"
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version
<
"9"
-
name
:
Install slapcache on Debian
=
=
9
-
name
:
Install slapcache on Debian
>
=
9
include
:
pip_installations_succeeded.yml
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version
=
= "9"
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version
>
= "9"
playbook/roles/slapcache/tasks/pip_installations_succeeded.yml
View file @
36a1ccd0
# Installations on Ansible which supports succeeded
# Installations on newest Ansible which supports succeeded
-
name
:
Make sure pip is installed
shell
:
easy_install pip
when
:
pip_installed is failed and pip3_installed is failed
-
name
:
Install/Upgrade latest slapos.libnetworkcache using pip
shell
:
pip install --upgrade slapos.libnetworkcache
when
:
pip_installed is succeeded
...
...
playbook/roles/slapcache/tasks/pip_installations_success.yml
View file @
36a1ccd0
# Installations on Ansible which supports *ONLY* success
# Installations on old Ansible where tests are filter like
-
name
:
Make sure pip is installed
shell
:
easy_install pip
when
:
pip_installed | failed and pip3_installed | failed
-
name
:
Install/Upgrade latest slapos.libnetworkcache using pip
shell
:
pip install --upgrade slapos.libnetworkcache
when
:
pip_installed
is
success
when
:
pip_installed
|
success
-
name
:
Install/Upgrade latest slapcache using pip
shell
:
pip install --upgrade slapcache
when
:
pip_installed
is
success
when
:
pip_installed
|
success
-
name
:
Install/Upgrade latest slapos.libnetworkcache using pip3
shell
:
pip3 install --upgrade slapos.libnetworkcache
when
:
pip3_installed
is
success
when
:
pip3_installed
|
success
-
name
:
Install/Upgrade latest slapcache using pip3
shell
:
pip3 install --upgrade slapcache
when
:
pip3_installed
is
success
when
:
pip3_installed
|
success
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