mirror of
https://github.com/MatteZ02/infra.git
synced 2026-09-15 08:36:52 +00:00
Ansible: Update
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
---
|
||||
- name: "Deployer - Certbot - Renew Certificates"
|
||||
containers.podman.podman_container:
|
||||
name: certbot
|
||||
image: "docker.io/certbot/certbot:latest"
|
||||
state: started
|
||||
network: host
|
||||
volumes:
|
||||
- "{{ ansible_facts.user_dir }}/data/certbot:/etc/letsencrypt"
|
||||
command: "renew"
|
||||
detach: false
|
||||
register: task
|
||||
changed_when:
|
||||
- task.stdout.find("No renewals were attempted.") == -1
|
||||
tags:
|
||||
- certbot
|
||||
- tls
|
||||
|
||||
- name: "Deployer - Certbot - Copy Certificates"
|
||||
ansible.builtin.copy:
|
||||
src: "~/data/certbot/live/{{ cert }}/"
|
||||
dest: "~/data/certificates/{{ cert }}/"
|
||||
follow: true
|
||||
loop: "{{ certs }}"
|
||||
loop_control:
|
||||
label: "{{ cert }}"
|
||||
loop_var: "cert"
|
||||
vars:
|
||||
certs:
|
||||
- arcadiamc
|
||||
register: task
|
||||
tags:
|
||||
- certbot
|
||||
- tls
|
||||
|
||||
# - name: "Deployer - Minecraft - Build Image"
|
||||
# containers.podman.podman_image:
|
||||
# name: arcadiamc/openjdk
|
||||
# tag: latest
|
||||
# path: "{{ ansible_facts.user_dir }}/data/minecraft"
|
||||
# build:
|
||||
# file: Dockerfile
|
||||
# format: docker
|
||||
# cache: off
|
||||
# force: on
|
||||
# tags:
|
||||
# - minecraft
|
||||
|
||||
# - name: "Deployer - Minecraft - Create Container"
|
||||
# containers.podman.podman_container:
|
||||
# name: minecraft
|
||||
# image: "arcadiamc/openjdk:latest"
|
||||
# state: started
|
||||
# recreate: on
|
||||
# network: host
|
||||
# volumes:
|
||||
# - "{{ ansible_facts.user_dir }}/data/minecraft:/usr/src/app"
|
||||
# workdir: /usr/src/app
|
||||
# command: "java -Xms1G -Xmx8G -jar paper-1.21.4-232.jar"
|
||||
# restart_policy: unless-stopped
|
||||
# tags:
|
||||
# - minecraft
|
||||
|
||||
# - name: "Deployer - SSH - Build Image"
|
||||
# containers.podman.podman_image:
|
||||
# name: matte/ssh
|
||||
# tag: latest
|
||||
# path: "{{ ansible_facts.user_dir }}/data/ssh"
|
||||
# build:
|
||||
# file: Dockerfile
|
||||
# format: docker
|
||||
# cache: off
|
||||
# force: on
|
||||
# tags:
|
||||
# - ssh
|
||||
|
||||
# - name: "Deployer - SSH - Create Container"
|
||||
# containers.podman.podman_container:
|
||||
# name: ssh
|
||||
# image: "matte/ssh:latest"
|
||||
# state: started
|
||||
# recreate: on
|
||||
# network: host
|
||||
# volumes:
|
||||
# - "{{ ansible_facts.user_dir }}/data:/root/data"
|
||||
# - "{{ ansible_facts.user_dir }}/data/ssh/keys:/etc/ssh/keys"
|
||||
# restart_policy: unless-stopped
|
||||
# tags:
|
||||
# - ssh
|
||||
Reference in New Issue
Block a user