Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ansible 技術概觀介紹_20190130

Phil Huang
January 30, 2019

Ansible 技術概觀介紹_20190130

#ansible #redhat #tfc #taiwan #community

Slide source: http://bit.ly/2CXzn8v

Phil Huang

January 30, 2019
Tweet

More Decks by Phil Huang

Other Decks in Technology

Transcript

  1. Ansible 技術概觀介紹
    Phil Huang 黃秉鈞
    TFC #13, Taiwan, Jan. 30, 2019
    Rush!!!!!

    View full-size slide

  2. 有獎徵題 Skopeo Ansible
    CRI-O
    Podman
    LFN

    View full-size slide

  3. Phil Huang 黃秉鈞
    ● 社群斜槓青年
    ○ SDNDS-TW
    ○ Cloud Native Taiwan User Group (CNTUG)
    ● 任職於 Red Hat 擔任 Solution Architect
    ● Information
    ○ https://blog.pichuang.com.tw
    ○ https://www.linkedin.com/in/phil-huang-09b09895/

    View full-size slide

  4. Ansible is Simple IT Automation
    ● Simple, agentless and powerful open source IT automation tool
    a. Provisioning
    b. Configuration Management
    c. Application Deployment
    d. Continous Delivery
    e. Security & Compliance
    f. Orchestration
    Ref: https://www.ansible.com/

    View full-size slide

  5. Ansible Modules
    Ref: https://docs.ansible.com/ansible/latest/modules/modules_by_category.html

    View full-size slide

  6. Ansible Inventory
    Ref: https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html

    View full-size slide

  7. Ansible Playbooks
    ● Ansible Playbooks
    ○ Player (Based on inventory defined)
    ○ Tasks (Do what)
    ○ Ansible Modules (a.k.a Roles)
    Ref: https://blog.pichuang.com.tw/suggestions_to_improve_your_ansible_playbook

    View full-size slide

  8. Basic Support Protocols
    1. SSH
    ○ For most appliance platform which has SSH daemon
    2. WinRM
    ○ For Windows platform only
    3. Network vendors specific
    Ref: https://speakerdeck.com/pichuang/netdevops-101

    View full-size slide

  9. Ansible Novice

    View full-size slide

  10. Recommend Architecture
    Ref: https://speakerdeck.com/pichuang/netdevops-101
    Bastion / Jumper / ...
    Server / Network / Windows

    View full-size slide

  11. Your First Command
    # ansible -i all -m ping
    ansible -i ./hosts all -m ping
    Ref: https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html#your-first-commands

    View full-size slide

  12. 3 Ad-Hoc Useful Commands You Can Learn
    Ref: https://t.me/ansible_tw

    View full-size slide

  13. Ansible Galaxy
    Ref: https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html
    # Initial a structure for
    customized roles
    ansible-galaxy init TFC
    # Install specific roles
    ansible-galaxy install TFC
    ansible-galaxy install -r
    requirements.txt

    View full-size slide

  14. Use Cases
    1. Ansible + Windows
    2. Ansible + Security
    3. Ansible + Networking

    View full-size slide

  15. Ansible Networking
    Ref: https://github.com/network-automation/linklight

    View full-size slide

  16. Wanna Learn More?

    View full-size slide

  17. How Do You Learn About Cloud Native Technologies?
    Top learning sources are
    1. Documentation
    2. Meetups and Local Events
    3. Technical Podcasts
    Ref: https://www.cncf.io/blog/2018/08/29/cncf-survey-use-of-cloud-native-technologies-in-production-has-grown-over-200-percent/

    View full-size slide

  18. Ref: https://www.facebook.com/events/2143280755732051/

    View full-size slide

  19. Ref: https://www.facebook.com/RedHatTaiwan/

    View full-size slide

  20. Q&A
    台上一小時,台下三日夜
    社群正向回饋,需要一起參與
    Ref: https://www.facebook.com/micomikicat/

    View full-size slide