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
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user