terraform: drop the DNS import blocks
Both zones and all record sets are in state now; the import blocks did their job. A plan without them shows no changes. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
c4462b3e33
commit
967ce9e5f6
3 changed files with 0 additions and 57 deletions
|
|
@ -1,4 +0,0 @@
|
|||
---
|
||||
- name: Reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
---
|
||||
# Retired: the Fabric server is stopped for good to free its 8 GB of
|
||||
# RAM. The world stays in /opt/minecraft-fossils/data (and in the restic
|
||||
# backups) until it is deleted by hand.
|
||||
- name: Check for the old deployment
|
||||
ansible.builtin.stat:
|
||||
path: /opt/minecraft-fossils/docker-compose.yml
|
||||
register: fossils_compose
|
||||
|
||||
- name: Save the world
|
||||
ansible.builtin.command: docker exec minecraft-fossils rcon-cli save-all flush
|
||||
when: fossils_compose.stat.exists
|
||||
register: fossils_save
|
||||
changed_when: fossils_save.rc == 0
|
||||
failed_when: false
|
||||
|
||||
- name: Stop and remove the containers (data stays)
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: /opt/minecraft-fossils
|
||||
project_name: minecraft-fossils
|
||||
state: absent
|
||||
timeout: 120
|
||||
when: fossils_compose.stat.exists
|
||||
|
||||
- name: Disable the daily restart timer
|
||||
ansible.builtin.systemd:
|
||||
name: minecraft-fossils-restart.timer
|
||||
enabled: false
|
||||
state: stopped
|
||||
failed_when: false
|
||||
|
||||
- name: Remove the restart units
|
||||
ansible.builtin.file:
|
||||
path: "/etc/systemd/system/{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- minecraft-fossils-restart.service
|
||||
- minecraft-fossils-restart.timer
|
||||
notify: Reload systemd
|
||||
Loading…
Add table
Add a link
Reference in a new issue