2023-04-05 20:37:40 +00:00
|
|
|
---
|
|
|
|
# task/prerequisites file for install_docker
|
2023-04-07 22:24:04 +00:00
|
|
|
- name: "Install required roles"
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: "ansible-galaxy install {{ item }}"
|
|
|
|
loop: "{{ install_docker_prerequisites_roles }}"
|
|
|
|
changed_when: false
|
2023-05-28 11:43:45 +00:00
|
|
|
become: false
|
2023-04-07 22:24:04 +00:00
|
|
|
delegate_to: localhost
|
|
|
|
run_once: true
|
2023-04-09 20:17:16 +00:00
|
|
|
|
|
|
|
- name: "Create group {{ install_docker_group }}"
|
|
|
|
ansible.builtin.group:
|
|
|
|
name: "{{ install_docker_group }}"
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: "Create directory {{ install_docker_daemon_dir }}"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ install_docker_daemon_dir }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0755'
|