From 443b22343c8dfc18d1679810f60d4e65e84d2a21 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 19 Apr 2023 00:59:51 -0700 Subject: [PATCH] change hosts options for most playbooks --- adhoc-ipabinder.yml | 2 +- adhoc-ipadnszone.yml | 2 +- adhoc-ipagetcert.yml | 2 +- adhoc-ipagetkeytab.yml | 2 +- adhoc-ipagroup.yml | 4 ++-- adhoc-ipaservice.yml | 2 +- adhoc-ipauser-disable-pdr.yml | 2 +- adhoc-ipauser-disable.yml | 2 +- adhoc-ipauser-enable.yml | 2 +- adhoc-ipauser.yml | 2 +- init-rocky-ipa-internal-dns.yml | 2 +- init-rocky-ipa-team.yml | 2 +- role-rocky-ipa-client.yml | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/adhoc-ipabinder.yml b/adhoc-ipabinder.yml index 26f79b7..fd59da3 100644 --- a/adhoc-ipabinder.yml +++ b/adhoc-ipabinder.yml @@ -6,7 +6,7 @@ # -> ipa_binder_password: Bind account password - name: Create binder account - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: true tasks: diff --git a/adhoc-ipadnszone.yml b/adhoc-ipadnszone.yml index 365a135..b1d8324 100644 --- a/adhoc-ipadnszone.yml +++ b/adhoc-ipadnszone.yml @@ -4,7 +4,7 @@ # provided. - name: Create a DNS Zone - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/adhoc-ipagetcert.yml b/adhoc-ipagetcert.yml index 417d671..b410c2f 100644 --- a/adhoc-ipagetcert.yml +++ b/adhoc-ipagetcert.yml @@ -13,7 +13,7 @@ # TODO: Add CNAME/SAN support - name: Request and sign an IPA Certificate - hosts: all + hosts: "{{ host|default('all') }}" become: true vars: ipa_getcert_requested_hostnames: diff --git a/adhoc-ipagetkeytab.yml b/adhoc-ipagetkeytab.yml index 73d8e2e..b219a5d 100644 --- a/adhoc-ipagetkeytab.yml +++ b/adhoc-ipagetkeytab.yml @@ -14,7 +14,7 @@ # -> ipaadmin_password: This should be the password of the admin user - name: Pull keytab from IPA - hosts: all + hosts: "{{ host|default('all') }}" become: true gather_facts: false diff --git a/adhoc-ipagroup.yml b/adhoc-ipagroup.yml index 784fb66..b547e48 100644 --- a/adhoc-ipagroup.yml +++ b/adhoc-ipagroup.yml @@ -5,8 +5,8 @@ # If group is going to be a fas group (exposed in noggin), ensure ipa_fas is # set to true. -- name: Create our initial users - hosts: all +- name: Create a group + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false vars_files: diff --git a/adhoc-ipaservice.yml b/adhoc-ipaservice.yml index 83caa21..7c78b41 100644 --- a/adhoc-ipaservice.yml +++ b/adhoc-ipaservice.yml @@ -3,7 +3,7 @@ # What: Creates kerberos services in the idm infrastructure based on the variables provided - name: Create Services - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/adhoc-ipauser-disable-pdr.yml b/adhoc-ipauser-disable-pdr.yml index bf2435c..bec94f1 100644 --- a/adhoc-ipauser-disable-pdr.yml +++ b/adhoc-ipauser-disable-pdr.yml @@ -7,7 +7,7 @@ # for the RESF to query. - name: Disable a User - PDR - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/adhoc-ipauser-disable.yml b/adhoc-ipauser-disable.yml index 08455df..78143c3 100644 --- a/adhoc-ipauser-disable.yml +++ b/adhoc-ipauser-disable.yml @@ -3,7 +3,7 @@ # What: Creates users in the idm infrastructure based on the variables provided. - name: Create a User - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/adhoc-ipauser-enable.yml b/adhoc-ipauser-enable.yml index 948dffd..dbd4c24 100644 --- a/adhoc-ipauser-enable.yml +++ b/adhoc-ipauser-enable.yml @@ -3,7 +3,7 @@ # What: Creates users in the idm infrastructure based on the variables provided. - name: Create a User - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/adhoc-ipauser.yml b/adhoc-ipauser.yml index df8c50f..8da45b5 100644 --- a/adhoc-ipauser.yml +++ b/adhoc-ipauser.yml @@ -3,7 +3,7 @@ # What: Creates users in the idm infrastructure based on the variables provided. - name: Create a User - hosts: all + hosts: "{{ ipaserver|default('all') }}" become: false gather_facts: false diff --git a/init-rocky-ipa-internal-dns.yml b/init-rocky-ipa-internal-dns.yml index 09888ac..60514f3 100644 --- a/init-rocky-ipa-internal-dns.yml +++ b/init-rocky-ipa-internal-dns.yml @@ -1,7 +1,7 @@ --- # This builds out the initial users and groups for the rocky linux infra - name: Create our initial users - hosts: all + hosts: ipaserver become: false gather_facts: false vars_files: diff --git a/init-rocky-ipa-team.yml b/init-rocky-ipa-team.yml index 850cc59..1e5d09a 100644 --- a/init-rocky-ipa-team.yml +++ b/init-rocky-ipa-team.yml @@ -1,7 +1,7 @@ --- # This builds out the initial users and groups for the rocky linux infra - name: Create our initial users - hosts: all + hosts: ipaserver become: true gather_facts: false vars_files: diff --git a/role-rocky-ipa-client.yml b/role-rocky-ipa-client.yml index 3301828..296fe7b 100644 --- a/role-rocky-ipa-client.yml +++ b/role-rocky-ipa-client.yml @@ -2,7 +2,7 @@ # Configures an IPA client for the Rocky infrastructure # Define "host" as a hostgroup name or a single host - name: Configure IPA client - hosts: ipaclient + hosts: "{{ host | default(ipaclient) }}" become: true vars_files: - vars/ipa/common.yml