Working on frand deployement

This commit is contained in:
2026-08-30 10:37:09 +00:00
parent 35a3bb9ad2
commit 612e2243c0
18 changed files with 261 additions and 308 deletions
+22
View File
@@ -0,0 +1,22 @@
---
- name: Check if Docker is installed
ansible.builtin.command: docker --version
register: docker_installed
ignore_errors: true
changed_when: false
- name: Install Docker
ansible.builtin.shell: curl -sSL https://get.docker.com | sh # noqa command-instead-of-module risky-shell-pipe
when: docker_installed.rc != 0
changed_when: true
- name: Install python3-docker
ansible.builtin.package:
name: python3-docker
state: present
- name: Adding user to group docker
ansible.builtin.user:
name: "{{ user }}"
groups: docker
append: true