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 @@ ...@@ -7,7 +7,7 @@
become: true become: true
apt: apt:
name: exuberant-ctags 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 - name: remove old ctags
become: true become: true
apt: apt:
...@@ -15,22 +15,22 @@ ...@@ -15,22 +15,22 @@
state: absent state: absent
purge: true purge: true
autoremove: 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 - name: ctags in new Ubuntu and Debian
become: true become: true
apt: apt:
name: universal-ctags 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 - name: non-focal packages
become: true become: true
apt: apt:
name: python-setuptools,python-dev,python-pip 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 - name: focal packages
become: true become: true
apt: apt:
name: python-is-python3 name: python-is-python3
when: ansible_distribution_release == 'focal' when: ansible_distribution_major_version|int >= 20
- name: pve kernel header - name: pve kernel header
become: true become: true
apt: apt:
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
become: true become: true
apt: apt:
name: python-backports-shutil-get-terminal-size,python-backports.ssl-match-hostname 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 - name: clean yum Docker
become: true become: true
yum: yum:
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
- name: set distribution string - name: set distribution string
set_fact: set_fact:
container_runtime_distribution_string: '{{ ansible_distribution | lower }}{{ ansible_distribution_version }}' 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 - name: set distribution string for Ubuntu 20
set_fact: set_fact:
container_runtime_distribution_string: 'ubuntu18.04' container_runtime_distribution_string: 'ubuntu18.04'
when: ansible_distribution_release == 'focal' when: ansible_distribution_major_version|int >= 20
- name: container runtime apt repo - name: container runtime apt repo
become: true become: true
apt_repository: apt_repository:
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
state: absent state: absent
autoremove: yes autoremove: yes
purge: 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 - name: remove not proper installed wireguard
become: true become: true
apt: apt:
...@@ -108,13 +108,13 @@ ...@@ -108,13 +108,13 @@
state: absent state: absent
autoremove: yes autoremove: yes
purge: 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 - name: remove not proper installed wireguard repo
become: true become: true
file: file:
path: '/etc/apt/sources.list.d/wireguard_ubuntu_wireguard_{{ ansible_distribution_release|lower }}.list' path: '/etc/apt/sources.list.d/wireguard_ubuntu_wireguard_{{ ansible_distribution_release|lower }}.list'
state: absent 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 - name: Ubuntu laptop disable lid
become: true become: true
blockinfile: 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