Files
50ohm-ansible/roles/install-sources/tasks/main.yml
T
SuperminarenandClaude Sonnet 5.5 691d60f1cd Parametrise playbook for a Swedish deployment
- Domain, admin email and git sources are variables (vars.yml); site.yml asserts
  that placeholders have been replaced before running
- Remove DARC maintainers' SSH keys and the German URL-shortener redirects
- Track the sv branch by default
- README in Swedish

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-10 15:03:02 +02:00

39 lines
1.2 KiB
YAML

- name: Create destination directory {{ destination_path }}
ansible.builtin.file:
dest: "{{ destination_path }}"
state: directory
owner: "{{ fiftyohm_user }}"
group: "{{ fiftyohm_group }}"
mode: '0755'
- name: Checkout 50ohm source from {{ fiftyohm_repo }} to {{ destination_path }}/
ansible.builtin.git:
repo: "{{ fiftyohm_repo }}"
dest: "{{ destination_path }}/50ohm"
single_branch: true
version: "{{ fiftyohm_branch }}"
force: true
become: true
become_user: "{{ fiftyohm_user }}"
- name: Checkout 50ohm-contents-dl from {{ fiftyohm_contents_dl_repo }} to {{ destination_path }}
ansible.builtin.git:
repo: "{{ fiftyohm_contents_dl_repo }}"
dest: "{{ destination_path }}/50ohm-contents-dl"
single_branch: true
version: "{{ fiftyohm_contents_dl_branch }}"
become: true
become_user: "{{ fiftyohm_user }}"
- name: Create {{ destination_path }}/50ohm/config/config.json
ansible.builtin.copy:
dest: "{{ destination_path }}/50ohm/config/config.json"
content: >
{
"input": "../50ohm-contents-dl",
"output": "build"
}
owner: "{{ fiftyohm_user }}"
group: "{{ fiftyohm_group }}"
mode: '0444'