Skip to content

Commit

Permalink
Merge pull request #874 from bshephar/local-facts
Browse files Browse the repository at this point in the history
Gather ansible_local facts at the start of each service
  • Loading branch information
openshift-merge-bot[bot] authored Feb 5, 2025
2 parents 5666d13 + af9eb7e commit 32e27a8
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/configure_network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Import edpm_ovs to install ovs packages
ansible.builtin.import_role:
name: osp.edpm.edpm_ovs
Expand Down
4 changes: 4 additions & 0 deletions playbooks/configure_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Configure edpm_podman
ansible.builtin.import_role:
name: osp.edpm.edpm_podman
Expand Down
4 changes: 4 additions & 0 deletions playbooks/download_cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Import edpm_download_cache
ansible.builtin.import_role:
name: osp.edpm.edpm_download_cache
Expand Down
4 changes: 4 additions & 0 deletions playbooks/install_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Install EDPM Certs
ansible.builtin.import_role:
name: osp.edpm.edpm_install_certs
Expand Down
4 changes: 4 additions & 0 deletions playbooks/install_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Install edpm_podman
ansible.builtin.import_role:
name: osp.edpm.edpm_podman
Expand Down
4 changes: 4 additions & 0 deletions playbooks/libvirt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Deploy EDPM libvirt
ansible.builtin.import_role:
name: osp.edpm.edpm_libvirt
Expand Down
4 changes: 4 additions & 0 deletions playbooks/neutron_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Neutron OVN Metadata agent
ansible.builtin.import_role:
name: osp.edpm.edpm_neutron_metadata
Expand Down
4 changes: 4 additions & 0 deletions playbooks/neutron_ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Neutron OVN agent
ansible.builtin.import_role:
name: osp.edpm.edpm_neutron_ovn
Expand Down
4 changes: 4 additions & 0 deletions playbooks/nova.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Deploy EDPM Nova
ansible.builtin.import_role:
name: osp.edpm.edpm_nova
Expand Down
4 changes: 4 additions & 0 deletions playbooks/ovn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Deploy EDPM OVN
ansible.builtin.import_role:
name: osp.edpm.edpm_ovn
Expand Down
4 changes: 4 additions & 0 deletions playbooks/run_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Run edpm_sshd
ansible.builtin.import_role:
name: osp.edpm.edpm_sshd
Expand Down
4 changes: 4 additions & 0 deletions playbooks/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
# Doesn't handle rsyslog
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

- name: Deploy telemetry metrics
ansible.builtin.import_role:
name: osp.edpm.edpm_telemetry
4 changes: 4 additions & 0 deletions playbooks/validate_network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
any_errors_fatal: "{{ edpm_any_errors_fatal | default(true) }}"
max_fail_percentage: "{{ edpm_max_fail_percentage | default(0) }}"
tasks:
- name: Gather ansible_local facts
ansible.builtin.setup:
filter: ansible_local

# Pings only IPv4
- name: Import edpm_nodes_validation
ansible.builtin.import_role:
Expand Down

0 comments on commit 32e27a8

Please sign in to comment.