mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Install common base packages [Debian]
|
|
become: yes
|
|
apt:
|
|
package: "{{ base_packages }}"
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 43200
|
|
when:
|
|
- ansible_distribution == 'Debian'
|
|
|
|
- name: Install common base packages [Debian]
|
|
become: yes
|
|
apt:
|
|
package: "{{ debian_packages }}"
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 43200
|
|
when:
|
|
ansible_distribution == 'Debian'
|
|
|
|
- name: Install common base packages [Fedora]
|
|
become: yes
|
|
package:
|
|
name: "{{ base_packages }}"
|
|
state: latest
|
|
when:
|
|
ansible_distribution != 'Debian'
|
|
|
|
- name: Install common base packages [Fedora]
|
|
become: yes
|
|
package:
|
|
name: "{{ fedora_packages }}"
|
|
state: latest
|
|
when:
|
|
ansible_distribution != 'Debian'
|
|
|
|
- name: Install some common Debian specific packages
|
|
become: yes
|
|
apt:
|
|
package:
|
|
- debian-goodies
|
|
- apt-dater-host
|
|
- apt-transport-https
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: 43200
|
|
when: ansible_distribution == 'Debian'
|
|
|
|
|
|
- name: Remove rpcbind, nfs-common
|
|
become: yes
|
|
package:
|
|
name:
|
|
- rpcbind
|
|
- nfs-common
|
|
state: absent
|
|
|
|
|