We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecbda9b commit e6f2cc9Copy full SHA for e6f2cc9
docs/docsite/rst/playbook_guide/playbooks_blocks.rst
@@ -20,6 +20,7 @@ All tasks in a block inherit directives applied at the block level. Most of what
20
21
tasks:
22
- name: Install, configure, and start Apache
23
+ when: ansible_facts['distribution'] == 'CentOS'
24
block:
25
- name: Install httpd and memcached
26
ansible.builtin.yum:
@@ -38,7 +39,6 @@ All tasks in a block inherit directives applied at the block level. Most of what
38
39
name: bar
40
state: started
41
enabled: True
- when: ansible_facts['distribution'] == 'CentOS'
42
become: true
43
become_user: root
44
ignore_errors: true
0 commit comments