From dc98a8220cdbc87af64ba9fbededd9b34b53e3a4 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 19 Jan 2023 13:00:31 +0100 Subject: [PATCH] don't pass `warn: false` to `command` module this is not supported anymore in ansible-core 2.14 --- roles/foreman_client_repositories/tasks/main.yml | 2 -- roles/foreman_repositories/tasks/main.yml | 2 -- roles/foreman_repositories/tasks/redhat_staging_repos.yml | 1 - roles/katello_repositories/tasks/main.yml | 2 -- roles/katello_repositories/tasks/staging_repos.yml | 1 - 5 files changed, 8 deletions(-) diff --git a/roles/foreman_client_repositories/tasks/main.yml b/roles/foreman_client_repositories/tasks/main.yml index 8100d0ccc..f48df7b15 100644 --- a/roles/foreman_client_repositories/tasks/main.yml +++ b/roles/foreman_client_repositories/tasks/main.yml @@ -5,8 +5,6 @@ - name: 'Clean yum' command: 'yum clean all' - args: - warn: false tags: - packages when: ansible_os_family == 'RedHat' diff --git a/roles/foreman_repositories/tasks/main.yml b/roles/foreman_repositories/tasks/main.yml index c13c0ee75..ee1b7e848 100644 --- a/roles/foreman_repositories/tasks/main.yml +++ b/roles/foreman_repositories/tasks/main.yml @@ -14,8 +14,6 @@ - name: 'Clean yum' command: 'yum clean all' - args: - warn: false tags: - packages when: ansible_os_family == 'RedHat' diff --git a/roles/foreman_repositories/tasks/redhat_staging_repos.yml b/roles/foreman_repositories/tasks/redhat_staging_repos.yml index b4a79b6eb..5d839af44 100644 --- a/roles/foreman_repositories/tasks/redhat_staging_repos.yml +++ b/roles/foreman_repositories/tasks/redhat_staging_repos.yml @@ -46,7 +46,6 @@ # https://github.com/ansible/ansible/issues/56504 # https://github.com/ansible/ansible/issues/64852 args: - warn: False creates: /etc/dnf/modules.d/foreman.module when: - foreman_repositories_version == "nightly" or foreman_repositories_version is version('3.2', '>=') diff --git a/roles/katello_repositories/tasks/main.yml b/roles/katello_repositories/tasks/main.yml index f48e6b906..0936ea383 100644 --- a/roles/katello_repositories/tasks/main.yml +++ b/roles/katello_repositories/tasks/main.yml @@ -12,8 +12,6 @@ - name: 'Clean yum' command: 'yum clean all' - args: - warn: false tags: - packages when: ansible_os_family == 'RedHat' diff --git a/roles/katello_repositories/tasks/staging_repos.yml b/roles/katello_repositories/tasks/staging_repos.yml index febe644ce..b572bade7 100644 --- a/roles/katello_repositories/tasks/staging_repos.yml +++ b/roles/katello_repositories/tasks/staging_repos.yml @@ -37,7 +37,6 @@ # https://github.com/ansible/ansible/issues/56504 # https://github.com/ansible/ansible/issues/64852 args: - warn: False creates: /etc/dnf/modules.d/katello.module when: - katello_repositories_version == "nightly" or katello_repositories_version is version('4.4', '>=')