Eddie's Blog

Ansible 본문

programmings

Ansible

eddie.y 2016. 10. 19. 12:04

https://github.com/ansible/ansible


Playbooks에는 play(s)가 있습니다..

Plays에는 task(s)가 있습니다.

Tasks는 module(s)을 호출합니다.


Task들은 순차적으로 실행됩니다.


Handler(s)task(s)로 인해 작동 되며,

play(s)의 마지막에 한 번만 실행됩니다.


---

- name: install and start apache

  hosts: web

  remote_user: justin

  become_method: sudo

  become_user: root

  vars:

    http_port: 80

    max_clients: 200


  tasks:

  - name: install httpd

    yum: name=httpd state=latest

Comments