Fix all the deprecation warnings

This commit is contained in:
2025-11-11 15:08:33 +01:00
parent a6f9893fac
commit 966760bff5
2 changed files with 4 additions and 3 deletions

View File

@@ -3,3 +3,4 @@ retry_files_enabled = False
nocows = 1
roles_path = ./ansible_roles
library = ./ansible_roles/firefox/library
interpreter_python = "auto_silent"

View File

@@ -6,13 +6,13 @@
tasks:
- name: Read machine-specific variables
ansible.builtin.include_vars:
file: _machines/{{ ansible_hostname }}.yml
file: _machines/{{ ansible_facts['hostname'] }}.yml
name: machine
tags:
- always
- ansible.builtin.set_fact:
distro: "{{ ansible_distribution | lower }}"
distro: "{{ ansible_facts['distribution'] | lower }}"
tags:
- always
@@ -881,7 +881,7 @@
- include_tasks: "{{ item }}"
with_first_found:
- files:
- "_machines/{{ ansible_hostname }}-tasks.yml"
- "_machines/{{ ansible_facts['hostname'] }}-tasks.yml"
skip: true
tags:
- always