fix: issues with scripts, no aws (#4)
Fixes the following issues with the `web/git` Ansible scripts. - Updates cache before installing `python3-pip`. - Forces `terraform init` configuration during provisioning. - Requires user to set an `endpoint_url` to get the backup file from S3. In addition, I'm removing the last of AWS from the repository: - The routing uses Hetzner now, so let's get rid of all of that. Reviewed-on: #4 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
This commit was merged in pull request #4.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user