Upload Ansible Files

This commit is contained in:
2024-05-08 13:03:34 +02:00
parent 56902d524e
commit 9b520fbcfb
44 changed files with 1334 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
- ansible.builtin.stat:
path: /usr/local/bin/docker-compose
register: stat_result
- ansible.builtin.debug:
var: stat_result
- ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
when: stat_result.stat.exists == False
- ansible.builtin.shell:
cmd: curl -sSL https://get.docker.com/ | CHANNEL=stable sh
when: stat_result.stat.exists == False
- ansible.builtin.service:
name: docker
enabled: yes
state: restarted
when: stat_result.stat.exists == False