From 966760bff550094bf9df0358b136a6fe776b1142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Tue, 11 Nov 2025 15:08:33 +0100 Subject: [PATCH] Fix all the deprecation warnings --- ansible.cfg | 1 + playbook.yml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index 57d688e..49cef77 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -3,3 +3,4 @@ retry_files_enabled = False nocows = 1 roles_path = ./ansible_roles library = ./ansible_roles/firefox/library +interpreter_python = "auto_silent" diff --git a/playbook.yml b/playbook.yml index d1109f5..fc31f3c 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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