2022-02-27 13:51:26 +01:00
|
|
|
---
|
2022-08-05 14:03:38 +02:00
|
|
|
# Copyright (c) Ansible Project
|
|
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-02-27 13:51:26 +01:00
|
|
|
# Since Arch Linux is a rolling distribution, it regularly needs its packages upgraded, otherwise some tests might
|
|
|
|
# stop working due to conflicts during package installation. Since there is no good way to do this on container
|
|
|
|
# startup time, we use the setup_pkg_mgr setup role to do this once per CI run (hopefully). In case the Arch Linux
|
|
|
|
# tests are run outside of a container, we're using a date-based tag (see below) to avoid this running more than
|
|
|
|
# once per day.
|
|
|
|
|
|
|
|
- name: Create tag
|
|
|
|
copy:
|
|
|
|
dest: /tmp/.ansible_archlinux_sysupgrade_tag
|
|
|
|
content: |
|
|
|
|
Last ArchLinux system upgrade by integration tests was done on {{ ansible_facts.date_time.date }}.
|
|
|
|
register: archlinux_upgrade_tag
|
|
|
|
|
|
|
|
- name: Upgrade all packages
|
|
|
|
pacman:
|
|
|
|
update_cache: true
|
|
|
|
upgrade: true
|
|
|
|
when: archlinux_upgrade_tag is changed
|
2023-08-30 06:15:51 +02:00
|
|
|
|
|
|
|
- name: Remove EXTERNALLY-MANAGED file
|
|
|
|
file:
|
|
|
|
path: /usr/lib/python{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}/EXTERNALLY-MANAGED
|
|
|
|
state: absent
|