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

Add exception for old pi

This commit is contained in:
Lilian Roller 2019-07-17 14:02:01 +02:00
parent e293378922
commit 287da8f58f
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
5 changed files with 20 additions and 11 deletions

View file

@ -1,2 +1,3 @@
skip_list: skip_list:
- '403' - '403'
- '204'

View file

@ -16,21 +16,22 @@
update_cache: yes update_cache: yes
cache_valid_time: 43200 cache_valid_time: 43200
when: when:
ansible_os_family == 'Debian' - ansible_os_family == 'Debian'
- ansible_machine != 'armv6l'
- name: Install common base packages [all] - name: Install common base packages [all]
become: yes become: yes
package: package:
name: "{{ base_packages }}" name: "{{ base_packages }}"
state: present state: present
when: ansible_machine != 'armv6l'
- name: Install common base packages [Fedora] - name: Install common base packages [Fedora]
become: yes become: yes
package: package:
name: "{{ fedora_packages }}" name: "{{ fedora_packages }}"
state: present state: present
when: when: ansible_distribution == 'Fedora'
ansible_distribution == 'Fedora'
- name: install packages for everyone except centos/rhel - name: install packages for everyone except centos/rhel
become: true become: true
@ -41,6 +42,8 @@
- ansible_os_family != 'RedHat' - ansible_os_family != 'RedHat'
- ansible_distribution_version != "14.04" - ansible_distribution_version != "14.04"
- ansible_distribution_version != "12.04" - ansible_distribution_version != "12.04"
- ansible_distribution_release != 'wheezy'
- ansible_machine != 'armv6l'
- name: Install extra packages - name: Install extra packages
become: true become: true
@ -50,6 +53,7 @@
when: when:
- packages_extra is defined - packages_extra is defined
- packages_extra != '[]' - packages_extra != '[]'
- ansible_machine != 'armv6l'
- name: Remove rpcbind, nfs-common - name: Remove rpcbind, nfs-common
become: yes become: yes
@ -58,6 +62,7 @@
- rpcbind - rpcbind
- nfs-common - nfs-common
state: absent state: absent
when: ansible_machine != 'armv6l'
- name: Upgrade all packages to latest - name: Upgrade all packages to latest
become: true become: true

View file

@ -1,4 +1,4 @@
--- ---
- name: Print OS Infos - name: Print OS Infos
debug: debug:
msg: " ansible_os_family = '{{ ansible_os_family }}'\n ansible_distribution = '{{ ansible_distribution }}'\n\n\n ansible_hostname = '{{ ansible_hostname }}'\n ansible_fqdn = '{{ ansible_fqdn }}'\n" msg: " ansible_os_family = '{{ ansible_os_family }}'\n ansible_distribution = '{{ ansible_distribution }}'\n ansible_distribution_version = '{{ ansible_distribution_version }}'\n ansible_distribution_release = '{{ ansible_distribution_release }}'\n ansible_machine = '{{ ansible_machine }}'\n\n\n ansible_hostname = '{{ ansible_hostname }}'\n ansible_fqdn = '{{ ansible_fqdn }}'\n"

View file

@ -9,8 +9,9 @@
state: present state: present
update_cache: yes update_cache: yes
cache_valid_time: 43200 cache_valid_time: 43200
when: ansible_distribution == 'Debian' when:
- ansible_distribution == 'Debian'
- ansible_machine != 'armv6l'
- name: add eth zurich apt - name: add eth zurich apt
become: true become: true
@ -21,8 +22,9 @@
- add_ethz | bool - add_ethz | bool
- ansible_distribution == 'Debian' - ansible_distribution == 'Debian'
- ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster" - ansible_distribution_release == "wheezy" or ansible_distribution_release == "buster"
- ansible_machine != 'armv6l'
- name: iremove eth zurich apt - name: remove eth zurich apt
become: true become: true
apt_repository: apt_repository:
repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main repo: deb-src https://debian.ethz.ch/debian/ {{ ansible_distribution_release }} main
@ -30,3 +32,4 @@
when: when:
- not add_ethz | bool - not add_ethz | bool
- ansible_distribution == 'Debian' - ansible_distribution == 'Debian'
- ansible_machine != 'armv6l'

View file

@ -14,17 +14,17 @@ base_packages:
- net-tools - net-tools
- links - links
debian_packages: debian_packages:
- debian-goodies
- molly-guard - molly-guard
- mtr-tiny - mtr-tiny
- knot-dnsutils - knot-dnsutils
- aptitude
- python-apt - python-apt
- python3-apt - python3-apt
- fio - fio
- debian-goodies
- apt-dater-host - apt-dater-host
- apt-transport-https - apt-transport-https
- aptitude
packages_for_all_except_rhel: packages_for_all_except_rhel:
- ranger - ranger
@ -47,5 +47,5 @@ fedora_packages:
- python3-pip - python3-pip
- python3 - python3
playbook_version_number: 8961 # should be over ninethousand playbook_version_number: 8964 # 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'