Commit 7922767b authored by nanahira's avatar nanahira

support of ubuntu unstable

parent c85aeeeb
Pipeline #4223 failed with stage
in 10 seconds
......@@ -7,7 +7,7 @@
become: true
apt:
name: exuberant-ctags
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release != 'focal'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int < 20
- name: remove old ctags
become: true
apt:
......@@ -15,22 +15,22 @@
state: absent
purge: true
autoremove: true
when: ansible_distribution == 'Debian' or ansible_distribution_release == 'focal'
when: ansible_distribution == 'Debian' or ansible_distribution_major_version|int >= 20
- name: ctags in new Ubuntu and Debian
become: true
apt:
name: universal-ctags
when: ansible_distribution == 'Debian' or ansible_distribution_release == 'focal'
when: ansible_distribution == 'Debian' or ansible_distribution_major_version|int >= 20
- name: non-focal packages
become: true
apt:
name: python-setuptools,python-dev,python-pip
when: ansible_distribution_release != 'focal' and ansible_distribution_release != 'sid'
when: ansible_distribution_major_version|int < 20 and ansible_distribution_release != 'sid'
- name: focal packages
become: true
apt:
name: python-is-python3
when: ansible_distribution_release == 'focal'
when: ansible_distribution_major_version|int >= 20
- name: pve kernel header
become: true
apt:
......
......@@ -44,7 +44,7 @@
become: true
apt:
name: python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname
when: ansible_os_family == 'Debian' and ansible_distribution_release != 'sid' and ansible_distribution_release != 'focal'
when: ansible_os_family == 'Debian' and ansible_distribution_release != 'sid' and ansible_distribution_major_version|int < 20
- name: clean yum Docker
become: true
yum:
......
......@@ -5,11 +5,11 @@
- name: set distribution string
set_fact:
container_runtime_distribution_string: '{{ ansible_distribution | lower }}{{ ansible_distribution_version }}'
when: ansible_distribution_release != 'focal'
when: ansible_distribution_major_version|int < 20
- name: set distribution string for Ubuntu 20
set_fact:
container_runtime_distribution_string: 'ubuntu18.04'
when: ansible_distribution_release == 'focal'
when: ansible_distribution_major_version|int >= 20
- name: container runtime apt repo
become: true
apt_repository:
......
......@@ -100,7 +100,7 @@
state: absent
autoremove: yes
purge: yes
when: ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_release != 'focal'
when: ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_major_version|int < 20
- name: remove not proper installed wireguard
become: true
apt:
......@@ -108,13 +108,13 @@
state: absent
autoremove: yes
purge: yes
when: ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_release != 'focal'
when: ansible_distribution == 'Ubuntu' and upgrade and ansible_distribution_major_version|int < 20
- name: remove not proper installed wireguard repo
become: true
file:
path: '/etc/apt/sources.list.d/wireguard_ubuntu_wireguard_{{ ansible_distribution_release|lower }}.list'
state: absent
when: ansible_distribution == 'Ubuntu' and (upgrade or ansible_distribution_release == 'focal')
when: ansible_distribution == 'Ubuntu' and (upgrade or ansible_distribution_major_version|int >= 20)
- name: Ubuntu laptop disable lid
become: true
blockinfile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment