mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-12-08 10:26:35 +00:00
Why: - Ansible 2.20+ deprecates INJECT_FACTS_AS_VARS and direct usage of top-level ansible_* facts. - This change updates all affected roles and vars files to the new supported syntax. - Ensures compatibility with upcoming Ansible 2.24 removal of implicit fact injection. Conversation reference: https://chatgpt.com/share/692f639b-1380-800f-9f18-732f7108e9e2
21 lines
553 B
YAML
21 lines
553 B
YAML
---
|
|
- name: "Check if {{ PATH_DOCKER_COMPOSE_INSTANCES }} directory exists"
|
|
stat:
|
|
path: "{{ PATH_DOCKER_COMPOSE_INSTANCES }}"
|
|
register: docker_compose_directory_stat
|
|
|
|
- name: "Update with pacman"
|
|
include_role:
|
|
name: update-pacman
|
|
when:
|
|
- ansible_facts['distribution'] == 'Archlinux'
|
|
- run_once_update_pacman is not defined
|
|
|
|
- name: "Update with apt"
|
|
include_role:
|
|
name: update-apt
|
|
when:
|
|
- ansible_facts['distribution'] == "Debian"
|
|
- run_once_update_apt is not defined
|
|
|
|
- include_tasks: utils/once_finalize.yml |