Skip to content

Commit

Permalink
TEMP: Quick test for upstream checks
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Guterres Jeffman <[email protected]>
  • Loading branch information
rjeffman committed Feb 10, 2025
1 parent 8b65c74 commit a2f076c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions tests/tasks/setup_ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,27 @@
ipaserver_hostname: ipaserver.test.local
ipaserver_no_host_dns: true
local_log_dir: "{{ lookup('env', 'TEST_ARTIFACTS') | d('/tmp', true) }}"
role_collection_path: >-
/usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles/ipaserver
role_collection_name: freeipa.ansible_freeipa.ipaserver
# role_collection_path: >-
# /usr/share/ansible/collections/ansible_collections/freeipa/ansible_freeipa/roles/ipaserver
# role_collection_name: freeipa.ansible_freeipa.ipaserver
block:
- name: Debug
shell: /usr/bin/env | grep -v LINUXSYSTEMROLES_SSH_KEY
delegate_to: localhost

- name: See if collection exists
stat:
path: "{{ role_collection_path }}"
register: __ipa_collection
delegate_to: localhost
# - name: See if collection exists
# stat:
# path: "{{ role_collection_path }}"
# register: __ipa_collection
# delegate_to: localhost

- name: Set name of ipa server role
set_fact:
__ipa_server_role: "{{ role_collection_name
if __ipa_collection.stat.exists else 'ipaserver' }}"
# - name: Set name of ipa server role
# set_fact:
# __ipa_server_role: "{{ role_collection_name
# if __ipa_collection.stat.exists else 'ipaserver' }}"

- set_fact:
__ipa_server_role: "ipaserver"

- name: Include ipaserver role
include_role:
Expand Down

0 comments on commit a2f076c

Please sign in to comment.