2024-03-01 18:32:37 +00:00
|
|
|
- hosts: all
|
|
|
|
tasks:
|
2024-07-19 14:55:46 +00:00
|
|
|
- name: Install system dependencies
|
|
|
|
shell: dnf install -y python3-libdnf5
|
|
|
|
become: true
|
|
|
|
|
2024-06-13 08:46:46 +00:00
|
|
|
- name: Upgrade all packages
|
|
|
|
ansible.builtin.dnf:
|
|
|
|
name: "*"
|
|
|
|
state: latest
|
|
|
|
become: true
|
|
|
|
|
2024-03-01 18:32:37 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- 'jq'
|
|
|
|
- 'just'
|
|
|
|
- 'ostree'
|
|
|
|
- 'python3-pyyaml'
|
|
|
|
- 'rpm-ostree'
|
|
|
|
- 'selinux-policy-targeted'
|
|
|
|
state: present
|
2024-03-01 18:37:01 +00:00
|
|
|
become: true
|
2024-03-01 17:30:47 +00:00
|
|
|
|
2024-03-01 18:32:37 +00:00
|
|
|
- name: Validate manifests and scripts syntax
|
|
|
|
ansible.builtin.command:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: just validate
|
2024-03-01 17:30:47 +00:00
|
|
|
|
2024-03-28 17:12:37 +00:00
|
|
|
- name: Verify that the comps and manifests are synced
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just validate comps-sync-check && touch .zuulci.comps"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-03-01 17:30:47 +00:00
|
|
|
- name: Perform dependency resolution for Silverblue
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run silverblue && touch .zuulci.silverblue"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-07-26 15:14:40 +00:00
|
|
|
- name: Perform dependency resolution for Silverblue (ostree classic)
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run silverblue-ostree && touch .zuulci.silverblue-ostree"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-03-01 17:30:47 +00:00
|
|
|
- name: Perform dependency resolution for Kinoite
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run kinoite && touch .zuulci.kinoite"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-07-26 15:14:40 +00:00
|
|
|
- name: Perform dependency resolution for Kinoite (ostree classic)
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run kinoite-ostree && touch .zuulci.kinoite-ostree"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-03-01 17:30:47 +00:00
|
|
|
- name: Perform dependency resolution for Sway Atomic
|
|
|
|
ansible.builtin.shell:
|
2024-03-01 18:32:37 +00:00
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
2024-06-11 13:19:53 +00:00
|
|
|
cmd: "just compose-dry-run sway-atomic && touch .zuulci.sway-atomic"
|
2024-03-01 17:30:47 +00:00
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-07-26 15:14:40 +00:00
|
|
|
- name: Perform dependency resolution for Sway Atomic (ostree classic)
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run sway-atomic-ostree && touch .zuulci.sway-atomic-ostree"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-03-01 17:30:47 +00:00
|
|
|
- name: Perform dependency resolution for Budgie Atomic
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
2024-06-11 13:19:53 +00:00
|
|
|
cmd: "just compose-dry-run budgie-atomic && touch .zuulci.budgie-atomic"
|
2024-03-01 17:30:47 +00:00
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-07-26 15:14:40 +00:00
|
|
|
- name: Perform dependency resolution for Budgie Atomic (ostree classic)
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
|
|
cmd: "just compose-dry-run budgie-atomic-ostree && touch .zuulci.budgie-atomic-ostree"
|
|
|
|
# Still run the next step if this one fails
|
|
|
|
ignore_errors: true
|
|
|
|
|
2024-08-29 17:58:49 +00:00
|
|
|
- name: Compose the base variant
|
|
|
|
ansible.builtin.command:
|
2024-03-01 18:32:37 +00:00
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
2024-08-29 17:58:49 +00:00
|
|
|
cmd: just compose-image base-atomic
|
2024-03-01 17:30:47 +00:00
|
|
|
|
|
|
|
- name: Check if any previous dependency resolution steps failed
|
|
|
|
ansible.builtin.shell:
|
|
|
|
chdir: "{{ zuul.project.src_dir }}"
|
2024-07-26 15:14:40 +00:00
|
|
|
cmd: "[[ -f .zuulci.comps ]] && [[ -f .zuulci.silverblue ]] && [[ -f .zuulci.silverblue-ostree ]] && [[ -f .zuulci.kinoite ]] && [[ -f .zuulci.kinoite-ostree ]] && [[ -f .zuulci.sway-atomic ]] && [[ -f .zuulci.sway-atomic-ostree ]] && [[ -f .zuulci.budgie-atomic ]] && [[ -f .zuulci.budgie-atomic-ostree ]]"
|