diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2020-12-26 14:17:41 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2020-12-26 14:17:41 +0100 |
commit | 9e4e02fdfb5a9e038c5e09a38fa51b457164156b (patch) | |
tree | 7c3f088425b3998432e70e59fa802f613f49e374 /ansible/plays | |
parent | 4083f32156c5df71cb6ea370a411e152c8a67b8b (diff) | |
download | infra-9e4e02fdfb5a9e038c5e09a38fa51b457164156b.tar.gz infra-9e4e02fdfb5a9e038c5e09a38fa51b457164156b.tar.bz2 infra-9e4e02fdfb5a9e038c5e09a38fa51b457164156b.tar.xz infra-9e4e02fdfb5a9e038c5e09a38fa51b457164156b.zip |
Replaced malabaricus.
Diffstat (limited to 'ansible/plays')
-rw-r--r-- | ansible/plays/files/malabaricus/etc/wireguard/public-wg0.key | 2 | ||||
-rw-r--r-- | ansible/plays/malabaricus-base.yml | 30 | ||||
-rw-r--r-- | ansible/plays/malabaricus-nextcloud.yml (renamed from ansible/plays/malabaricus.yml) | 0 | ||||
-rw-r--r-- | ansible/plays/malabaricus-services.yml | 11 | ||||
-rw-r--r-- | ansible/plays/templates/malabaricus/docker-compose.yml | 10 |
5 files changed, 52 insertions, 1 deletions
diff --git a/ansible/plays/files/malabaricus/etc/wireguard/public-wg0.key b/ansible/plays/files/malabaricus/etc/wireguard/public-wg0.key index 6fe02dc..6104a9a 100644 --- a/ansible/plays/files/malabaricus/etc/wireguard/public-wg0.key +++ b/ansible/plays/files/malabaricus/etc/wireguard/public-wg0.key @@ -1 +1 @@ -spjhTSR22/RyPy7D2AnMLLzzHuasXD6W4J5Xwuo+UTQ= +LjvdPrpPeXyj8qIYgiKkrt7A6C+VmwKgjxYmpr5Jtg0= diff --git a/ansible/plays/malabaricus-base.yml b/ansible/plays/malabaricus-base.yml new file mode 100644 index 0000000..e782fb2 --- /dev/null +++ b/ansible/plays/malabaricus-base.yml @@ -0,0 +1,30 @@ +- hosts: + - malabaricus + tasks: + - import_role: + name: unix-machine + - import_role: + name: lusers + - import_role: + name: superusers + + - become: yes + name: /etc/hostname + copy: + dest: /etc/hostname + content: | + malabaricus + - become: yes + name: /etc/hosts + copy: + dest: /etc/hosts + content: | + 127.0.0.1 localhost malabaricus + ::1 localhost malabaricus ip6-localhost ip6-loopback + fe00::0 ip6-localnet + ff00::0 ip6-mcastprefix + ff02::1 ip6-allnodes + ff02::2 ip6-allrouters + + - import_role: + name: docker-host diff --git a/ansible/plays/malabaricus.yml b/ansible/plays/malabaricus-nextcloud.yml index 7e54c76..7e54c76 100644 --- a/ansible/plays/malabaricus.yml +++ b/ansible/plays/malabaricus-nextcloud.yml diff --git a/ansible/plays/malabaricus-services.yml b/ansible/plays/malabaricus-services.yml new file mode 100644 index 0000000..b120cf7 --- /dev/null +++ b/ansible/plays/malabaricus-services.yml @@ -0,0 +1,11 @@ +- hosts: + - malabaricus + tasks: + - import_role: + name: docker-host + - import_role: + name: docker-service + tags: docker-service + vars: + service: malabaricus + template: templates/malabaricus/docker-compose.yml diff --git a/ansible/plays/templates/malabaricus/docker-compose.yml b/ansible/plays/templates/malabaricus/docker-compose.yml new file mode 100644 index 0000000..e85f147 --- /dev/null +++ b/ansible/plays/templates/malabaricus/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + pdb11: + image: postgres:11 + volumes: + - /data:/var/lib/postgresql/data + environment: + POSTGRES_PASSWORD: mysecretpassword + + |