system-config/playbooks/roles/sync-project-config/tasks/main.yaml

19 lines
508 B
YAML

- name: Create project-config dir
file:
path: '{{ project_config_dest }}'
state: directory
- name: Update from master
when: infra_prod_run_from_master|bool
delegate_to: bridge.openstack.org
git:
repo: https://opendev.org/openstack/project-config
dest: '{{ project_config_src }}'
force: yes
- name: Sync project-config repo
synchronize:
src: '{{ project_config_src }}/{{ project_config_subdir }}'
dest: '{{ project_config_dest }}'
no_log: '{{ silence_synchronize }}'