--- /dev/null
+# Copyright (c) 2023 Jakub Czajka <jakub@ekhem.eu.org>
+# License: GPL-3.0 or later.
+
+- find:
+ paths: "/srv/git"
+ file_type: file
+ patterns: "*.yaml"
+ recurse: true
+ register: post_receive_scripts
+- name: Execute configuration playbook
+ shell: /usr/bin/ansible-playbook --connection=local {{ item.path }}
+ with_items: "{{ post_receive_scripts.files }}"
- include_tasks: install/ansible.yaml
- include_tasks: install/environment.yaml
- include_tasks: install/database.yaml
-
- - find:
- paths: "/srv/git"
- file_type: file
- patterns: "*.yaml"
- recurse: true
- register: post_receive_scripts
- - name: Execute configuration playbook
- shell: /usr/bin/ansible-playbook --connection=local {{ item.path }}
- with_items: "{{ post_receive_scripts.files }}"
+ - include_tasks: install/configuration.yaml
- include_tasks: install/ssh_public_keys.yaml
with_items: "{{ users }}"