mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
5781e6e02f
Docs fixin
20 lines
550 B
YAML
20 lines
550 B
YAML
---
|
|
- pattern: '*'
|
|
hosts: /etc/ansible/hosts
|
|
tasks:
|
|
- name: config step
|
|
action: setup a=2 b=3 c=4
|
|
- name: copy comand
|
|
action: copy src=/srv/a dest=/srv/b
|
|
notify:
|
|
- restart apache
|
|
- name: template step
|
|
action: template src=/srv/template.j2 dest=/srv/file.out
|
|
notify:
|
|
- restart apache
|
|
- name: execute bin false
|
|
comment: call something that will fail just to demo failure counts and such
|
|
action: command /bin/false
|
|
handlers:
|
|
- name: restart apache
|
|
action: service name=httpd ensure=restarted
|