Code Review
/
ta
/
infra-ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
audit: Filter-out unavailable AArch64 syscalls
[ta/infra-ansible.git]
/
roles
/
baremetal_provision
/
tasks
/
stop_console_logging.yml
diff --git
a/roles/baremetal_provision/tasks/stop_console_logging.yml
b/roles/baremetal_provision/tasks/stop_console_logging.yml
index
1e4cd35
..
06a3c6d
100644
(file)
--- a/
roles/baremetal_provision/tasks/stop_console_logging.yml
+++ b/
roles/baremetal_provision/tasks/stop_console_logging.yml
@@
-15,42
+15,27
@@
# limitations under the License.
- name: Stop tmux console windows
# limitations under the License.
- name: Stop tmux console windows
- shell: "source /opt/tmux_setup/tmux.inc; tmux_kill {{item.name}}"
- with_items: "{{baremetal_ironic_nodes_ids}}"
+ shell: "source /opt/tmux_setup/tmux.inc; tmux_kill {{ironic_node_details.name}}"
ignore_errors: yes
ignore_errors: yes
- loop_control:
- label: "{{ item.name }}"
-
- name: Stop tmux console session
shell: "source /opt/tmux_setup/tmux.inc; tmux_kill tmux-session-deploy"
ignore_errors: yes
- name: Deactivate ipmi sol
- name: Stop tmux console session
shell: "source /opt/tmux_setup/tmux.inc; tmux_kill tmux-session-deploy"
ignore_errors: yes
- 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
ignore_errors: yes
no_log: True
- loop_control:
- label: "{{ item.name }}"
- name: Enable shellinabox console logging for target nodes
environment:
OS_AUTH_TOKEN: "fake-token"
IRONIC_URL: "{{ ironic_service_adminurl }}"
- name: Enable 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}} true"
- with_items:
- - "{{ baremetal_ironic_nodes_ids }}"
- - {"name": "{{installation_controller}}"}
+ command: "ironic node-set-console-mode {{ironic_node_details.name}} true"
when:
- installation_phase == "provisioning-started"
when:
- installation_phase == "provisioning-started"
- loop_control:
- label: "{{ item.name }}"
- name: Enable shellinabox console logging for target nodes
- name: Enable shellinabox console logging for target nodes
- command: "openstack --os-cloud default baremetal node console enable {{item.name}}"
- with_items: "{{ baremetal_ironic_nodes_ids }}"
+ command: "openstack --os-cloud default baremetal node console enable {{ironic_node_details.name}}"
when:
- installation_phase != "provisioning-started"
when:
- installation_phase != "provisioning-started"
- loop_control:
- label: "{{ item.name }}"