-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge container server configuration
- Loading branch information
Showing
14 changed files
with
171 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ query_filters: | |
- role: server | ||
- role: ssh-gateway | ||
- role: lxd-host | ||
- role: container-host |
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,19 @@ | ||
--- | ||
- name: Install git | ||
ansible.builtin.apt: | ||
name: git | ||
state: present | ||
|
||
- name: Checkout container configuration | ||
ansible.builtin.git: | ||
repo: "[email protected]:sown/containers-dev-docker-config.git" | ||
dest: "/docker/managed" | ||
version: master | ||
|
||
- name: Setup containers | ||
community.docker.docker_compose_v2: | ||
project_src: "{{ item }}" | ||
with_items: | ||
# setup utility containers first | ||
- "/docker/managed/traefik" | ||
# setup remaining containers |
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,3 @@ | ||
--- | ||
- name: Configure containers | ||
import_tasks: containers.yml |
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,24 @@ | ||
--- | ||
- name: Install git | ||
ansible.builtin.apt: | ||
name: git | ||
state: present | ||
|
||
- name: Checkout container configuration | ||
ansible.builtin.git: | ||
repo: "[email protected]:sown/containers-prod-docker-config.git" | ||
dest: "/docker" | ||
version: master | ||
|
||
- name: Setup containers | ||
community.docker.docker_compose_v2: | ||
project_src: "{{ item }}" | ||
with_items: | ||
# setup utility containers first | ||
- "/docker/traefik" | ||
# setup remaining containers | ||
- "/docker/suws_website_default" | ||
- "/docker/suws_wordpress" | ||
- "/docker/suws_wiki" | ||
- "/docker/prometheus" | ||
- "/docker/grafana" |
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,3 @@ | ||
--- | ||
- name: Configure containers | ||
import_tasks: containers.yml |
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,19 @@ | ||
--- | ||
- name: Install git | ||
ansible.builtin.apt: | ||
name: git | ||
state: present | ||
|
||
- name: Checkout container configuration | ||
ansible.builtin.git: | ||
repo: "[email protected]:sown/containers-secure-docker-config.git" | ||
dest: "/docker" | ||
version: master | ||
|
||
- name: Setup containers | ||
community.docker.docker_compose_v2: | ||
project_src: "{{ item }}" | ||
with_items: | ||
# setup utility containers first | ||
- "/docker/traefik" | ||
# setup remaining containers |
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,3 @@ | ||
--- | ||
- name: Configure containers | ||
import_tasks: containers.yml |
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,26 @@ | ||
--- | ||
- name: Install docker dependancies | ||
apt: | ||
name: | ||
- apt-transport-https | ||
- ca-certificates | ||
- curl | ||
- gnupg-agent | ||
- software-properties-common | ||
state: present | ||
|
||
- name: Add docker GPG key | ||
apt_key: | ||
url: https://download.docker.com/linux/ubuntu/gpg | ||
state: present | ||
|
||
- name: Add docker repo | ||
apt_repository: | ||
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable | ||
state: present | ||
update_cache: true | ||
|
||
- name: Install docker | ||
apt: | ||
name: docker-ce | ||
state: present |
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,3 @@ | ||
--- | ||
- name: Configure docker | ||
import_tasks: docker.yml |
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