[TIDY] Move to ansible_facts dict instead of injected variables
This commit is contained in:
parent
d1c6d34a64
commit
1c734cefb1
15 changed files with 39 additions and 39 deletions
|
|
@ -6,14 +6,14 @@
|
|||
- name: Docker - Install
|
||||
ansible.builtin.include_tasks: "{{ item }}"
|
||||
with_first_found:
|
||||
- "docker-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"
|
||||
- "docker-{{ ansible_distribution }}.yml"
|
||||
- "docker-{{ ansible_os_family }}.yml"
|
||||
- "docker-{{ ansible_facts['distribution'] }}.{{ ansible_facts['distribution_release'] }}.yml"
|
||||
- "docker-{{ ansible_facts['distribution'] }}.yml"
|
||||
- "docker-{{ ansible_facts['os_family'] }}.yml"
|
||||
|
||||
# Other setup tasks
|
||||
- name: Docker - Add standard user to docker group
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
name: "{{ ansible_facts['user_id'] }}"
|
||||
groups: docker
|
||||
append: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue