Uncommented task inclusion instead of roles playbook item key, added play name, changed host

This commit is contained in:
Alex Tavarez
2025-09-05 12:34:26 -04:00
parent 966bd6751d
commit c29fd64d7e

View File

@@ -1,16 +1,17 @@
---
- hosts: servers # @NOTE for IPv6, switch to 'servers6' instead of 'servers4'--for both, 'servers'
- name: manage_root
hosts: servers # @NOTE for IPv6, switch to 'servers6' instead of 'servers4'--for both, 'servers'
remote_user: root # MUST be run as root
roles:
- lockdown
# tasks:
# - name: Set up sys-admin account on VPS and secure VPS
# ansible.builtin.include_role:
# name: lockdown
# defaults_from: main
# vars_from: main
# handlers_from: main
# tasks_from: main
# tags:
# - init
# roles:
# - lockdown
tasks:
- name: Set up sys-admin account on VPS and secure VPS
ansible.builtin.include_role:
name: lockdown
defaults_from: main
vars_from: main
handlers_from: main
tasks_from: main
tags:
- init