This commit is contained in:
2019-08-16 12:26:39 +08:00
parent 99aa15344f
commit 9a91ddce71
110 changed files with 135 additions and 26 deletions

View File

@@ -89,7 +89,7 @@ hwaddress: f4:4d:30:45:ef:aa', host: pc120', ipv4: 192.168.1.120', user: [wany']
```
- name: get internet user ip list
set_fact:
iuser_ip_list: "{{ ch['client_hosts']['konwen.com'] |selectattr('iuser', 'defined')| map(attribute='ipv4')|list }}"
iuser_ip_list: "{{ ch['client_hosts']['kw.com'] |selectattr('iuser', 'defined')| map(attribute='ipv4')|list }}"
- name: add proxy to /etc/environment
blockinfile:

View File

@@ -85,7 +85,7 @@ author: "Eric Chang"
- name: load teams.yml
tags: env
include_vars:
file: files/konwen/teams.yml
file: files/kw/teams.yml
```
這時候在這個執行階段,就會有一個變數叫 teams 裡面有 chinese_name/description/gid 等等這些屬性