X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=roles%2Fbaremetal_provision%2Ftasks%2Fstart_console_logging.yml;h=72a63bf2b334f9c5ad2346d9aa474ba00bcff736;hb=0815b534bebc4f3cd7869efb8872ac11e40d0bc6;hp=061c722d03005d583bb19dc55c4d9d4ce501f110;hpb=74a49ba6ef2ea715fa492db0bcd85c30398688e8;p=ta%2Finfra-ansible.git diff --git a/roles/baremetal_provision/tasks/start_console_logging.yml b/roles/baremetal_provision/tasks/start_console_logging.yml index 061c722..72a63bf 100644 --- a/roles/baremetal_provision/tasks/start_console_logging.yml +++ b/roles/baremetal_provision/tasks/start_console_logging.yml @@ -15,31 +15,22 @@ # limitations under the License. - name: Deactivate ipmi sol - command: "/usr/bin/ipmitool -I lanplus -H {{hosts[item.name]['hwmgmt']['address']}} -U {{hosts[item.name]['hwmgmt']['user']}} -P {{hosts[item.name]['hwmgmt']['password']}} sol deactivate" - with_items: "{{baremetal_ironic_nodes_ids}}" + command: "/usr/bin/ipmitool -I lanplus -H {{hosts[ironic_node_details.name]['hwmgmt']['address']}} -U {{hosts[ironic_node_details.name]['hwmgmt']['user']}} -P {{hosts[ironic_node_details.name]['hwmgmt']['password']}} -L {{hosts[ironic_node_details.name]['hwmgmt']['priv_level']}} sol deactivate" ignore_errors: yes no_log: True - loop_control: - label: "{{ item.name }}" - name: Disable shellinabox console logging for target nodes environment: OS_AUTH_TOKEN: "fake-token" IRONIC_URL: "{{ ironic_service_adminurl }}" - command: "ironic node-set-console-mode {{item.name}} false" - with_items: "{{ baremetal_ironic_nodes_ids }}" + command: "ironic node-set-console-mode {{ironic_node_details.name}} false" when: - installation_phase == "provisioning-started" - loop_control: - label: "{{ item.name }}" - name: Disable shellinabox console logging for target nodes - command: "openstack --os-cloud default baremetal node console disable {{item.name}}" - with_items: "{{ baremetal_ironic_nodes_ids }}" + command: "openstack --os-cloud default baremetal node console disable {{ironic_node_details.name}}" when: - installation_phase != "provisioning-started" - loop_control: - label: "{{ item.name }}" - name: Create directories for tmux file: @@ -54,8 +45,5 @@ shell: "source /opt/tmux_setup/tmux.inc; tmux_session_start bash /bin/bash" - name: Start tmux windows for each nodes - shell: "source /opt/tmux_setup/tmux.inc; tmux_cmd {{item.name}} /usr/bin/ipmitool -I lanplus -H {{hosts[item.name]['hwmgmt']['address']}} -U {{hosts[item.name]['hwmgmt']['user']}} -P {{hosts[item.name]['hwmgmt']['password']}} sol activate" + shell: "source /opt/tmux_setup/tmux.inc; tmux_cmd {{ironic_node_details.name}} /usr/bin/ipmitool -I lanplus -H {{hosts[ironic_node_details.name]['hwmgmt']['address']}} -U {{hosts[ironic_node_details.name]['hwmgmt']['user']}} -P {{hosts[ironic_node_details.name]['hwmgmt']['password']}} -L {{hosts[ironic_node_details.name]['hwmgmt']['priv_level']}} sol activate" no_log: True - with_items: "{{baremetal_ironic_nodes_ids}}" - loop_control: - label: "{{ item.name }}"