### [筆記] Ansible how to use 'list' in yaml file

2018-11-27 筆記 Eric Chang

這幾天在玩ansible 時，碰到一個問題

假如我有個yaml檔作為資料來源，檔名是 abc.yml

大概長這樣

        "teams": [
            {
                "chinese_name": "TEAM1",
                "description": "TEAM1",
                "gid": 10125,
                "location": [
                    "hq"
                ],
                "name": "aa",
                "users": [
                    "chen",
                    "chou",
                    "huani",
                    "yey",
                    "wa"
                ]
            },
            {
                "chinese_name": "TEAM2",
                "description": "TEAM2",
                "gid": 10126,
                "location": [
                    "hq"
                ],
                "name": "bb",
                "users": [
                    "chhiao",
                    "chgc",
                    "chy",
                    "hsi",
                    "li",
                    "li",
                    "chgchi"
                ]
            }
    		]

Continue reading

### Nice Du Report Tool Durep

2018-11-06 筆記 Eric Chang

最近在重新規劃前人留下的backup爛攤子 各個伺服器統一備份到一台backup storage 想說如果每天能夠看到backup storage的磁碟用量的話 就可以抓出備份空間成長速度、推估需要多大的磁碟空間 找了一些工具，結果發現 durep 這個 ubuntu 內建的工具 基本上可以滿足我的需求

Continue reading
© 2017 by Lednerb - RSS
Bilberry Hugo Theme