Moving all files to basedir
This commit is contained in:
26
arch_upgrade.yml
Normal file
26
arch_upgrade.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: All Arch hosts up-to-date
|
||||
hosts: arch
|
||||
tasks:
|
||||
- name: Get current Python minor version
|
||||
ansible.builtin.shell:
|
||||
cmd: python --version | grep -Po '\d+\.\d+'
|
||||
register: orig_python
|
||||
- name: Full repository upgrade
|
||||
become: true
|
||||
community.general.pacman:
|
||||
update_cache: true
|
||||
upgrade: true
|
||||
- name: Get new Python minor version
|
||||
ansible.builtin.shell:
|
||||
cmd: python --version | grep -Po '\d+\.\d+'
|
||||
register: new_python
|
||||
- name: AUR upgrade
|
||||
aur:
|
||||
use: pikaur
|
||||
upgrade: true
|
||||
aur_only: true
|
||||
- import_tasks: ../tasks/aur_rebuild.yml
|
||||
vars:
|
||||
package_pattern: python
|
||||
when:
|
||||
- new_python.stdout is version(orig_python.stdout, '>', version_type='strict')
|
||||
Reference in New Issue
Block a user