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 nocows = 1
roles_path = ./ansible_roles roles_path = ./ansible_roles
library = ./ansible_roles/firefox/library library = ./ansible_roles/firefox/library
interpreter_python = "auto_silent"

View File

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