From 558d25bc751709aafae38251185a74fe6e9888dd Mon Sep 17 00:00:00 2001 From: William Graef Date: Tue, 12 Nov 2024 12:33:38 -0500 Subject: [PATCH] update olam install tasks --- olam/create_instance.yml | 4 ++-- olam/olam_passwordless_setup.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/olam/create_instance.yml b/olam/create_instance.yml index 4881183..ee922b0 100644 --- a/olam/create_instance.yml +++ b/olam/create_instance.yml @@ -314,8 +314,8 @@ ansible.builtin.include_tasks: deploy-olam-tasks.yml vars: control_node_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}" - when: - - inventory_hostname == 'olam-node' + when: + - inventory_hostname in groups['control'] - olam_single_host - name: Update all rpm packages diff --git a/olam/olam_passwordless_setup.yml b/olam/olam_passwordless_setup.yml index 7e5b9d3..f067c97 100644 --- a/olam/olam_passwordless_setup.yml +++ b/olam/olam_passwordless_setup.yml @@ -51,6 +51,6 @@ become_user: "{{ username }}" register: result changed_when: result.rc == 0 - when: - - "'remote' in groups" - - inventory_hostname in groups['control'] + when: + - "'remote' in groups" + - inventory_hostname in groups['control']