With ansible.call these states allow individual Ansible module calls to be made via states. To call an Ansible module function use a module.run state:
some_set_of_tasks:
ansible:
- system.ping
- packaging.os.zypper
- name: emacs
- state: installed salt.states.ansiblegate.AnsibleState
Ansible state caller.
get_args(argset)
Get args and kwargs from the argset.
| Parameters: | argset -- |
|---|---|
| Returns: |
Run Ansible Playbooks
| Parameters: |
|
|---|---|
| Returns: |
Ansible playbook output. |
run nginx install:
ansible.playbooks:
- name: install.yml
- git_repo: git://github.com/gituser/playbook.git
- git_kwargs:
rev: master
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.ansiblegate.html