Commit 00d929c2 authored by nanahira's avatar nanahira

fix

parent de4b87aa
Pipeline #26744 failed with stage
in 4 minutes and 35 seconds
......@@ -52,7 +52,8 @@
- name: non nfs should disable rpcbind
set_fact:
# append to the list
services_to_disable: ' {{ services_to_disable + [ "rpcbind", "rpcbind.socket" ] }}'
services_to_disable: '{{ services_to_disable + [ "rpcbind", "rpcbind.socket" ] }}'
when: not nfs
- name: disable services
become: true
systemd:
......@@ -60,5 +61,4 @@
state: stopped
enabled: false
ignore_errors: true
when: not nfs
with_items: '{{services_to_disable}}'
......@@ -76,11 +76,11 @@
- name: keep old distribution
set_fact:
target_distribution: '{{ ansible_distribution_release }}'
when: not upgrade or ansible_distribution_release == 'sid' or keep_distro
- name: move to noble
when: not upgrade or ansible_distribution_release == 'sid' or keep_distro or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 24)
- name: move to jammy
set_fact:
target_distribution: 'noble'
when: ansible_distribution == 'Ubuntu' and upgrade and not keep_distro
target_distribution: 'jammy'
when: ansible_distribution == 'Ubuntu' and upgrade and not keep_distro and ansible_distribution_major_version|int < 24
- name: move to bookworm
set_fact:
target_distribution: 'bookworm'
......
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