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 hosts: test
become: true become: true
gather_facts: true gather_facts: true
tasks: tasks:
- name: Install prerequisites - name: Install prerequisites
ansible.builtin.apt: ansible.builtin.apt:
name: name:
@@ -27,10 +28,10 @@
- name: Add Docker repository - name: Add Docker repository
ansible.builtin.apt_repository: ansible.builtin.apt_repository:
repo: >- 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] signed-by=/etc/apt/keyrings/docker.asc]
https://download.docker.com/linux/ubuntu https://download.docker.com/linux/ubuntu
{{ ansible_distribution_release }} stable {{ ansible_facts['distribution_release'] }} stable
state: present state: present
filename: docker filename: docker