Commit 2a0e903b authored by nanahira's avatar nanahira

optimize

parent 901aacb1
...@@ -56,13 +56,13 @@ ...@@ -56,13 +56,13 @@
vars: vars:
conn: '{{item}}' conn: '{{item}}'
with_items: '{{ connections }}' with_items: '{{ connections }}'
when: "not noUpdateLinks and item.protocol == 'null'" when: "not noUpdateLinks and (not onlyUpdateLink or item.name == onlyUpdateLink) and item.protocol == 'null'"
- name: 'loop through list from a variable' - name: 'loop through list from a variable'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml' include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
vars: vars:
conn: '{{item}}' conn: '{{item}}'
with_items: '{{ connections }}' with_items: '{{ connections }}'
when: "not noUpdateLinks and item.protocol != 'null'" when: "not noUpdateLinks and (not onlyUpdateLink or item.name == onlyUpdateLink) and item.protocol != 'null'"
# end # end
- name: services conf - name: services conf
copy: copy:
......
...@@ -112,7 +112,8 @@ class InventoryBuilder { ...@@ -112,7 +112,8 @@ class InventoryBuilder {
const vars = { const vars = {
routeLists: this.routeLists, routeLists: this.routeLists,
routeListNames: Object.keys(this.routeLists), routeListNames: Object.keys(this.routeLists),
noUpdateLinks: !!process.env.NO_LINKS noUpdateLinks: !!process.env.NO_LINK,
onlyUpdateLink: process.env.ONLY_LINK || null
}; };
for (let col in raw_utility) { for (let col in raw_utility) {
vars[col] = raw_utility[col].value; vars[col] = raw_utility[col].value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment