Skip to content
Merged
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
4 changes: 3 additions & 1 deletion ansible/roles/bootstrap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
user: "{{ ansible_facts.user_id }}"
key: "{{ lookup('file', bootstrap_ssh_private_key_path ~ '.pub') }}"

# NOTE(priteau): Exclude comments from ssh-keyscan output because they break
# known_hosts on Rocky Linux 9.8.
- name: Scan for SSH keys
command: ssh-keyscan {{ item }}
shell: ssh-keyscan {{ item }} | grep -v '^#'
with_items:
- localhost
- 127.0.0.1
Expand Down
14 changes: 14 additions & 0 deletions ansible/roles/kolla-ansible/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@
virtualenv: "{{ kolla_ansible_venv }}"
virtualenv_python: "{{ kolla_ansible_venv_python }}"

- name: Ensure core Ansible collections are installed
command:
cmd: >-
ansible-galaxy collection install --force
-r {{ kolla_ansible_core_requirements_yml }}
-p {{ kolla_ansible_venv }}/share/kolla-ansible/ansible/collections/
environment:
# NOTE(wszumski): Ignore collections shipped with ansible, so that we can install
# newer versions.
ANSIBLE_COLLECTIONS_SCAN_SYS_PATH: "False"
# NOTE(wszumski): Don't use path configured for kayobe
ANSIBLE_COLLECTIONS_PATH: ''
when: not kolla_ansible_venv_ansible

- name: Ensure Ansible collections are installed
command:
cmd: >-
Expand Down
4 changes: 3 additions & 1 deletion ansible/roles/ssh-known-host/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
vm provision' and 'kayobe overcloud inventory discover'.
when: not ansible_host | default(inventory_hostname)

# NOTE(priteau): Exclude comments from ssh-keyscan output because they break
# known_hosts on Rocky Linux 9.8.
- name: Scan for SSH keys
local_action:
module: command ssh-keyscan {{ item }}
module: shell ssh-keyscan {{ item }} | grep -v '^#'
with_items:
- "{{ ansible_host|default(inventory_hostname) }}"
register: keyscan_result
Expand Down