diff --git a/README.md b/README.md index 094e15e..f874628 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Microsoft Repository ==================== -An Ansible role for add `Microsoft` repository on Linux distros and install packages from it. +An Ansible role to add `Microsoft` repository on Linux distros and install packages from it. Requirements ------------ @@ -43,7 +43,6 @@ Example Playbook ```yaml --- - - name: 'Setup Microsoft repository' hosts: all @@ -55,7 +54,6 @@ Example Playbook ```yaml --- - - name: 'Setup Microsoft repository' hosts: all @@ -70,7 +68,6 @@ Example Playbook ```yaml --- - - name: 'Setup Microsoft repository' hosts: all diff --git a/meta/main.yml b/meta/main.yml index 6949f95..f989153 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -2,7 +2,7 @@ galaxy_info: author: antmelekhin role_name: microsoft_repository - description: An Ansible role for add Microsoft repository on Linux distros and install packages from it. + description: An Ansible role to add Microsoft repository on Linux distros and install packages from it. license: MIT diff --git a/tasks/install-Debian.yml b/tasks/install-Debian.yml index 13c555e..76d8a6f 100644 --- a/tasks/install-Debian.yml +++ b/tasks/install-Debian.yml @@ -1,5 +1,5 @@ --- -- name: 'Configure APT repository and install packages' +- name: 'Configure APT repository and install Microsoft packages' become: true block: - name: 'Ensure dependencies are installed' @@ -24,7 +24,7 @@ group: 'root' mode: 0644 - - name: 'Install APT packages' + - name: 'Install Microsoft APT packages' ansible.builtin.apt: name: '{{ microsoft_repository_packages }}' update_cache: true diff --git a/tasks/install-RedHat.yml b/tasks/install-RedHat.yml index 15252e8..10782ca 100644 --- a/tasks/install-RedHat.yml +++ b/tasks/install-RedHat.yml @@ -1,5 +1,5 @@ --- -- name: 'Configure DNF/YUM repository and install packages' +- name: 'Configure DNF/YUM repository and install Microsoft packages' become: true block: - name: 'Add Microsoft DNF/YUM key' @@ -15,7 +15,7 @@ group: 'root' mode: 0644 - - name: 'Install DNF/YUM packages' + - name: 'Install Microsoft DNF/YUM packages' ansible.builtin.package: name: '{{ microsoft_repository_packages }}' state: present diff --git a/tasks/main.yml b/tasks/main.yml index ec3d064..01a9b2a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: 'Include OS-specific variables' +- name: 'Include OS-specific Microsoft variables' ansible.builtin.include_vars: '{{ distribution }}' with_first_found: - '{{ ansible_distribution }}.yml' @@ -7,5 +7,5 @@ loop_control: loop_var: distribution -- name: 'Include OS-specific tasks for install packages' +- name: 'Include OS-specific tasks to install Microsoft packages' ansible.builtin.include_tasks: 'install-{{ ansible_os_family }}.yml' diff --git a/templates/microsoft.list.j2 b/templates/microsoft.list.j2 index fa6ca9d..c0d5e9d 100644 --- a/templates/microsoft.list.j2 +++ b/templates/microsoft.list.j2 @@ -1,5 +1,4 @@ {{ ansible_managed | comment }} - {% for microsoft_repository_dir in microsoft_repository_dirs_list %} {% if microsoft_repository_dir.type is defined and microsoft_repository_dir.type == 'alternate' %} deb [arch=amd64,arm64,armhf] {{ microsoft_repository_mirror }}/repos/{{ microsoft_repository_dir.name }} {{ ansible_distribution_release }} main diff --git a/templates/microsoft.repo.j2 b/templates/microsoft.repo.j2 index 22ded50..7242560 100644 --- a/templates/microsoft.repo.j2 +++ b/templates/microsoft.repo.j2 @@ -1,5 +1,4 @@ {{ ansible_managed | comment }} - {% for microsoft_repository_dir in microsoft_repository_dirs_list %} [packages-microsoft-com-{{ microsoft_repository_dir.name }}] {% if microsoft_repository_dir.type is defined and microsoft_repository_dir.type == 'alternate' %}