1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

Improve package management

This commit is contained in:
L3D 2019-07-15 23:47:30 +02:00
parent 90fadaade1
commit fdc0436a56
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 24 additions and 15 deletions

View file

@ -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:

View file

@ -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'

View file

@ -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'