Skip to content
Snippets Groups Projects
Commit 7894d7db authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

update playbooks path in edge_port

parent 4de5ba60
No related branches found
No related tags found
1 merge request!286Add Edge Port, GÉANT IP and IAS products
...@@ -197,7 +197,7 @@ def create_edge_port_dry( ...@@ -197,7 +197,7 @@ def create_edge_port_dry(
} }
return { return {
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
...@@ -217,7 +217,7 @@ def create_edge_port_real( ...@@ -217,7 +217,7 @@ def create_edge_port_real(
} }
return { return {
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
......
...@@ -201,7 +201,7 @@ def update_edge_port_dry( ...@@ -201,7 +201,7 @@ def update_edge_port_dry(
} }
return { return {
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
"subscription": subscription, "subscription": subscription,
...@@ -226,7 +226,7 @@ def update_edge_port_real( ...@@ -226,7 +226,7 @@ def update_edge_port_real(
return { return {
"subscription": subscription, "subscription": subscription,
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
......
...@@ -39,7 +39,7 @@ def remove_edge_port_dry(subscription: dict[str, Any], tt_number: str, process_i ...@@ -39,7 +39,7 @@ def remove_edge_port_dry(subscription: dict[str, Any], tt_number: str, process_i
return { return {
"subscription": subscription, "subscription": subscription,
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
...@@ -57,7 +57,7 @@ def remove_edge_port_real(subscription: dict[str, Any], tt_number: str, process_ ...@@ -57,7 +57,7 @@ def remove_edge_port_real(subscription: dict[str, Any], tt_number: str, process_
return { return {
"subscription": subscription, "subscription": subscription,
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": extra_vars, "extra_vars": extra_vars,
} }
......
...@@ -59,7 +59,7 @@ def verify_netbox_entries(subscription: EdgePort) -> None: ...@@ -59,7 +59,7 @@ def verify_netbox_entries(subscription: EdgePort) -> None:
def verify_base_config(subscription: dict[str, Any]) -> LSOState: def verify_base_config(subscription: dict[str, Any]) -> LSOState:
"""Workflow step for running a playbook that checks whether base config has drifted.""" """Workflow step for running a playbook that checks whether base config has drifted."""
return { return {
"playbook_name": "edge_port.yaml", "playbook_name": "gap_ansible/playbooks/edge_port.yaml",
"inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}}, "inventory": {"all": {"hosts": {subscription["edge_port"]["node"]["router_fqdn"]: None}}},
"extra_vars": { "extra_vars": {
"dry_run": True, "dry_run": True,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment