Skip to content

Commit

Permalink
Fix typo's
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Jan 10, 2025
1 parent 226eda4 commit 6f4fd71
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## msodbcsql

[![CI](https://github.com/Oefenweb/ansible-msodbcsql/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-msodbcsql/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-git--lfs-blue.svg)](https://galaxy.ansible.com/Oefenweb/msodbcsql)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-msodbcsql-blue.svg)](https://galaxy.ansible.com/Oefenweb/msodbcsql)

Set up [Microsoft ODBC](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver16) in Debian-like systems.
Set up [Microsoft ODBC](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) in Debian-like systems.

#### Requirements

Expand Down
4 changes: 4 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ galaxy_info:
galaxy_tags:
- development
- system
- database
- sql
- r
- cran
dependencies: []
3 changes: 1 addition & 2 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# requirements file
---
collections:
- name: community.general
collections: []
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# tasks file
---
- name: include variables

Check warning on line 3 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.include_vars: "{{ item }}"
with_first_found:
- "_{{ ansible_distribution_release }}.yml"
- "_{{ ansible_distribution | lower }}.yml"
- _default.yml
tags:
- configuration
- msodbcsql

- name: version support

Check warning on line 13 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.import_tasks: version-support.yml
tags:
Expand Down
6 changes: 6 additions & 0 deletions vars/_default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# vars file
---
msodbcsql_repositories:
- type: "deb [arch=amd64 signed-by={{ msodbcsql_keyring_dst }}]"
url: "https://packages.microsoft.com/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/prod {{ ansible_distribution_release }}"
component: main
6 changes: 6 additions & 0 deletions vars/_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# vars file
---
msodbcsql_repositories:
- type: "deb [arch=amd64 signed-by={{ msodbcsql_keyring_dst }}]"
url: "https://packages.microsoft.com/{{ ansible_distribution | lower }}/{{ ansible_distribution_version }}/prod {{ ansible_distribution_release }}"
component: main
16 changes: 6 additions & 10 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# vars file
---
msodbcsql_versions_supported:
- 17
- 18
- '17'
- '18'

msodbcsql_keyring_src: https://packages.microsoft.com/keys/microsoft.asc
msodbcsql_keyring_dst: /usr/share/keyrings/microsoft-prod.gpg
msodbcsql_repositories:
- type: "deb [arch=amd64 signed-by={{ msodbcsql_keyring_dst }}]"
url: "https://packages.microsoft.com/{{ ansible_distribution | lower }}/{{ ansible_distribution_version }}/prod {{ ansible_distribution_release }}"
component: main

msodbcsql_dependencies_pre:
- software-properties-common
Expand All @@ -18,10 +14,10 @@ msodbcsql_dependencies_pre:
- wget

msodbcsql_debconf_selections:
- name: "msodbcsql{{ msodbcsql_version }}"
question: msodbcsql/ACCEPT_EULA
value: true
vtype: boolean
- name: "msodbcsql{{ msodbcsql_version }}"
question: msodbcsql/ACCEPT_EULA
value: true
vtype: boolean

msodbcsql_dependencies:
- "msodbcsql{{ msodbcsql_version }}"

0 comments on commit 6f4fd71

Please sign in to comment.