install_docker/tasks/prerequisites.yml

24 lines
617 B
YAML
Raw Normal View History

---
# 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
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'