Files
AnsibleTest/A000005.yml
T
2026-07-04 23:20:19 +00:00

29 lines
1.0 KiB
YAML

---
- hosts: "{{ WHAT_HOST_IN_USE }}"
tasks:
- name: "005 Creates directory {{ DESTINATION_FOLDER }}"
ansible.builtin.file:
path: "{{ DESTINATION_FOLDER }}"
state: directory
mode: 0775
recurse: yes
- name: Docker Login to Registry
shell:
chdir: "{{DESTINATION_FOLDER}}/"
cmd: docker login -u="merms" -p="may12002!" registry.chiefsoft.com
- name: docker pull current image - registry.chiefsoft.com/emr0001/merms-openemr:latest
shell:
cmd: docker pull registry.chiefsoft.com/emr0001/merms-openemr:latest
- name: Copy file from 10.10.10.13 to LOCAL Directory
shell: sshpass -p '{{ password_variable }}' scp {{WHAT_PART_REMOTE}}/docker-compose.yml {{DESTINATION_FOLDER}}/docker-compose.yml
vars:
password_variable: "May12002!x" # Or, preferably, use Ansible Vault
- name: docker compose up
shell:
chdir: "{{DESTINATION_FOLDER}}/"
cmd: docker-compose up -d