From b83a5e98165ea85e5867824d973e84bf43868fc9 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Wed, 13 Sep 2023 21:57:41 +0200 Subject: [PATCH] fix linting --- molecule/with_custom_repo/verify.yml | 4 ---- tasks/main.yml | 2 +- tasks/main_repositories.yml | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/molecule/with_custom_repo/verify.yml b/molecule/with_custom_repo/verify.yml index 0a29147..8418cb9 100644 --- a/molecule/with_custom_repo/verify.yml +++ b/molecule/with_custom_repo/verify.yml @@ -68,10 +68,6 @@ - stat_etc_apt_sources_list_d.stat.gr_name == 'root' - stat_etc_apt_sources_list_d.stat.mode == '0644' - - name: test - debug: - msg: "{{ slurp_etc_apt_sources_list_d.content|b64decode }}" - - name: "Verify file /etc/apt/sources.list.d/{{ ansible_distribution|lower }}" vars: expected_source_list_content: diff --git a/tasks/main.yml b/tasks/main.yml index 97f1620..a21273d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,7 +7,7 @@ - name: "Import prerequisites.yml" ansible.builtin.include_tasks: prerequisites.yml -- name: "Import main {{ ansible_distribution|lower }} repositories" +- name: "Import main repositories for {{ ansible_distribution|lower }}" ansible.builtin.include_tasks: "main_repositories.yml" when: manage_repositories_enable_default_repo diff --git a/tasks/main_repositories.yml b/tasks/main_repositories.yml index 697c7c3..57f9bf6 100644 --- a/tasks/main_repositories.yml +++ b/tasks/main_repositories.yml @@ -32,7 +32,7 @@ replace: "{{ sources_list_new_content }}" when: sources_list_current_content_str != sources_list_new_content -- name: "Configure {{ ansible_distribution|lower }} main repositories into sources.list" +- name: "Configure main repositories into sources.list.d for {{ ansible_distribution|lower }} " ansible.builtin.deb822_repository: name: "{{ item.name }}" types: "{{item.types}}"