Skip to content

Commit

Permalink
modified: group_vars/all/job_templates.yml (#54)
Browse files Browse the repository at this point in the history
modified:   group_vars/all/schedule.yml
	new file:   playbooks/sync_collections.yml
  • Loading branch information
djdanielsson authored Apr 18, 2024
1 parent d6f4807 commit 82ae53c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions group_vars/all/job_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,17 @@ controller_templates_all:
verbosity: 0
credentials:
- vault

- name: collection_sync
project: config_as_code
job_type: run
playbook: playbooks/sync_collections.yml
inventory: config_as_code
execution_environment: minimal
concurrent_jobs_enabled: false
limit: "{{ env }}"
verbosity: 0
credentials:
- ah_token_user
- vault
...
4 changes: 4 additions & 0 deletions group_vars/all/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ controller_schedules_all:
description: Auto run refresh token every 25 days
unified_job_template: console_token_refresh # NOTE: you cannot have the same job template name as a project or this will fail
rrule: DTSTART:20191219T130500Z RRULE:INTERVAL=25;FREQ=DAILY
- name: auto_run_collection_sync
description: Auto run sync every 7 days
unified_job_template: collection_sync # NOTE: you cannot have the same job template name as a project or this will fail
rrule: DTSTART:20191219T130500Z RRULE:INTERVAL=7;FREQ=DAILY
...
12 changes: 12 additions & 0 deletions playbooks/sync_collections.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Sync collections
hosts: all
gather_facts: false
connection: local
vars_files:
- ../vaults/{{ env }}.yml
tasks:
- name: Include collection_repository_sync role
ansible.builtin.include_role:
name: infra.ah_configuration.collection_repository_sync
...

0 comments on commit 82ae53c

Please sign in to comment.