Skip to content

Commit 9da7365

Browse files
committed
Use gather_subset instead of filter to gather local facts
gather_subset is more efficient than using filter. Signed-off-by: James Slagle <[email protected]>
1 parent 8dcf378 commit 9da7365

File tree

44 files changed

+176
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+176
-44
lines changed

playbooks/bootstrap.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
tasks:
1818
- name: Gather ansible_local facts
1919
ansible.builtin.setup:
20-
filter: ansible_local
20+
gather_subset:
21+
- "!all"
22+
- "!min"
23+
- "local"
2124
- name: Grow volumes
2225
ansible.builtin.import_role:
2326
name: osp.edpm.edpm_growvols

playbooks/configure_network.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Import edpm_ovs to install ovs packages
1518
ansible.builtin.import_role:

playbooks/configure_os.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Configure edpm_podman
1518
ansible.builtin.import_role:

playbooks/configure_ovs_dpdk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
tasks:
88
- name: Gather ansible_local facts
99
ansible.builtin.setup:
10-
filter: ansible_local
10+
gather_subset:
11+
- "!all"
12+
- "!min"
13+
- "local"
1114

1215
- name: Install openvswitch package
1316
become: true

playbooks/download_cache.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Import edpm_download_cache
1518
ansible.builtin.import_role:

playbooks/install_certs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Install EDPM Certs
1518
ansible.builtin.import_role:

playbooks/install_os.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Install edpm_podman
1518
ansible.builtin.import_role:

playbooks/libvirt.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Deploy EDPM libvirt
1518
ansible.builtin.import_role:

playbooks/neutron_dhcp.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
tasks:
1010
- name: Gather ansible_local facts
1111
ansible.builtin.setup:
12-
filter: ansible_local
12+
gather_subset:
13+
- "!all"
14+
- "!min"
15+
- "local"
1316

1417
- name: Neutron DHCP agent
1518
ansible.builtin.import_role:

playbooks/neutron_metadata.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
tasks:
99
- name: Gather ansible_local facts
1010
ansible.builtin.setup:
11-
filter: ansible_local
11+
gather_subset:
12+
- "!all"
13+
- "!min"
14+
- "local"
1215

1316
- name: Neutron OVN Metadata agent
1417
ansible.builtin.import_role:

0 commit comments

Comments
 (0)