Update Ansible facts syntax

This commit is contained in:
2026-08-15 19:41:31 +03:00
parent e2302ee025
commit 6026201b75
+4 -3
View File
@@ -1,9 +1,10 @@
- name: Install Docker on Platfom test server
- name: Install Docker on Platfom test servers
hosts: test
become: true
gather_facts: true
tasks:
- name: Install prerequisites
ansible.builtin.apt:
name:
@@ -27,10 +28,10 @@
- name: Add Docker repository
ansible.builtin.apt_repository:
repo: >-
deb [arch={{ ansible_architecture | replace('x86_64', 'amd64') }}
deb [arch={{ ansible_facts['architecture'] | replace('x86_64', 'amd64') }}
signed-by=/etc/apt/keyrings/docker.asc]
https://download.docker.com/linux/ubuntu
{{ ansible_distribution_release }} stable
{{ ansible_facts['distribution_release'] }} stable
state: present
filename: docker