aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:18:11 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:18:11 +0200
commitb7c1b4ac206db24c0ccacf30c1dc7148b3cf2958 (patch)
treee731b36013248dc3a2b978f9098f9ab5a66d26cd
parentget rid of install_recommends=false for apt packages (diff)
downloadinfra-ansible-b7c1b4ac206db24c0ccacf30c1dc7148b3cf2958.tar.gz
infra-ansible-b7c1b4ac206db24c0ccacf30c1dc7148b3cf2958.zip
switch to ansible.builtin.package in more places
-rw-r--r--roles/apt/tasks/main.yml2
-rw-r--r--roles/pacman/tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml
index d84a687..e24430f 100644
--- a/roles/apt/tasks/main.yml
+++ b/roles/apt/tasks/main.yml
@@ -16,7 +16,7 @@
- name: Install packages
become: true
- ansible.builtin.apt:
+ ansible.builtin.package:
name: '{{ apt_packages }}'
state: present
when: apt_packages | length > 0
diff --git a/roles/pacman/tasks/main.yml b/roles/pacman/tasks/main.yml
index 972fddf..2b613b9 100644
--- a/roles/pacman/tasks/main.yml
+++ b/roles/pacman/tasks/main.yml
@@ -30,7 +30,7 @@
- name: Install packages
become: true
- community.general.pacman:
+ ansible.builtin.package:
name: '{{ pacman_packages }}'
state: present
when: pacman_packages | length > 0