Browse Source

reverted previous stuff

master
Bastiaan Stroosnijder 6 months ago
parent
commit
7e245f86ae
  1. 6
      meta/main.yml
  2. 1
      tasks/main.yml
  3. 7
      tasks/setup-autopull.yml
  4. 6
      templates/services/pilab-autopull.service.j2

6
meta/main.yml

@ -9,9 +9,3 @@ galaxy_info:
dependencies:
community.general: "*"
containers.podman: "*"
dependencies:
- src: git+https://git.strooweb.nl/pilab/pilab-role-service-autopull.git
when: pilab_autopull_repo is defined
# - src: git+https://git.strooweb.nl/pilab/pilab-role-service-nftables.git
# when: pilab_firewall == 'nftables'

1
tasks/main.yml

@ -3,6 +3,7 @@
- include_tasks: "{{ role_path }}/tasks/setup-user.yml"
- include_tasks: "{{ role_path }}/tasks/setup-system.yml"
- include_tasks: "{{ role_path }}/tasks/setup-openssh.yml"
- include_tasks: "{{ role_path }}/tasks/setup-autopull.yml"
- include_tasks: "{{ role_path }}/tasks/engine/{{ pilab_engine }}.yml"
- include_tasks: "{{ role_path }}/tasks/firewall/{{ pilab_firewall }}.yml"
- include_tasks: "{{ role_path }}/tasks/analyzer/{{ pilab_analyzer }}.yml"

7
tasks/setup-autopull.yml

@ -0,0 +1,7 @@
---
- loop:
- template: "{{ role_path }}/services/pilab-autopull.service"
schedule: "{{ pilab_autopull_schedule }}"
when: pilab_autopull_repo is defined
ansible.builtin.include_tasks: "{{ role_path }}/tasks/add-service.yml"

6
templates/services/pilab-autopull.service.j2

@ -0,0 +1,6 @@
[Unit]
Description=Pilab Autopull Service
[Service]
Type=oneshot
ExecStart={{ pilab_autopull_exec }} --only-if-changed --clean --url {{ pilab_autopull_repo }}
Loading…
Cancel
Save