-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ocha/update-package-to-latest-env
Update package to latest env
- Loading branch information
Showing
7 changed files
with
33 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
dotnet_rhel_package: "dotnet-sdk-2.0.0" | ||
dotnet_ubuntu_package: "dotnet-sdk-2.0.0" | ||
dotnet_package: "dotnet-sdk-2.1.105" | ||
dotnet_debian_repo_gpg_key_url: "https://packages.microsoft.com/keys/microsoft.asc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ galaxy_info: | |
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- trusty | ||
- xenial | ||
- bionic | ||
- name: EL | ||
versions: | ||
- 7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
--- | ||
- include: rhel.yml | ||
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' | ||
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'RedHat' or ansible_distribution == 'Amazon' | ||
|
||
- include: ubuntu.yml | ||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' | ||
|
||
- name: Install dotnet core | ||
package: | ||
name: "{{ dotnet_package }}" | ||
state: present | ||
update_cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,18 @@ | ||
--- | ||
- name: .NET | Add rpm key | ||
rpm_key: | ||
key: https://packages.microsoft.com/keys/microsoft.asc | ||
state: present | ||
register: result | ||
until: '"failed" not in result' | ||
retries: 3 | ||
delay: 5 | ||
|
||
- name: .NET | Add YUM repository | ||
- name: Add YUM repository | ||
yum_repository: | ||
name: packages-microsoft-com-prod | ||
description: Microsoft .NET RHEL Repository | ||
baseurl: https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod | ||
enabled: yes | ||
gpgcheck: yes | ||
gpgkey: https://packages.microsoft.com/keys/microsoft.asc | ||
enabled: yes | ||
retries: 3 | ||
delay: 5 | ||
state: present | ||
|
||
- name: .NET | Install dependencies | ||
- name: Install dependencies | ||
package: | ||
name: "{{ item }}" | ||
state: present | ||
with_items: | ||
- "libicu" | ||
- "libunwind" | ||
|
||
- name: .NET | Install dotnet core | ||
package: | ||
name: "{{ dotnet_rhel_package }}" | ||
state: present | ||
update_cache: true | ||
register: result | ||
until: '"failed" not in result' | ||
retries: 3 | ||
delay: 5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
--- | ||
- name: .NET | Make sure HTTPS is supported by apt | ||
package: | ||
- name: Make sure HTTPS is supported by apt | ||
apt: | ||
name: apt-transport-https | ||
state: present | ||
update_cache: true | ||
update_cache: yes | ||
|
||
- name: .NET | Add apt key | ||
- name: Import Microsoft APT key | ||
apt_key: | ||
url: https://packages.microsoft.com/keys/microsoft.asc | ||
url: "{{ dotnet_debian_repo_gpg_key_url }}" | ||
state: present | ||
register: result | ||
until: '"failed" not in result' | ||
retries: 3 | ||
delay: 5 | ||
|
||
- name: .NET | Add repo for Ubuntu Trusty | ||
apt_repository: | ||
repo: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main | ||
state: present | ||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "14" | ||
|
||
- name: .NET | Add repo for Ubuntu Xenial | ||
- name: Add repo for Ubuntu Xenial | ||
apt_repository: | ||
repo: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main | ||
filename: "dotnetdev" | ||
state: present | ||
update_cache: yes | ||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "16" | ||
|
||
- name: .NET | Install dotnet core SDK | ||
package: | ||
name: "{{ dotnet_ubuntu_package }}" | ||
- name: Add repo for Ubuntu Bionic | ||
apt_repository: | ||
repo: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main | ||
filename: "dotnetdev" | ||
state: present | ||
update_cache: true | ||
register: result | ||
until: '"failed" not in result' | ||
retries: 3 | ||
delay: 5 | ||
|
||
update_cache: yes | ||
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "18" |