Skip to content

Commit

Permalink
fix: mac os problems when creating RHOSP VM
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdotcosta committed Dec 7, 2023
1 parent 8e12a1a commit 86a2428
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ gather_timeout = 30000
log_path=/opt/log/ansible.log

ansible_python_interpreter=/usr/bin/python3
interpreter_python=auto
11 changes: 7 additions & 4 deletions ansible/playbook/openstack/openstack_vm_create_passwordstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@
meta: refresh_inventory

- name: "Wait for the VM to boot and we can ssh"
hosts: "{{ vm_name | default([]) }}"
gather_facts: no
# hosts: "{{ vm_name | default([]) }}"
hosts: localhost
gather_facts: False

tasks:

Expand All @@ -86,8 +87,8 @@
host: "{{ query('passwordstore', 'openstack/' + inventory_hostname + '/ansible_ssh_host')[0] }}"
port: "{{ query('passwordstore', 'openstack/' + inventory_hostname + '/ansible_ssh_port')[0] }}"
timeout: 120
vars:
ansible_connection: local
# vars:
# ansible_connection: local
register: wait_for_connection_reg
when: skip_post_installation is undefined or not skip_post_installation

Expand Down Expand Up @@ -118,6 +119,8 @@
- name: "Openstack VM init"
ansible.builtin.import_playbook: "openstack_vm_init.yml"
when: skip_post_installation is undefined or not skip_post_installation
# vars:
# ansible_python_interpreter: !!null

- name: "Secure new server"
ansible.builtin.import_playbook: "../sec_host.yml"
Expand Down

0 comments on commit 86a2428

Please sign in to comment.