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