Commit 665c2aab authored by nanahira's avatar nanahira

fixes

parent 9cdc3e03
...@@ -23,6 +23,11 @@ ...@@ -23,6 +23,11 @@
chain: FORWARD chain: FORWARD
flush: true flush: true
when: "ansible_virtualization_role == 'host'" when: "ansible_virtualization_role == 'host'"
- name: install a python alternate to prevent ansible problems
become: true
apt:
name: python-is-python3
when: ansible_distribution == 'Ubuntu' and upgrade
- name: 系统源 重启 - name: 系统源 重启
become: true become: true
shell: reboot shell: reboot
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
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_release != 'focal'
- name: remove not proper installed wireguard repo - name: remove not proper installed wireguard repo
become: true become: true
apt_repository: apt_repository:
repo: ppa:wireguard/wireguard repo: ppa:wireguard/wireguard
......
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