chore: migrate bare ansible_* facts to ansible_facts[] syntax
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
This commit is contained in:
parent
c39cb02b65
commit
de7900fc05
3 changed files with 8 additions and 8 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# install docker - alpine
|
||||
- name: "install docker - alpine"
|
||||
when: "ansible_os_family == 'Alpine'"
|
||||
when: "ansible_facts['os_family'] == 'Alpine'"
|
||||
block:
|
||||
|
||||
# install docker
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
# install docker - debian
|
||||
- name: "install docker - debian"
|
||||
when: "ansible_os_family == 'Debian'"
|
||||
when: "ansible_facts['os_family'] == 'Debian'"
|
||||
block:
|
||||
|
||||
# remove old docker.io packages
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
# add docker gpg key
|
||||
- name: "docker 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"
|
||||
|
||||
|
|
@ -62,10 +62,10 @@
|
|||
- name: "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/{{ ansible_distribution | lower }} \
|
||||
{{ ansible_distribution_release }} stable"
|
||||
https://download.docker.com/linux/{{ ansible_facts['distribution'] | lower }} \
|
||||
{{ ansible_facts['distribution_release'] }} stable"
|
||||
state: "present"
|
||||
filename: "docker"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue