Slide 1

Slide 1 text

_________________________ < 就是要跟你聊 Red Hat Ansible > ------------------------- \ \ \_\_ _/_/ \ \__/ (oo)\_______ (__)\ )\/\ ||----w | || || [ chusiang@RedHatTaiwan ~ ] $ cat .profile # Author: 凍仁翔 / [email protected] # Blog: https://note.drx.tw # Modified: 2020-02-25 16:30

Slide 2

Slide 2 text

凍仁翔 • 系統⼯程師 • Ansible Taiwan 社群組織者 • DevOps Taiwan 社群志⼯ • 台灣敏捷協會會員 @chusiang_lai 2

Slide 3

Slide 3 text

Ansible Taiwan https://t.me/ansible_tw https://github.com/ansible-tw http://ansible.tw 3

Slide 4

Slide 4 text

https://note.drx.tw/

Slide 5

Slide 5 text

https://ithelp.ithome.com.tw/2017ironman/8th_winner

Slide 6

Slide 6 text

1. 為什麼 Ansible 在社群上很火紅? 2. 如何⽤ Ansible 快速檢測和修復 安全與合規性問題? 3. 回顧 Outline Retro Community How 6

Slide 7

Slide 7 text

1. 為什麼 Ansible 在 社群上很火紅? Retro Community How 7

Slide 8

Slide 8 text

Agentless 無代理程式 Simple YAML、Python knowledge 教學豐富 8

Slide 9

Slide 9 text

Linux Server Windows Server $ ansible $ ansible-playbook SSH / WinRM Managed Nodes Control Machine Workstation 9

Slide 10

Slide 10 text

Agentless 無代理程式 Simple YAML、Python knowledge 教學豐富 10

Slide 11

Slide 11 text

$ vim example.yml 1 --- 2 3 - name: "Playbook 範例" 4 hosts: all 5 tasks: 6 - name: "世界你好" 7 command: echo "Hello World" 8 9 - name: "在 RHEL 上安裝 Vim" 10 become: True 11 yum: 12 name: vim

Slide 12

Slide 12 text

Agentless 無代理程式 Simple YAML、Python knowledge 教學豐富 12

Slide 13

Slide 13 text

http://ansible.tw/#!docs/presentation.md 13

Slide 14

Slide 14 text

https://docs.ansible.com 14

Slide 15

Slide 15 text

https://docs.ansible.com/ansible/latest/ modules/yum_module.html 15

Slide 16

Slide 16 text

2. 如何⽤ Ansible 快速檢測 和修復安全與合規性問題? Retro Community How 16

Slide 17

Slide 17 text

Build Config Deploy Verify ⽤ Ansible 掌握⼀切 17

Slide 18

Slide 18 text

$ vim deploy.yml 1 --- 2 3 - name: "部署範例" 4 hosts: apps 5 tasks: 6 - name: "應⽤程式部署" 7 import_tasks: deploy_app.yml 8 tags: deploy 9 10 - name: "服務驗證" 11 import_tasks: verify_service.yml 12 tags: verify

Slide 19

Slide 19 text

⽤ Ansible Vault 處理敏感資料 對使⽤者、資料庫等密碼加密,以密⽂儲存。 19

Slide 20

Slide 20 text

Manual 20 Customer Git server Development GitLab CI Build Test Deploy Release Modules Engineer Staging Prod. Release SQA

Slide 21

Slide 21 text

3. 回顧 Retro Community How 21

Slide 22

Slide 22 text

Linux Server Windows Server $ ansible $ ansible-playbook SSH / WinRM Managed Nodes Control Machine Workstation 22

Slide 23

Slide 23 text

http://ansible.tw/#!docs/presentation.md 23

Slide 24

Slide 24 text

Build Config Deploy Verify ⽤ Ansible 掌握⼀切 24

Slide 25

Slide 25 text

_________ < ⼯商服務 > --------- \ \ \_\_ _/_/ \ \__/ (oo)\_______ (__)\ )\/\ ||----w | || || 25

Slide 26

Slide 26 text

https://t.me/devopstw https://www.facebook.com/groups/DevOpsTaiwan/ https://devopstw.club/ DevOps Taiwan 26

Slide 27

Slide 27 text

https://www.facebook.com/groups/agile.kaohsiung/ https://www.facebook.com/AgileTourHsinchu/ https://www.facebook.com/groups/AgileNeihu/ http:/ /fb.me/AgileCommunity.tw 27

Slide 28

Slide 28 text

買禮物? https://萍⽔相逢.tw 28

Slide 29

Slide 29 text

______ < END > ------ \ \ \_\_ _/_/ \ \__/ (oo)\_______ (__)\ )\/\ ||----w | || || [ chusiang@RedHatTaiwan ~ ] $ cat .profile # Author: 凍仁翔 / [email protected] # Blog: https://note.drx.tw # Modified: 2020-02-25 16:30 29