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}}"
|
- name: "enable PBR for {{nic.key}}"
|
||||||
block:
|
block:
|
||||||
- name: Generate sequance
|
- name: Generate sequence
|
||||||
set_fact:
|
set_fact:
|
||||||
tbl_id: nic.key | regex_replace('^eth(d+)', '\\1'
|
tbl_id: nic.key | regex_replace('^eth(d+)', '\\1'
|
||||||
|
|
||||||
|
@ -104,12 +104,6 @@
|
|||||||
async: 100
|
async: 100
|
||||||
poll: 0
|
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
|
- name: update .tmp/ssh_config after NICs reconfiguration
|
||||||
include_role: name="inventory"
|
include_role: name="inventory"
|
||||||
|
|
||||||
@ -118,6 +112,12 @@
|
|||||||
delay: 2
|
delay: 2
|
||||||
timeout: 300
|
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!
|
# TODO: need to make it idempotent!
|
||||||
- name: set hostname
|
- 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; }'
|
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…
x
Reference in New Issue
Block a user