5 prism_languages: [yaml]
23 Place your modules inside `tasks`.
30 - apt: pkg=vim state=present
49 Define your tasks in any of these formats. One-line format is preferred for short declarations, while maps are preferred for longer.
60 state: present # absent | latest
69 deb: "https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb"
76 repo: "deb https://··· raring main"
93 repo: git://github.com/
100 See: [git module](https://devdocs.io/ansible/git_module)
107 scope: global # local | system
108 value: hi@example.com
111 See: [git_config module](https://devdocs.io/ansible/git_config_module)
122 comment: "Git Version Control"
125 See: [user module](https://devdocs.io/ansible/user_module)
133 enabled: yes # optional
136 See: [service module](https://devdocs.io/ansible/service_module)
143 - shell: apt-get install nginx -y
151 creates: /path/file # skip if this exists
152 removes: /path/file # skip if this is missing
153 chdir: /path # cd here before running
156 #### Multiline example
161 echo "multiple lines"
164 See: [shell module](https://devdocs.io/ansible/shell_module)
169 - script: /x/y/script.sh
171 creates: /path/file # skip if this exists
172 removes: /path/file # skip if this is missing
173 chdir: /path # cd here before running
176 See: [script module](https://devdocs.io/ansible/script_module)
185 state: directory # file | link | hard | touch | absent
191 recurse: yes # mkdir -p
195 See: [file module](https://devdocs.io/ansible/file_module)
201 src: /app/config/nginx.conf
202 dest: /etc/nginx/nginx.conf
211 See: [copy module](https://devdocs.io/ansible/copy_module)
218 dest: /etc/redis.conf
227 See: [template module](https://devdocs.io/ansible/template_module)
234 - name: do something locally
235 local_action: shell echo hello
242 msg: "Hello {{ var }}"
245 See: [debug module](https://devdocs.io/ansible/debug_module)