From 7f3bb699f93cbef3b8d2cf998577eb8327d8a26e Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sat, 30 May 2026 06:05:57 -0400 Subject: [PATCH] added example playbook file instead --- init@homeserver.yml.example | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 init@homeserver.yml.example diff --git a/init@homeserver.yml.example b/init@homeserver.yml.example new file mode 100644 index 0000000..8028da3 --- /dev/null +++ b/init@homeserver.yml.example @@ -0,0 +1,28 @@ +# @NOTE run 'ansible-playbook' command on this using 'sudo' +- name: Initialize homeserver + hosts: armitage + remote_user: root + vars: + harden: true + local_facts: + user_dir: ~ + user_id: ~ + tasks: + - name: Hardening SSH server + ansible.builtin.include_role: + name: init-server # required. The name of the role to be executed. + # apply: # not required. Accepts a hash of task keywords (e.g. C(tags), C(become)) that will be applied to all tasks within the included role. + tasks_from: harden # not required. File to load from a role's C(tasks/) directory. + # vars_from: main # not required. File to load from a role's C(vars/) directory. + # defaults_from: main # not required. File to load from a role's C(defaults/) directory. + # allow_duplicates: True # not required. Overrides the role's metadata setting to allow using a role more than once with the same parameters. + # handlers_from: main # not required. File to load from a role's C(handlers/) directory. + - name: Initializing groups and users + ansible.builtin.include_role: + name: init-server # required. The name of the role to be executed. + # apply: # not required. Accepts a hash of task keywords (e.g. C(tags), C(become)) that will be applied to all tasks within the included role. + tasks_from: ssh-users # not required. File to load from a role's C(tasks/) directory. + vars_from: main # not required. File to load from a role's C(vars/) directory. + defaults_from: main # not required. File to load from a role's C(defaults/) directory. + # allow_duplicates: True # not required. Overrides the role's metadata setting to allow using a role more than once with the same parameters. + # handlers_from: main # not required. File to load from a role's C(handlers/) directory. \ No newline at end of file