1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00

Add option: contrib pkgs

This commit is contained in:
Lilian Roller 2019-07-29 08:57:58 +02:00
parent 573af28fdf
commit e36ed01727
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 32 additions and 1 deletions

View file

@ -19,5 +19,8 @@ print_os_vars: false
# do we want non-free firmware from eth zuerich?
base_pkg_non_free_firmware: false
# do we want contrib from eth zuerich?
base_pkg_contrib: false
# version management
submodules_versioncheck: true

View file

@ -20,6 +20,7 @@
state: present
when:
- not base_pkg_non_free_firmware | bool
- not base_pkg_contrib | bool
- add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
@ -31,6 +32,7 @@
state: absent
when:
- not base_pkg_non_free_firmware | bool
- not base_pkg_contrib | bool
- not add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
@ -42,6 +44,7 @@
state: present
when:
- base_pkg_non_free_firmware | bool
- not base_pkg_contrib | bool
- add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
@ -53,6 +56,31 @@
state: absent
when:
- base_pkg_non_free_firmware | bool
- not base_pkg_contrib | bool
- not add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: add eth zurich apt + contrib + non-free
become: true
apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
state: present
when:
- base_pkg_non_free_firmware | bool
- base_pkg_contrib | bool
- add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'
- name: remove eth zurich apt + contrib + non-free
become: true
apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main contrib non-free
state: absent
when:
- base_pkg_non_free_firmware | bool
- base_pkg_contrib | bool
- not add_ethz | bool
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l' and ansible_distribution_release != 'wheezy'

View file

@ -50,5 +50,5 @@ fedora_packages:
- python3-pip
- python3
playbook_version_number: 8970 # should be over ninethousand
playbook_version_number: 8971 # should be over ninethousand
playbook_version_path: '/etc/ansible-version/base-packages_ffbsee_or_chaos-bodensee_github.version'