From b0b7e3ec2986d0519c213bea4bc292f95dbba3e0 Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 1 Feb 2017 07:33:45 -0600 Subject: [PATCH] Var target security playbook host group Set the playbook host scope to a var named "security_host_group" to allow operators to filter the hosts targeted by the play. Change-Id: I7095eb8658337d165068c5d8034532211c4bd273 --- playbooks/security-hardening.yml | 2 +- .../notes/security-playbook-hosts-var-a9b71f3dbcda2cad.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/security-playbook-hosts-var-a9b71f3dbcda2cad.yaml diff --git a/playbooks/security-hardening.yml b/playbooks/security-hardening.yml index 72a877b3b7..3c6f98586a 100644 --- a/playbooks/security-hardening.yml +++ b/playbooks/security-hardening.yml @@ -18,7 +18,7 @@ # hardening standards to a system. - name: Apply security hardening configurations - hosts: "{{ host_group|default('hosts') }}" + hosts: "{{ security_host_group|default('hosts') }}" gather_facts: "{{ gather_facts | default(True) }}" user: root roles: diff --git a/releasenotes/notes/security-playbook-hosts-var-a9b71f3dbcda2cad.yaml b/releasenotes/notes/security-playbook-hosts-var-a9b71f3dbcda2cad.yaml new file mode 100644 index 0000000000..a06c12888d --- /dev/null +++ b/releasenotes/notes/security-playbook-hosts-var-a9b71f3dbcda2cad.yaml @@ -0,0 +1,4 @@ +--- +features: + - The security-hardening playbook hosts target can now be filtered using the + ``security_host_group`` var.