Compare commits
No commits in common. "6a900ecbc4906f0cd869660cca31c826f93a3e16" and "00cad09f371d09abc8ab8fc51533044d5441908a" have entirely different histories.
6a900ecbc4
...
00cad09f37
|
@ -32,16 +32,15 @@
|
||||||
- docker-buildx-plugin
|
- docker-buildx-plugin
|
||||||
- docker-compose-plugin
|
- docker-compose-plugin
|
||||||
become: true
|
become: true
|
||||||
- name: Add user to docker group
|
|
||||||
ansible.builtin.user:
|
|
||||||
user: debian
|
|
||||||
groups:
|
|
||||||
- docker
|
|
||||||
append: true
|
|
||||||
become: true
|
|
||||||
- name: Enable docker
|
- name: Enable docker
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: docker
|
name: docker
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
become: true
|
||||||
|
- name: Add user to docker group
|
||||||
|
ansible.builtin.user:
|
||||||
|
user: debian
|
||||||
|
groups:
|
||||||
|
- docker
|
||||||
|
append: true
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
- name: Deploy app
|
|
||||||
hosts: cloud
|
|
||||||
gather_facts: false
|
|
||||||
vars:
|
|
||||||
project_src: /home/debian/cloud
|
|
||||||
module_defaults:
|
|
||||||
community.docker.docker_compose:
|
|
||||||
project_src: "{{ project_src }}"
|
|
||||||
tasks:
|
|
||||||
- name: Wait for connection
|
|
||||||
ansible.builtin.wait_for_connection:
|
|
||||||
timeout: 300
|
|
||||||
- name: Copy project
|
|
||||||
ansible.builtin.copy:
|
|
||||||
directory_mode: true
|
|
||||||
src: ./cloud
|
|
||||||
mode: "0744"
|
|
||||||
dest: "{{ project_src }}"
|
|
||||||
- name: Docker compose down
|
|
||||||
community.docker.docker_compose:
|
|
||||||
state: absent
|
|
||||||
- name: Docker compose up
|
|
||||||
community.docker.docker_compose:
|
|
||||||
state: present
|
|
|
@ -1,5 +0,0 @@
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
test:
|
|
||||||
image: nginx
|
|
Loading…
Reference in New Issue