Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ansible/console/local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ ansible/console/local/
> they are part of the Galaxy collection artifact or internal dev tooling only.

> **`ansible.cfg` in PACE** is minimal — it sets `host_key_checking = False` and
> `stdout_callback = yaml` only. It intentionally does **not** set
> `collections_path`, so Ansible resolves `netapp.console` from the Galaxy
> default (`~/.ansible/collections`) after `ansible-galaxy collection install`.
> YAML stdout via `ansible.builtin.default` (`result_format = yaml`). It
> intentionally does **not** set `collections_path`, so Ansible resolves
> `netapp.console` from the Galaxy default (`~/.ansible/collections`) after
> `ansible-galaxy collection install`.

---

Expand Down
7 changes: 6 additions & 1 deletion ansible/console/local/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
# (~/.ansible/collections or the path set in ANSIBLE_COLLECTIONS_PATHS).
#collections_path = .
host_key_checking = False
stdout_callback = yaml
stdout_callback = default
interpreter_python = auto_silent

# YAML task results via ansible.builtin.default (ansible-core ≥ 2.13).
# Do not set stdout_callback=yaml — that loaded community.general.yaml, removed in 12.0.0.
[callback_default]
result_format = yaml
6 changes: 6 additions & 0 deletions ansible/console/local/playbooks/register_and_onboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
- _ncl_access_token | length > 0
fail_msg: "Could not obtain an access token. Check credentials or supply NCL_ACCESS_TOKEN."

- name: "STEP 2 | Show access token"
ansible.builtin.debug:
msg: >-
✅ Access token obtained. Set this in your environment to reuse it:
export NCL_ACCESS_TOKEN="{{ _ncl_access_token }}"
# ══════════════════════════════════════════════════════════════════════════
# STEP 3 — Ensure the target organisation exists
# ══════════════════════════════════════════════════════════════════════════
Expand Down
Loading