em
/
gjk-ansible-fedora
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

42 lines
913 B
YAML

---
- name: Software setup
hosts: all
user: root
handlers:
- name: Dependency cleanup
ansible.builtin.dnf:
autoremove: true
tasks:
- name: Upgrade packages
ansible.builtin.dnf:
update_cache: true
name: "*"
state: latest
- name: Install applications
ansible.builtin.dnf:
name: "{{ dnf_install }}"
state: present
when: dnf_install
- name: Remove applications
ansible.builtin.dnf:
name: "{{ dnf_remove }}"
state: absent
when: dnf_remove
notify: Dependency cleanup
- name: Install apps from Flatpak
community.general.flatpak:
name: "{{ flatpak_install }}"
state: present
when: flatpak_install
- name: Remove apps from Flatpak
community.general.flatpak:
name: "{{ flatpak_remove }}"
state: absent
when: flatpak_remove