Add network infrastructure

Add network group for filtering network hosts
Add network target for auth'ing to network hosts
Update playbooks to filter out network targets
This commit is contained in:
2021-09-07 20:31:18 -04:00
parent d05c0cffaa
commit 2814d42148
4 changed files with 19 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
---
- name: Bootstrap remote ansible environment
hosts: all
hosts: all,!network,!network
tags:
- always
tasks:
@@ -51,7 +51,7 @@
- name: Configure common server settings
hosts: all
hosts: all,!network
vars_files:
- vars/packages.yaml
tasks:
@@ -104,7 +104,7 @@
- name: Configure SSH
hosts: all
hosts: all,!network
handlers:
- name: restart-sshd
become: true

View File

@@ -1,6 +1,6 @@
---
- name: Update system
hosts: all
hosts: all,!network
tags:
- packages
vars_files:
@@ -14,7 +14,7 @@
state: latest
- name: Update unix accounts
hosts: all
hosts: all,!network
tags:
- accounts
- access