forked from saratov/infra
configure PBR after interfaces has come back
This commit is contained in:
parent
e6eb7015fe
commit
101b41e462
@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: "enable PBR for {{nic.key}}"
|
||||
block:
|
||||
- name: Generate sequance
|
||||
- name: Generate sequence
|
||||
set_fact:
|
||||
tbl_id: nic.key | regex_replace('^eth(d+)', '\\1'
|
||||
|
||||
|
@ -104,12 +104,6 @@
|
||||
async: 100
|
||||
poll: 0
|
||||
|
||||
- name: configure PBR
|
||||
include_tasks: configure_pbr.yml
|
||||
with_dict: "{{node.net}}"
|
||||
loop_control:
|
||||
loop_var: nic
|
||||
|
||||
- name: update .tmp/ssh_config after NICs reconfiguration
|
||||
include_role: name="inventory"
|
||||
|
||||
@ -118,6 +112,12 @@
|
||||
delay: 2
|
||||
timeout: 300
|
||||
|
||||
- name: configure PBR
|
||||
include_tasks: configure_pbr.yml
|
||||
with_dict: "{{node.net}}"
|
||||
loop_control:
|
||||
loop_var: nic
|
||||
|
||||
# TODO: need to make it idempotent!
|
||||
- name: set hostname
|
||||
shell: '[[ $(hostname) == "{{inventory_hostname_short}}.{{stack.domain}}" ]] || { alterator-cmdline -d /net-eth action write computer_name "{{inventory_hostname_short}}.{{stack.domain}}" commit "#t"; echo changed; }'
|
||||
|
Loading…
Reference in New Issue
Block a user