Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/installer: supporting installer on Ubuntu 20 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
dest: "{{ omsagent_tmp }}"
mode: "750"

- name: Correct python version selected
alternatives:
link: /usr/bin/python
name: python
path: "{{ discovered_interpreter_python }}"
priority: 0

- name: ensure directory exist
file:
path: /etc/opt/microsoft/omsagent
Expand All @@ -32,9 +39,9 @@

- name: run script (can take a couple of minutes)
command: "{{ omsagent_tmp }}/onboard_agent.sh"
register: shell_res
args:
creates: omsagent-{{ omsagent_version }}.universal.{{ omsagent_creates_pattern }}.sh
chdir: "{{ omsagent_tmp }}"
creates: /opt/omi/bin/omiserver

- name: wait for omid to start from script
pause:
Expand Down
11 changes: 8 additions & 3 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
# vars file for omsagent

_omsagent_requirements:
default:
Debian:
- linux-libc-dev
- python3-libtiff
- libpam-modules
RedHat:
- glibc
- openssl
- curl
- python-ctypes
- pam
default:
- openssl
- curl
- wget
- which

Expand Down