chore same tesk for package install

This commit is contained in:
vincent 2023-03-26 15:31:22 +02:00
parent b7610e0f6b
commit 4d7a396337

View File

@ -5,7 +5,7 @@
force: true force: true
update_cache: false update_cache: false
become: true become: true
when: system_upgrade and ansible_facts['os_family'] == "Archlinux" when: ansible_facts['os_family'] == "Archlinux"
- name: Upgrade system - name: Upgrade system
community.general.pacman: community.general.pacman:
@ -23,12 +23,11 @@
when: upgrade.changed and "linux" in upgrade.packages and system_upgrade and ansible_facts['os_family'] == "Archlinux" when: upgrade.changed and "linux" in upgrade.packages and system_upgrade and ansible_facts['os_family'] == "Archlinux"
become: true become: true
- name: Launch arch base install software - name: Install bases software
community.general.pacman: ansible.builtin.package:
state: present state: present
name: "{{ system_base_softwares }}" name: "{{ system_base_softwares }}"
become: true become: true
when: ansible_facts['os_family'] == "Archlinux"
- name: Install aur workstation soft - name: Install aur workstation soft
aur: aur:
@ -38,18 +37,3 @@
become_user: aur_builder become_user: aur_builder
when: ansible_facts['os_family'] == "Archlinux" and system_base_aur_soft when: ansible_facts['os_family'] == "Archlinux" and system_base_aur_soft
- name: Launch debian base install software
ansible.builtin.apt:
state: present
name: "{{ system_base_softwares }}"
update_cache: true
become: true
when: ansible_facts['os_family'] == "Debian"
- name: Launch redhat base install software
ansible.builtin.dnf:
state: present
name: "{{ system_base_softwares }}"
update_cache: true
become: true
when: ansible_facts['os_family'] == "RedHat"