Skip to content

Commit

Permalink
Create /opt/govtool dir if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed May 9, 2024
1 parent 6a29c41 commit c95e851
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test-infrastructure/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
- name: Copy files and execute build-and-deploy.sh
- name: Update deployed images.
hosts: test_server
gather_facts: no
tasks:
- name: Create /opt/govtool directory if it does not exist
ansible.builtin.file:
path: /opt/govtool
state: directory
become: yes

- name: Copy files to the server
ansible.builtin.copy:
src: "{{ item }}"
Expand All @@ -22,6 +28,7 @@
- scripts/
- secrets_template/
become: yes

- name: Execute build-and-deploy.sh
ansible.builtin.shell: "/opt/govtool/build-and-deploy.sh update-images"
args:
Expand Down

0 comments on commit c95e851

Please sign in to comment.