ansible-buildsys-management/tasks/sync/sync_to_prod.yml

16 lines
410 B
YAML
Raw Normal View History

2023-02-20 03:54:48 +00:00
---
- name: "Make sure the sync repo are up to date"
ansible.builtin.git:
repo: https://git.resf.org/sig_core/toolkit.git
dest: /root/sync-devel
update: true
version: devel
- name: "Sync {{ release_ver }} to production"
ansible.builtin.shell: "/bin/bash /root/sync-devel/sync/sync-to-prod.sh"
changed_when: 1 != 1
failed_when: "result.rc != 0"
when:
- release_ver is defined
...