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

l2circuit playbook cleanup

parent 484d73bd
No related branches found
No related tags found
1 merge request!248Feature/l2circuit create
Pipeline #92998 failed
......@@ -2,21 +2,6 @@
hosts: all
gather_facts: false
tasks:
- name: Generate an ID for this run
ansible.builtin.set_fact:
opid: "{{ lookup('community.general.random_string', length=18, special=false) }}"
- name: Print the ID
ansible.builtin.debug:
msg: "{{ opid }}"
- name: Create a folder for all compiled output
ansible.builtin.file:
path: "/var/tmp/ansible_run_{{ opid }}"
state: directory
mode: "0755"
delegate_to: localhost
- name: Import group_vars/all
ansible.builtin.include_vars:
dir: /opt/ansible_inventory/group_vars/all
......@@ -24,10 +9,6 @@
- name: Import standard variables for "{{ subscription.product.product_type }}/{{ subscription.layer_2_circuit_service_type | upper | replace(' ', '_') }}"
ansible.builtin.include_vars:
dir: /opt/ansible_inventory/geant_services/{{ subscription.product.product_type }}/{{ subscription.layer_2_circuit_service_type | upper | replace(' ', '_') }}
#
# - name: Import group_vars/routers
# ansible.builtin.include_vars:
# dir: /opt/ansible_inventory/group_vars/routers
- name: Include l2circuit role
ansible.builtin.include_role:
......@@ -35,13 +16,3 @@
loop: "{{ subscription.layer_2_circuit.layer_2_circuit_sides }}"
loop_control:
loop_var: l2c_side
# - name: Deploy
# # when: verb == deploy
# block:
# - name: Include deployment role
# ansible.builtin.include_role:
# name: deploy_service_config
# loop: "{{ subscription.layer_2_circuit.layer_2_circuit_sides }}"
# loop_control:
# loop_var: l2c_side
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment