Update Ansible facts syntax
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user