You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
# This is a generated YAML file by ansible-ruby, DO NOT EDIT
- name: Copy something overcopy:
src: "/file1.conf"dest: "/file2.conf"become: trueregister: result_1changed_when: "'no upgrade' in result_1.stdout"notify:
- handler1
Basically it creates a light AST that would mimic the Ruby string/primitive methods and convert that to the Python/YAML/jinja stuff. Would want to cover basics only. More sophisticated stuff should be in custom modules. Even this might be difficult since different modules return different types of results.
Also could make the with_dict syntax easier so that you don't have to do value.stuff and instead can do value[:stuff]. Might be a slippery slope there though.
The text was updated successfully, but these errors were encountered:
Need to at least allow/parse return values from modules (see ec2_ami).
Could allow this:
to become this:
The first case already compiles to this:
Basically it creates a light AST that would mimic the Ruby string/primitive methods and convert that to the Python/YAML/jinja stuff. Would want to cover basics only. More sophisticated stuff should be in custom modules. Even this might be difficult since different modules return different types of results.
Also could make the with_dict syntax easier so that you don't have to do
value.stuff
and instead can dovalue[:stuff]
. Might be a slippery slope there though.The text was updated successfully, but these errors were encountered: