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

15 lines
410 B
YAML

---
- 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
...