fix: update outdated ansible_facts notation
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
- name: Download Docker official GPG key
|
||||
ansible.builtin.get_url:
|
||||
url: "https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg"
|
||||
url: "https://download.docker.com/linux/{{ ansible_facts['distribution'] | lower }}/gpg"
|
||||
dest: /etc/apt/keyrings/docker.asc
|
||||
mode: "0644"
|
||||
become: true
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
- name: Add Docker official APT repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [arch={{ dpkg_architecture.stdout }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
|
||||
repo: "deb [arch={{ dpkg_architecture.stdout }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} stable"
|
||||
state: present
|
||||
filename: docker
|
||||
update_cache: yes
|
||||
|
||||
Reference in New Issue
Block a user