mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
Improve package management
This commit is contained in:
parent
90fadaade1
commit
fdc0436a56
3 changed files with 24 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
||||||
when: editor_is_vim | bool
|
when: editor_is_vim | bool
|
||||||
|
|
||||||
- include_tasks: sources.yml
|
- include_tasks: sources.yml
|
||||||
when: add_ethz | bool
|
when: ansible_distribution == 'Debian'
|
||||||
|
|
||||||
- name: Install common base packages [Debian]
|
- name: Install common base packages [Debian]
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -32,18 +32,6 @@
|
||||||
when:
|
when:
|
||||||
ansible_distribution == 'Fedora'
|
ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: Install some common Debian specific packages
|
|
||||||
become: yes
|
|
||||||
apt:
|
|
||||||
package:
|
|
||||||
- debian-goodies
|
|
||||||
- apt-dater-host
|
|
||||||
- apt-transport-https
|
|
||||||
state: present
|
|
||||||
update_cache: yes
|
|
||||||
cache_valid_time: 43200
|
|
||||||
when: ansible_distribution == 'Debian'
|
|
||||||
|
|
||||||
- name: install packages for everyone except centos/rhel
|
- name: install packages for everyone except centos/rhel
|
||||||
become: true
|
become: true
|
||||||
package:
|
package:
|
||||||
|
|
|
@ -1,5 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: add etz apt
|
- name: Install some common Debian specific packages
|
||||||
|
become: yes
|
||||||
|
apt:
|
||||||
|
package:
|
||||||
|
- debian-goodies
|
||||||
|
- apt-dater-host
|
||||||
|
- apt-transport-https
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 43200
|
||||||
|
when: ansible_distribution == 'Debian'
|
||||||
|
|
||||||
|
|
||||||
|
- name: add eth zurich apt
|
||||||
become: true
|
become: true
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
repo: deb https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
||||||
|
@ -9,3 +22,11 @@
|
||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster"
|
- ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster"
|
||||||
|
|
||||||
|
- name: iremove eth zurich apt
|
||||||
|
become: true
|
||||||
|
apt_repository:
|
||||||
|
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
|
||||||
|
state: absent
|
||||||
|
when:
|
||||||
|
- not add_ethz | bool
|
||||||
|
- ansible_distribution == 'Debian'
|
||||||
|
|
|
@ -47,5 +47,5 @@ fedora_packages:
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3
|
- python3
|
||||||
|
|
||||||
playbook_version_number: 8954 # should be over ninethousand
|
playbook_version_number: 8955 # should be over ninethousand
|
||||||
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'
|
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'
|
||||||
|
|
Loading…
Reference in a new issue