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