Commit 2a0e903b authored by nanahira's avatar nanahira

optimize

parent 901aacb1
......@@ -56,13 +56,13 @@
vars:
conn: '{{item}}'
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'
include_tasks: 'protocols/{{item.protocol}}/configure.yaml'
vars:
conn: '{{item}}'
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
- name: services conf
copy:
......
......@@ -112,7 +112,8 @@ class InventoryBuilder {
const vars = {
routeLists: 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) {
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