-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add provisioning for testserver
- Loading branch information
1 parent
4932771
commit 4cf6cae
Showing
13 changed files
with
79 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
all: | ||
hosts: | ||
varilis.de: | ||
ansible_connection: ssh | ||
ansible_user: "{{ remote_server_user }}" | ||
ansible_become: true | ||
vars: | ||
server_docker_users: | ||
- root | ||
- variation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
all: | ||
hosts: | ||
varilis.de: | ||
ansible_connection: ssh | ||
ansible_user: "{{ remote_server_user }}" | ||
ansible_become: true | ||
ansible_become_password: "{{ remote_server_password }}" | ||
vars: | ||
server_docker_users: | ||
- root | ||
- variation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ | |
roles: | ||
- role: general | ||
- role: docker | ||
- role: copyData | ||
- role: nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
roles: | ||
- src: geerlingguy.docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
- name: Copy docker-compose.yml | ||
ansible.builtin.copy: | ||
src: ../../../../../docker-compose.yml | ||
dest: /home/{{ remote_server_user }}/docker-compose.yml | ||
owner: "{{ remote_server_user }}" | ||
group: "{{ remote_server_user }}" | ||
mode: 0644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
--- | ||
- name: General setup | ||
become: yes | ||
tasks: | ||
- name: Update all packages to the latest version | ||
apt: | ||
update_cache: yes | ||
upgrade: dist | ||
- name: Update all packages to the latest version | ||
ansible.builtin.apt: | ||
update_cache: yes | ||
upgrade: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
--- | ||
- name: Stop containers | ||
ansible.builtin.command: | | ||
docker-compose down | ||
- name: Pulling containers | ||
ansible.builtin.command: | | ||
docker-compose pull | ||
- name: Start containers | ||
ansible.builtin.command: | | ||
docker compose down | ||
docker compose pull | ||
docker compose up -d | ||
docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters