Group packages

This commit is contained in:
Simen Røstvik 2022-11-08 21:41:19 +01:00
parent 886943038e
commit b2e4b49f05
No known key found for this signature in database
3 changed files with 30 additions and 25 deletions

View File

@ -19,22 +19,22 @@ users:
password: "{{ secret_rox_pass }}" password: "{{ secret_rox_pass }}"
package_list: package_list:
- name: bash-completion - bash-completion
- name: ca-certificates - ca-certificates
- name: curl - curl
- name: git - git
- name: gnupg2 - gnupg2
- name: htop - htop
- name: jq - jq
- name: ncdu - ncdu
- name: neofetch - neofetch
- name: net-tools - net-tools
- name: python3 - python3
- name: python3-apt - python3-apt
- name: python3-pip - python3-pip
- name: software-properties-common - software-properties-common
- name: tmux - tmux
- name: wget - wget
dmasq_local_domain: "{{ secret_local_domain }}" dmasq_local_domain: "{{ secret_local_domain }}"

View File

@ -137,11 +137,10 @@
- name: Install kubernetes packages - name: Install kubernetes packages
become: "{{ do_become }}" become: "{{ do_become }}"
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ item }}={{ kube_apt }}" name:
- kubelet={{ kube_apt }}
- kubeadm={{ kube_apt }}
state: present state: present
with_items:
- kubelet
- kubeadm
- name: Hold kubernetes version - name: Hold kubernetes version
become: "{{ do_become }}" become: "{{ do_become }}"

View File

@ -66,11 +66,8 @@
- name: Install packages - name: Install packages
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ item.name | default(omit) }}" name: "{{package_list}}"
state: latest state: latest
default_release: "{{ item.default_release | default(omit) }}"
with_items:
- "{{package_list}}"
- name: Install pip packages - name: Install pip packages
ansible.builtin.pip: ansible.builtin.pip:
@ -179,7 +176,16 @@
- name: Install packages - name: Install packages
become: "{{ do_become }}" become: "{{ do_become }}"
ansible.builtin.apt: ansible.builtin.apt:
name: libraspberrypi-bin name: "{{ item }}"
loop:
- libraspberrypi-bin
- linux-modules-extra-raspi
- vlan
- name: Add the 802.1q module
community.general.modprobe:
name: 8021q
state: present
- name: Place PoE fan file - name: Place PoE fan file
become: "{{ do_become }}" become: "{{ do_become }}"