Conversation
ksimuk
reviewed
Jul 30, 2020
Comment on lines
+5
to
+18
| - apt: update_cache=yes | ||
|
|
||
| - name: Add the Microsoft package signing key to your list of trusted keys and add the package repository | ||
| get_url: | ||
| url="https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb" | ||
| dest="/home/codio/packages-microsoft-prod.deb" | ||
|
|
||
| - name: Install packages-microsoft-prod | ||
| apt: deb="/home/codio/packages-microsoft-prod.deb" | ||
| sudo: true | ||
|
|
||
| - name: Run the equivalent of "apt-get update" as a separate step | ||
| apt: | ||
| update_cache: yes |
Member
There was a problem hiding this comment.
use apt from url like:
- name: Install OmniDB
apt:
deb: https://github.com/MaximKraev/OmniDB/releases/download/2.17.0-1/omnidb-server_2.17.0-debian-amd64.deb
also you do not need update_cache separately can be added to the next command
ksimuk
reviewed
Jul 30, 2020
Comment on lines
+20
to
+42
| - name: Install apt-transport-https | ||
| apt: name=apt-transport-https state=present | ||
|
|
||
| - name: Install dotnet-sdk-3.1 | ||
| apt: | ||
| name: dotnet-sdk-3.1 | ||
| state: present | ||
| update_cache: yes | ||
|
|
||
| - name: Install aspnetcore-runtime-3.1 | ||
| apt: | ||
| name: aspnetcore-runtime-3.1 | ||
| state: present | ||
| update_cache: yes | ||
|
|
||
| - name: Install mono dependencies | ||
| apt: | ||
| name: | ||
| - dirmngr | ||
| - gnupg | ||
| - ca-certificates | ||
| state: present | ||
| update_cache: yes |
Member
There was a problem hiding this comment.
merge all into one ansible instruction to install all packets
ksimuk
reviewed
Jul 30, 2020
Comment on lines
+44
to
+51
| - name: Add mono repo to system | ||
| shell: | | ||
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
| echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | ||
| sudo apt update | ||
|
|
||
| - name: Install mono-complete | ||
| apt: name=mono-complete state=present No newline at end of file |
Member
There was a problem hiding this comment.
add the repo in the beginning and install mono-complete together with other packages.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ansible:
There is probably a better way to add the keys and package for mono as opposed to the script but unclear how to specify
apt updateinstead ofapt-get update