diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-03-23 07:04:17 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-03-23 07:04:17 -0400 |
commit | a85aae7b04e7ae3d1e826cbb4217c5f2ca61fde8 (patch) | |
tree | bf1bf6088f6d07fb7ba77c048f5985df0f32c3f2 | |
parent | b0db16cd6cfbe31f4a420e960f50eef0ebe40f60 (diff) | |
download | playbooks-a85aae7b04e7ae3d1e826cbb4217c5f2ca61fde8.tar.gz playbooks-a85aae7b04e7ae3d1e826cbb4217c5f2ca61fde8.tar.bz2 playbooks-a85aae7b04e7ae3d1e826cbb4217c5f2ca61fde8.zip |
roles: Bootstrap more containers
-rw-r--r-- | inventory/hosts | 6 | ||||
-rw-r--r-- | roles/docker/alpine-registry.yml | 10 | ||||
-rw-r--r-- | roles/gitea/main.yml | 12 | ||||
-rw-r--r-- | roles/healthchecks/main.yml | 8 |
4 files changed, 29 insertions, 7 deletions
diff --git a/inventory/hosts b/inventory/hosts index 9ebc701..99749a3 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -15,7 +15,7 @@ k8s_master k8s_centos8 postgresql health_checks -docker_alpine_lxc +docker_registry [isso] isso.lxc @@ -40,8 +40,8 @@ k8s-master [k8s_centos8] k8s-centos8.lxc -[docker_alpine_lxc] -docker-alpine.lxc +[docker_registry] +docker-registry.lxc [nginx] nginx.lxc diff --git a/roles/docker/alpine-registry.yml b/roles/docker/alpine-registry.yml index 4c9c108..78091a8 100644 --- a/roles/docker/alpine-registry.yml +++ b/roles/docker/alpine-registry.yml @@ -1,6 +1,14 @@ --- +- name: Container Setup + + vars: + lxc_base: ansible-alpine3.11 + lxc_name: docker-registry + + import_playbook: ../common/tasks/lxc.yml + - name: Install Docker Registry on Alpine LXC Container - hosts: docker_alpine_lxc + hosts: docker_registry vars_files: - ../variables.yml diff --git a/roles/gitea/main.yml b/roles/gitea/main.yml index bdff439..dc4ae05 100644 --- a/roles/gitea/main.yml +++ b/roles/gitea/main.yml @@ -1,5 +1,12 @@ --- -# target: alpine3.10 +- name: Container Setup + + vars: + lxc_base: ansible-alpine3.11 + lxc_name: gitea + + import_playbook: ../common/tasks/lxc.yml + - name: Install Gitea Service hosts: gitea @@ -13,14 +20,13 @@ name: "{{ gitea_user }}" state: present - - name: Installing the required dependencies apk: state: present update_cache: yes name: - gitea - + - name: Replacing with repository binary get_url: url: "{{ gitea_url }}" diff --git a/roles/healthchecks/main.yml b/roles/healthchecks/main.yml index 1b8dc27..03e8a7d 100644 --- a/roles/healthchecks/main.yml +++ b/roles/healthchecks/main.yml @@ -1,4 +1,12 @@ --- +- name: Container Setup + + vars: + lxc_base: ansible-alpine3.11 + lxc_name: healthchecks + + import_playbook: ../common/tasks/lxc.yml + - name: Install Health Checks hosts: healthchecks |