Uncommented task inclusion instead of roles playbook item key, added play name, changed host
This commit is contained in:
		@@ -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
 | 
			
		||||
      
 | 
			
		||||
		Reference in New Issue
	
	Block a user