From: Michael Jeanson Date: Thu, 30 Sep 2021 20:12:25 +0000 (-0400) Subject: ansible: fix deprecated syntax X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=58e747d8a8e96e502e8cf86e31d888cafafebf16;p=lttng-ci.git ansible: fix deprecated syntax Signed-off-by: Michael Jeanson --- diff --git a/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml b/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml index 71b5426..6310f98 100644 --- a/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/babeltrace/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure babeltrace build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ babeltrace_packages }}" + apk: "name={{ babeltrace_packages }} state=present" diff --git a/automation/ansible/roles/babeltrace/tasks/setup-Debian.yml b/automation/ansible/roles/babeltrace/tasks/setup-Debian.yml index d81050f..b2b823b 100644 --- a/automation/ansible/roles/babeltrace/tasks/setup-Debian.yml +++ b/automation/ansible/roles/babeltrace/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure babeltrace build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ babeltrace_packages }}" + apt: "name={{ babeltrace_packages }} state=present" diff --git a/automation/ansible/roles/babeltrace/tasks/setup-RedHat.yml b/automation/ansible/roles/babeltrace/tasks/setup-RedHat.yml index 5bbf974..781feb1 100644 --- a/automation/ansible/roles/babeltrace/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/babeltrace/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure babeltrace build dependencies are installed. dnf: - name: "{{ item }}" + name: "{{ babeltrace_packages }}" state: installed - with_items: "{{ babeltrace_packages }}" diff --git a/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml b/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml index 33546fd..0436b98 100644 --- a/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml +++ b/automation/ansible/roles/babeltrace/tasks/setup-Suse.yml @@ -1,4 +1,3 @@ --- - name: Ensure babeltrace build dependencies are installed. - zypper: "name={{ item }} state=installed update_cache=yes" - with_items: "{{ babeltrace_packages }}" + zypper: "name={{ babeltrace_packages }} state=installed update_cache=yes" diff --git a/automation/ansible/roles/common/tasks/setup-Alpine.yml b/automation/ansible/roles/common/tasks/setup-Alpine.yml index 293cdfe..d6c9d86 100644 --- a/automation/ansible/roles/common/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/common/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure common packages are installed. - apk: "name={{ item }} state=present" - with_items: "{{ common_packages }}" + apk: "name={{ common_packages }} state=present" diff --git a/automation/ansible/roles/common/tasks/setup-Debian.yml b/automation/ansible/roles/common/tasks/setup-Debian.yml index 9c1d000..b1a97fc 100644 --- a/automation/ansible/roles/common/tasks/setup-Debian.yml +++ b/automation/ansible/roles/common/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure common packages are installed. - apt: "name={{ item }} state=present" - with_items: "{{ common_packages }}" + apt: "name={{ common_packages }} state=present" diff --git a/automation/ansible/roles/common/tasks/setup-RedHat.yml b/automation/ansible/roles/common/tasks/setup-RedHat.yml index e21caf6..45d8b02 100644 --- a/automation/ansible/roles/common/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/common/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure common packages are installed. dnf: - name: "{{ item }}" + name: "{{ common_packages }}" state: installed - with_items: "{{ common_packages }}" diff --git a/automation/ansible/roles/common/tasks/setup-Suse.yml b/automation/ansible/roles/common/tasks/setup-Suse.yml index 62ca568..4123ed1 100644 --- a/automation/ansible/roles/common/tasks/setup-Suse.yml +++ b/automation/ansible/roles/common/tasks/setup-Suse.yml @@ -5,9 +5,7 @@ when: common_patterns is not defined - name: Ensure common patterns are installed. - zypper: "name={{ item }} type=pattern state=present update_cache=yes" - with_items: "{{ common_patterns }}" + zypper: "name={{ common_patterns }} type=pattern state=present update_cache=yes" - name: Ensure common packages are installed. - zypper: "name={{ item }} type=package state=present update_cache=yes" - with_items: "{{ common_packages }}" + zypper: "name={{ common_packages }} type=package state=present update_cache=yes" diff --git a/automation/ansible/roles/compilers/tasks/setup-Alpine.yml b/automation/ansible/roles/compilers/tasks/setup-Alpine.yml index 387a52c..c6af31e 100644 --- a/automation/ansible/roles/compilers/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/compilers/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure compilers packages are installed. - apk: "name={{ item }} state=present" - with_items: "{{ compilers_packages }}" + apk: "name={{ compilers_packages }} state=present" diff --git a/automation/ansible/roles/compilers/tasks/setup-Debian.yml b/automation/ansible/roles/compilers/tasks/setup-Debian.yml index 5d150a1..ce01aac 100644 --- a/automation/ansible/roles/compilers/tasks/setup-Debian.yml +++ b/automation/ansible/roles/compilers/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure compilers packages are installed. - apt: "name={{ item }} state=present" - with_items: "{{ compilers_packages }}" + apt: "name={{ compilers_packages }} state=present" diff --git a/automation/ansible/roles/compilers/tasks/setup-RedHat.yml b/automation/ansible/roles/compilers/tasks/setup-RedHat.yml index c45a5cc..b69a135 100644 --- a/automation/ansible/roles/compilers/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/compilers/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure compilers packages are installed. - yum: - name: "{{ item }}" + dnf: + name: "{{ compilers_packages }}" state: installed - with_items: "{{ compilers_packages }}" diff --git a/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml b/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml index 5b8688f..64f96da 100644 --- a/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/cross-compilers/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure cross-compilers packages are installed. - apk: "name={{ item }} state=present" - with_items: "{{ cross_compilers_packages }}" + apk: "name={{ cross_compilers_packages }} state=present" diff --git a/automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml b/automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml index d2be6b9..d08fe47 100644 --- a/automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml +++ b/automation/ansible/roles/cross-compilers/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure cross-compilers packages are installed. - apt: "name={{ item }} state=present" - with_items: "{{ cross_compilers_packages }}" + apt: "name={{ cross_compilers_packages }} state=present" diff --git a/automation/ansible/roles/cross-compilers/tasks/setup-RedHat.yml b/automation/ansible/roles/cross-compilers/tasks/setup-RedHat.yml index a9fc5ed..c8429d2 100644 --- a/automation/ansible/roles/cross-compilers/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/cross-compilers/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure cross-compilers packages are installed. - yum: - name: "{{ item }}" + dnf: + name: "{{ cross_compilers_packages }}" state: installed - with_items: "{{ cross_compilers_packages }}" diff --git a/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml b/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml index a993fcd..396924e 100644 --- a/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/liburcu/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure liburcu build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ liburcu_packages }}" + apk: "name={{ liburcu_packages }} state=present" diff --git a/automation/ansible/roles/liburcu/tasks/setup-Debian.yml b/automation/ansible/roles/liburcu/tasks/setup-Debian.yml index edfe505..5e643e2 100644 --- a/automation/ansible/roles/liburcu/tasks/setup-Debian.yml +++ b/automation/ansible/roles/liburcu/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure liburcu build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ liburcu_packages }}" + apt: "name={{ liburcu_packages }} state=present" diff --git a/automation/ansible/roles/liburcu/tasks/setup-RedHat.yml b/automation/ansible/roles/liburcu/tasks/setup-RedHat.yml index 2975974..621e214 100644 --- a/automation/ansible/roles/liburcu/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/liburcu/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure liburcu build dependencies are installed. dnf: - name: "{{ item }}" + name: "{{ liburcu_packages }}" state: installed - with_items: "{{ liburcu_packages }}" diff --git a/automation/ansible/roles/liburcu/tasks/setup-Suse.yml b/automation/ansible/roles/liburcu/tasks/setup-Suse.yml index 168dfa2..7a2c9d0 100644 --- a/automation/ansible/roles/liburcu/tasks/setup-Suse.yml +++ b/automation/ansible/roles/liburcu/tasks/setup-Suse.yml @@ -1,4 +1,3 @@ --- - name: Ensure liburcu build dependencies are installed. - zypper: "name={{ item }} state=installed update_cache=yes" - with_items: "{{ liburcu_packages }}" + zypper: "name={{ liburcu_packages }} state=installed update_cache=yes" diff --git a/automation/ansible/roles/lttng-analyses/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-analyses/tasks/setup-Alpine.yml index b74cac5..8594e96 100644 --- a/automation/ansible/roles/lttng-analyses/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/lttng-analyses/tasks/setup-Alpine.yml @@ -3,6 +3,5 @@ apk: update_cache=yes - name: Ensure lttng-analyses build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ lttng_analyses_packages }}" + apk: "name={{ lttng_analyses_packages }} state=present" diff --git a/automation/ansible/roles/lttng-analyses/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-analyses/tasks/setup-Debian.yml index 4821712..8ae522d 100644 --- a/automation/ansible/roles/lttng-analyses/tasks/setup-Debian.yml +++ b/automation/ansible/roles/lttng-analyses/tasks/setup-Debian.yml @@ -3,6 +3,5 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure lttng-analyses build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ lttng_analyses_packages }}" + apt: "name={{ lttng_analyses_packages }} state=present" diff --git a/automation/ansible/roles/lttng-analyses/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-analyses/tasks/setup-RedHat.yml index 3f516e3..5572331 100644 --- a/automation/ansible/roles/lttng-analyses/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/lttng-analyses/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure lttng-analyses build dependencies are installed. - yum: - name: "{{ item }}" + dnf: + name: "{{ lttng_analyses_packages }}" state: installed - with_items: "{{ lttng_analyses_packages }}" diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml index cf48ed5..6bc22c9 100644 --- a/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/lttng-modules/tasks/setup-Alpine.yml @@ -3,6 +3,5 @@ apk: update_cache=yes - name: Ensure lttng-modules build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ lttng_modules_packages }}" + apk: "name={{ lttng_modules_packages }} state=present" diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-modules/tasks/setup-Debian.yml index 7146648..939a13d 100644 --- a/automation/ansible/roles/lttng-modules/tasks/setup-Debian.yml +++ b/automation/ansible/roles/lttng-modules/tasks/setup-Debian.yml @@ -3,6 +3,5 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure lttng-modules build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ lttng_modules_packages }}" + apt: "name={{ lttng_modules_packages }} state=present" diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-modules/tasks/setup-RedHat.yml index 5dbdba4..dd26b25 100644 --- a/automation/ansible/roles/lttng-modules/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/lttng-modules/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure lttng-modules build dependencies are installed. dnf: - name: "{{ item }}" + name: "{{ lttng_modules_packages }}" state: installed - with_items: "{{ lttng_modules_packages }}" diff --git a/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml index 9626061..2a702b1 100644 --- a/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml +++ b/automation/ansible/roles/lttng-modules/tasks/setup-Suse.yml @@ -1,4 +1,3 @@ --- - name: Ensure lttng-modules build dependencies are installed. - zypper: "name={{ item }} state=installed update_cache=yes" - with_items: "{{ lttng_modules_packages }}" + zypper: "name={{ lttng_modules_packages }} state=installed update_cache=yes" diff --git a/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml index c2968cf..3352c0a 100644 --- a/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml +++ b/automation/ansible/roles/lttng-scope/tasks/setup-Debian.yml @@ -6,6 +6,5 @@ apt: "name=unity install_recommends=no" - name: Ensure lttng_scope build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ lttng_scope_packages }}" + apt: "name={{ lttng_scope_packages }} state=present" diff --git a/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml index ccd3b7a..5c539d5 100644 --- a/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/lttng-scope/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure lttng_scope build dependencies are installed. - yum: - name: "{{ item }}" + dnf: + name: "{{ lttng_scope_packages }}" state: installed - with_items: "{{ lttng_scope_packages }}" diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml index 1acf9aa..1ec979f 100644 --- a/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/lttng-tools/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure lttng-tools build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ lttng_tools_packages }}" + apk: "name={{ lttng_tools_packages }} state=present" diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-tools/tasks/setup-Debian.yml index 677b838..6c6eb3f 100644 --- a/automation/ansible/roles/lttng-tools/tasks/setup-Debian.yml +++ b/automation/ansible/roles/lttng-tools/tasks/setup-Debian.yml @@ -3,9 +3,7 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure lttng-tools build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ lttng_tools_packages }}" + apt: "name={{ lttng_tools_packages }} state=present" - name: Ensure lttng-tools build dependencies are installed (no recommends). - apt: "name={{ item }} state=present install_recommends=no" - with_items: "{{ lttng_tools_packages_no_recommends }}" + apt: "name={{ lttng_tools_packages_no_recommends }} state=present install_recommends=no" diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-tools/tasks/setup-RedHat.yml index 3fad2e6..e881306 100644 --- a/automation/ansible/roles/lttng-tools/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/lttng-tools/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure lttng-tools build dependencies are installed. dnf: - name: "{{ item }}" + name: "{{ lttng_tools_packages }}" state: installed - with_items: "{{ lttng_tools_packages }}" diff --git a/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml index f3a40cd..6d5e282 100644 --- a/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml +++ b/automation/ansible/roles/lttng-tools/tasks/setup-Suse.yml @@ -1,8 +1,6 @@ --- - name: Ensure lttng-tools build dependencies are installed. - zypper: "name={{ item }} state=installed update_cache=yes" - with_items: "{{ lttng_tools_packages }}" + zypper: "name={{ lttng_tools_packages }} state=installed update_cache=yes" - name: Ensure lttng-tools build dependencies are installed (no recommends). - zypper: "name={{ item }} state=installed disable_recommends=yes" - with_items: "{{ lttng_tools_packages_no_recommends }}" + zypper: "name={{ lttng_tools_packages_no_recommends }} state=installed disable_recommends=yes" diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml b/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml index 7491075..eb1d0c3 100644 --- a/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml +++ b/automation/ansible/roles/lttng-ust/tasks/setup-Alpine.yml @@ -3,5 +3,4 @@ apk: update_cache=yes - name: Ensure lttng-ust build dependencies are installed. - apk: "name={{ item }} state=present" - with_items: "{{ lttng_ust_packages }}" + apk: "name={{ lttng_ust_packages }} state=present" diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-Debian.yml b/automation/ansible/roles/lttng-ust/tasks/setup-Debian.yml index c839a2e..f2f1c06 100644 --- a/automation/ansible/roles/lttng-ust/tasks/setup-Debian.yml +++ b/automation/ansible/roles/lttng-ust/tasks/setup-Debian.yml @@ -3,5 +3,4 @@ apt: update_cache=yes cache_valid_time=86400 - name: Ensure lttng-ust build dependencies are installed. - apt: "name={{ item }} state=present" - with_items: "{{ lttng_ust_packages }}" + apt: "name={{ lttng_ust_packages }} state=present" diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-RedHat.yml b/automation/ansible/roles/lttng-ust/tasks/setup-RedHat.yml index 3bcae48..9b604a9 100644 --- a/automation/ansible/roles/lttng-ust/tasks/setup-RedHat.yml +++ b/automation/ansible/roles/lttng-ust/tasks/setup-RedHat.yml @@ -1,6 +1,5 @@ --- - name: Ensure lttng-ust build dependencies are installed. dnf: - name: "{{ item }}" + name: "{{ lttng_ust_packages }}" state: installed - with_items: "{{ lttng_ust_packages }}" diff --git a/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml b/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml index 39cdbf2..dd0d189 100644 --- a/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml +++ b/automation/ansible/roles/lttng-ust/tasks/setup-Suse.yml @@ -1,4 +1,3 @@ --- - name: Ensure lttng-ust build dependencies are installed. - zypper: "name={{ item }} state=installed update_cache=yes" - with_items: "{{ lttng_ust_packages }}" + zypper: "name={{ lttng_ust_packages }} state=installed update_cache=yes"