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
Francois Le Corre
slapos.package
Commits
f0fc0756
Commit
f0fc0756
authored
Nov 04, 2016
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Generalize repository configuration a bit
This prevent us to require mofify it on newer releases.
parent
d1d7ad5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
43 deletions
+12
-43
playbook/roles/repository/tasks/main.yml
playbook/roles/repository/tasks/main.yml
+12
-43
No files found.
playbook/roles/repository/tasks/main.yml
View file @
f0fc0756
...
...
@@ -10,37 +10,21 @@
-
file
:
path=/etc/apt/sources.list.d/re6stnet.list state=absent
when
:
ansible_distribution == "Debian"
-
name
:
Install Debian 8 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_8.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
-
name
:
Install Debian 7 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_7.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
-
name
:
Install Debian 6 repository key
apt_key
:
url={{ base_open_build_url }}/Debian_6.0/Release.key state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
-
name
:
Install Debian 8 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_8.0/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
-
name
:
Install Debian 7 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_7.0/ ./' state=present
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
-
name
:
Install Debian {{ ansible_distribution_major_version }} repository key
apt_key
:
url={{ base_open_build_url }}/Debian_{{ ansible_distribution_major_version }}.0/Release.key state=present
when
:
ansible_distribution == "Debian"
-
name
:
Install Debian
6
repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_
6
.0/ ./' state=present
when
:
ansible_distribution == "Debian"
and ansible_distribution_major_version == "6"
-
name
:
Install Debian
{{ ansible_distribution_major_version }}
repository
apt_repository
:
repo='deb {{ base_open_build_url }}/Debian_
{{ ansible_distribution_major_version }}
.0/ ./' state=present
when
:
ansible_distribution == "Debian"
-
name
:
Install Ubuntu
14.04
repository key
-
name
:
Install Ubuntu
{{ ansible_distribution_version }}
repository key
apt_key
:
url={{ base_open_build_url }}/xUbuntu_14.04/Release.key state=present
when
:
ansible_distribution == "Ubuntu"
and ansible_distribution_version == "14.04"
when
:
ansible_distribution == "Ubuntu"
-
name
:
Install Ubuntu
14.04
repository
apt_repository
:
repo='deb {{ base_open_build_url }}/xUbuntu_
14.04
/ ./' state=present
when
:
ansible_distribution == "Ubuntu"
and ansible_distribution_version == "14.04"
-
name
:
Install Ubuntu
{{ ansible_distribution_version }}
repository
apt_repository
:
repo='deb {{ base_open_build_url }}/xUbuntu_
{{ ansible_distribution_version }}
/ ./' state=present
when
:
ansible_distribution == "Ubuntu"
-
name
:
Install Ubuntu 14.04 repository key (Linuxmint 17.2)
apt_key
:
url={{ base_open_build_url }}/xUbuntu_14.04/Release.key state=present
...
...
@@ -50,22 +34,6 @@
apt_repository
:
repo='deb {{ base_open_build_url }}/xUbuntu_14.04/ ./' state=present
when
:
ansible_distribution == "Linuxmint" and ansible_distribution_version == "17.2"
-
name
:
Install Ubuntu 15.04 repository key
apt_key
:
url={{ base_open_build_url }}/xUbuntu_15.04/Release.key state=present
when
:
ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04"
-
name
:
Install Ubuntu 15.04 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/xUbuntu_15.04/ ./' state=present
when
:
ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04"
-
name
:
Install Ubuntu 16.04 repository key
apt_key
:
url={{ base_open_build_url }}/xUbuntu_16.04/Release.key state=present
when
:
ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
-
name
:
Install Ubuntu 16.04 repository
apt_repository
:
repo='deb {{ base_open_build_url }}/xUbuntu_16.04/ ./' state=present
when
:
ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
-
name
:
Install CentOS 7 Repository
get_url
:
url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
...
...
@@ -81,3 +49,4 @@
-
name
:
Install CentOS 6 RPM Key
rpm_key
:
state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_CentOS-6/repodata/repomd.xml.key
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "6"
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