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