22 lines
600 B
YAML
22 lines
600 B
YAML
---
|
|
- name: Create systemd user configuration directory
|
|
ansible.builtin.file:
|
|
dest: ~/.config/systemd/user
|
|
state: directory
|
|
mode: "0750"
|
|
|
|
- name: Install systemd unit files for the proxy target
|
|
ansible.builtin.template:
|
|
src: "{{ item }}.j2"
|
|
dest: "~/.config/systemd/user/{{ item }}"
|
|
mode: "0644"
|
|
notify: Reload user systemd daemon
|
|
loop:
|
|
- podman-proxy@.path
|
|
- podman-proxy@.target
|
|
|
|
- name: Create Woodpecker agents
|
|
ansible.builtin.include_tasks: agents.yml
|
|
loop: "{{ podman_woodpecker_agent_workspace_users }}"
|
|
loop_control:
|
|
loop_var: workspace_user
|