摘要:
####Accelerated Modeport 5099持续连接30min```yaml---- hosts: all accelerate: true tasks: - name: some task command: echo {{ item }} with_items: ... 阅读全文
posted @ 2015-01-04 16:05
北京涛子
阅读(276)
评论(0)
推荐(0)
摘要:
####Accelerated Modeport 5099持续连接30min```yaml---- hosts: all accelerate: true tasks: - name: some task command: echo {{ item }} with_items: ... 阅读全文
posted @ 2015-01-04 16:05
北京涛子
阅读(276)
评论(0)
推荐(0)
摘要:
####Content Organization```bashproduction # inventory file for production serversstage # inventory file for stage e... 阅读全文
posted @ 2015-01-04 15:30
北京涛子
阅读(411)
评论(0)
推荐(0)
摘要:
####Standard Loops####with_items```yaml- name: add several users user: name={{ item }} state=present groups=wheel with_items: - testuser1 - ... 阅读全文
posted @ 2015-01-04 15:29
北京涛子
阅读(655)
评论(1)
推荐(0)
摘要:
####when```yamltasks: - name: "shutdown Debian flavored systems" command: /sbin/shutdown -t now when: ansible_os_family == "Debian"tasks: - co... 阅读全文
posted @ 2015-01-04 15:06
北京涛子
阅读(331)
评论(0)
推荐(0)
摘要:
####变量命名支持数字、字母、下划线```bash有效:foo_port, foo5无效:foo-port, foo port, foo.port, 12```####playbook定义```yaml- hosts: webservers vars: http_port: 80```##... 阅读全文
posted @ 2015-01-04 11:27
北京涛子
阅读(2416)
评论(0)
推荐(0)
摘要:
####task include```yaml---# possibly saved as tasks/foo.yml- name: placeholder foo command: /bin/foo- name: placeholder bar command: /bin/bartasks: ... 阅读全文
posted @ 2015-01-04 10:13
北京涛子
阅读(462)
评论(0)
推荐(0)
|