fix: update cache before installing pip, provisioning automatically configured terraform, restore allows for custom S# endpoint

This commit is contained in:
2025-12-31 13:28:18 -05:00
parent a936f760f5
commit c18def56ba
7 changed files with 108 additions and 115 deletions

View File

@@ -55,9 +55,10 @@
tasks:
- name: Install PIP.
ansible.builtin.apt:
state: present
update_cache: true
name:
- python3-pip
state: present
- name: Install needed packages.
ansible.builtin.pip:

View File

@@ -9,7 +9,8 @@
project_path: '../terraform'
state: "planned"
plan_file: plan.out
# init_reconfigure: true
init_reconfigure: true
force_init: true
backend_config: "{{ terraform.backend }}"
variables: "{{ terraform.variables }}"
complex_vars: true

View File

@@ -36,6 +36,7 @@
region: "{{ secret.restore.region }}"
access_key: "{{ secret.restore.access_key }}"
secret_key: "{{ secret.restore.secret_key }}"
endpoint_url: "{{ secret.restore.endpoint | mandatory(msg='You must specify the S3 URL.') }}"
ignore_nonexistent_bucket: true
- name: Ensure backup directory exists.