logo头像

You name it , I got it !

ansible

[筆記] 還是 Ansible Selectattr

在上一篇 Ansible how to use ‘list’ in yaml file 有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單 不過就是有點醜…

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

這幾天在玩ansible 時,碰到一個問題 假如我有個yaml檔作為資料來源,檔名是 abc.yml 大概長這樣 123456789101112131415161718192021222324252627282930313233343536 "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" ] }]…

筆記-自動啟用 fcitx & 啟用注音輸入法

最近工作上接了一個任務,要作一台ubuntu 18.04的client。本來這也不是什麼大不了的事,不過呢(人生就是這個不過啊…)前人寫好的ansible 腳本都是給 ubuntu 14.04 使用,有一些指令已經不適用於 18.04...

筆記-install ansible 2.4 server

install ubuntu 16.04 Server install with basic configuration create user administrator and passd XXXX reboot basi...