Configure CaaS SR-IOV and provider networks
[ta/infra-ansible.git] / roles / baremetal_provision / tasks / start_console_logging.yml
index 061c722..1f3992f 100644 (file)
 # 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']}} 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']}} sol activate"
   no_log: True
-  with_items: "{{baremetal_ironic_nodes_ids}}"
-  loop_control:
-    label: "{{ item.name }}"