blob: c57da0ce3e54bade64a25798940fb8b0abb9c164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: Example with discouraged free-form syntax
hosts: localhost
tasks:
- name: Create a placefolder file
ansible.builtin.command: chdir=/tmp touch foo # <-- don't use shorthand
changed_when: false
- name: Create a placefolder file
ansible.builtin.command: touch bar chdir=/tmp # <-- command can also go first
changed_when: false
- name: Use raw to echo
ansible.builtin.raw: executable=/bin/bash echo foo # <-- don't use executable=
changed_when: false
- name: Example task with usage for '=' as module params
ansible.builtin.debug: msg='Hello there world'
changed_when: false
- name: Task that has a non-debug string with spaces
ansible.builtin.set_fact: foo="String with spaces"
|