Skip to content

Commit

Permalink
Add container configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Ward committed Nov 12, 2023
1 parent dbe5d4c commit a76b4df
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ New roles should be developed on branches, and changes rolled out to all servers
- `ipxe`
- `backed_up`
- `ssh_gateway`
- `suws_webserver`
2 changes: 2 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@
roles:
- role: docker
tags: docker
- role: suws_webserver
tags: suws_webserver
22 changes: 22 additions & 0 deletions roles/suws_webserver/tasks/containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
- name: Install git
ansible.builtin.apt:
name: git
state: present

- name: Checkout container configuration
ansible.builtin.git:
repo: "[email protected]:sown/marconi_container_config.git"
dest: "/docker"
version: master

- name: Setup containers
community.docker.docker_compose:
project_src: "{{ item }}"
with_items:
# setup utility containers first
- "/docker/traefik"
# setup remaining containers
- "/docker/suws_website_default"
- "/docker/suws_wordpress"
- "/docker/suws_wiki"
3 changes: 3 additions & 0 deletions roles/suws_webserver/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- name: Configure containers
import_tasks: containers.yml

0 comments on commit a76b4df

Please sign in to comment.