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

`edge_port` - use common `configure_storage` tasklist

parent 9f20023c
Branches
Tags
1 merge request!260Feature/nat 1090 common storage
../../../playbooks/configure_storage.yaml
\ No newline at end of file
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
- name: Include Standard role tasks - name: Include Standard role tasks
ansible.builtin.include_tasks: standard_tasks.yaml ansible.builtin.include_tasks: standard_tasks.yaml
- name: Include configure storage tasks
ansible.builtin.include_tasks: configure_storage.yaml
- name: Include templates compilation - name: Include templates compilation
when: verb in verbs when: verb in verbs
ansible.builtin.include_tasks: compile.yaml ansible.builtin.include_tasks: compile.yaml
......
...@@ -27,22 +27,3 @@ ...@@ -27,22 +27,3 @@
- name: Import variables for Edge Ports hold times - name: Import variables for Edge Ports hold times
ansible.builtin.include_vars: ansible.builtin.include_vars:
file: /opt/ansible_inventory/group_vars/routers/nokia/edge_ports.yaml file: /opt/ansible_inventory/group_vars/routers/nokia/edge_ports.yaml
- 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: Generate FS path for artifacts storage
ansible.builtin.set_fact:
play_storage_path: "{{ storage_mount_prefix | default('/var/tmp') }}/{{ gso_process_id | default('gso_pid_undefined') }}/ansible_run_{{ opid }}"
- name: Create a folder for all compiled output
ansible.builtin.file:
path: "{{ play_storage_path }}"
state: directory
mode: '0755'
delegate_to: localhost
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment