fix: restore command now seperated

This commit is contained in:
2025-02-11 21:18:55 -05:00
parent f7a0a3e868
commit 116c683300
11 changed files with 77 additions and 37 deletions

View File

@@ -1,9 +1,10 @@
- name: Deploy artifact to instance.
hosts: localhost
become: true
gather_facts: false
vars_files:
- ../config/ansible.json
- ../config/infrastructure.json
- ../config/ansible.secret.json
- ../config/infrastructure.secret.tf.json
vars:
ansible_connection: aws_ssm
ansible_python_interpreter: /usr/bin/python3
@@ -26,15 +27,17 @@
access_key: "{{ aws_access_key }}"
secret_key: "{{ aws_secret_key }}"
- name: Create data directory.
ansible.builtin.file:
path: /home/ssm-user/data
state: directory
mode: '0777'
- name: Load image.
community.docker.docker_image_load:
path: /root/image.tar.gz
register: image
- name: Create a volume.
community.docker.docker_volume:
name: data
- name: Run image.
community.docker.docker_container:
name: server