1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/examples/playbook.yml

29 lines
734 B
YAML
Raw Normal View History

---
- hosts: all
user: root
vars:
http_port: 80
max_clients: 200
2012-03-13 03:03:20 +01:00
vars_files:
- external_vars.yml
tasks:
- name: simulate long running op (15 sec), wait for up to 45, poll every 5
action: command /bin/sleep 15
async: 45
poll: 5
2012-03-13 02:02:38 +01:00
- name: fire and forget
action: command /bin/sleep 15
async: 45
poll: 0
- include: base.yml favcolor=blue
- name: write the foo config file using vars set above
action: template src=foo.j2 dest=/etc/some_random_foo.conf
notify:
- restart apache
- name: ensure apache is running
action: service name=httpd state=started
- name: pointless test action
action: command /bin/echo {{ http_port }}
handlers:
- include: handlers.yml