From d6f60bcf2742ef5001c362daa18c9acd3142be43 Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Wed, 10 Sep 2025 09:50:30 -0400 Subject: [PATCH] feat: reorganize requirements.yml for role management --- collections/requirements.yml | 40 +++++++++++------------------------- roles/requirements.yml | 16 +++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 roles/requirements.yml diff --git a/collections/requirements.yml b/collections/requirements.yml index 6aeba16..3271769 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -1,31 +1,15 @@ --- -# Define roles to be installed -roles: - # Install a role from Ansible Galaxy - #- name: geerlingguy.nginx - # version: "2.11.0" # Specify a particular version +# Define collections to be installed +collections: + # Install a collection from Ansible Galaxy + - community.general + - ansible.posix: "1.5.0" # Specify a particular version - # Install a role from a Git repository - #- src: https://github.com/your-org/ansible-role-webserver.git - # scm: git - # version: "main" # Specify a branch or tag - # name: custom_webserver_role + # # Install a collection from a Git repository + # - name: https://github.com/organization/repo_name.git + # type: git + # version: devel # Specify a branch or tag - # Install a role from a local path - - src: .ansible/roles/LucasJanin.ssh_config - name: LucasJanin.ssh_config - -# # Define collections to be installed -# collections: -# # Install a collection from Ansible Galaxy -# - community.general -# - ansible.posix: "1.5.0" # Specify a particular version - -# # Install a collection from a Git repository -# - name: https://github.com/organization/repo_name.git -# type: git -# version: devel # Specify a branch or tag - -# # Install a collection from a local tarball -# - name: my_collection-1.0.0.tar.gz -# type: file \ No newline at end of file + # # Install a collection from a local tarball + # - name: my_collection-1.0.0.tar.gz + # type: file \ No newline at end of file diff --git a/roles/requirements.yml b/roles/requirements.yml new file mode 100644 index 0000000..7787aea --- /dev/null +++ b/roles/requirements.yml @@ -0,0 +1,16 @@ +--- +# Define roles to be installed +roles: + # Install a role from Ansible Galaxy + #- name: geerlingguy.nginx + # version: "2.11.0" # Specify a particular version + + # Install a role from a Git repository + #- src: https://github.com/your-org/ansible-role-webserver.git + # scm: git + # version: "main" # Specify a branch or tag + # name: custom_webserver_role + + # Install a role from a local path + - src: .ansible/roles/LucasJanin.ssh_config + name: LucasJanin.ssh_config