ansible: don't install pkgs using loop
This commit is contained in:
parent
657b4bf8bb
commit
98c8bcd181
@ -3,32 +3,28 @@
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name: "{{ item }}"
|
||||
loop: "{{ pkgs_common }}"
|
||||
name: "{{ pkgs_common }}"
|
||||
|
||||
- name: Arch pkgs
|
||||
become: true
|
||||
community.general.pacman:
|
||||
state: present
|
||||
name: "{{ item }}"
|
||||
loop: "{{ pkgs_arch }}"
|
||||
name: "{{ pkgs_arch }}"
|
||||
when: ansible_distribution == "Archlinux"
|
||||
|
||||
- name: F38 pkgs
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
state: present
|
||||
name: "{{ item }}"
|
||||
loop: "{{ pkgs_fedora38 }}"
|
||||
name: "{{ pkgs_fedora38 }}"
|
||||
when: ansible_distribution == "Fedora"
|
||||
|
||||
- name: Remove cockpit
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
state: absent
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- cockpit
|
||||
- cockpit-bridge
|
||||
- cockpit-ws
|
||||
name:
|
||||
- cockpit
|
||||
- cockpit-bridge
|
||||
- cockpit-ws
|
||||
when: ansible_distribution == "Fedora"
|
||||
|
Loading…
Reference in New Issue
Block a user